Skip to content

Instantly share code, notes, and snippets.

View rakotomandimby's full-sized avatar
💭
Open to contracts

Mihamina Rakotomandimby rakotomandimby

💭
Open to contracts
View GitHub Profile
@rakotomandimby
rakotomandimby / update-doc.txt
Created May 12, 2026 11:52
Github Copilot Agent prompts
I made changes to the code base in `code/`. I need you to update the documentation: `README.md` and files in `docs/`.
Espacially for the `docs/06-api-reference.md` file, provide paylod examples in the endpoints documentations`.
Analyze the files in `code/` and update the documentation in `docs/`.
{
"_index": "practitioners-ch",
"_id": "44066",
"_version": 1,
"_source": {
"id": 44066,
"full_name": "Martina Pieren",
"firstname": "Martina",
"lastname": "Pieren",
"slug": "martina-pieren",
@rakotomandimby
rakotomandimby / opencode-init.sh
Last active March 30, 2026 06:43
Aliases Opencode
export PATH=/home/mihamina/.opencode/bin:$PATH
alias opc-update='curl -fsSL https://opencode.ai/install | bash'
alias opc-models='opencode models --refresh | grep copilot | grep codex'
alias opc='/home/mihamina/.opencode/bin/opencode'
alias ocm-get='cd && git clone https://github.com/Shlomob/ocmonitor-share.git && cd ocmonitor-share && ./install.sh'
alias ocm-update='cd && cd ocmonitor-share && rm -rf venv && git pull && ./install.sh'
alias ocm-live='cd && /home/mihamina/.local/bin/ocmonitor --theme light live'
alias ocm-daily='cd && /home/mihamina/.local/bin/ocmonitor --theme light daily'
alias ocm-monthly='cd && /home/mihamina/.local/bin/ocmonitor --theme light monthly'
@rakotomandimby
rakotomandimby / wide-screen.sh
Last active February 18, 2026 11:59
switch to wide screen
#!/bin/bash
# check if the new mode already exists
if ! xrandr | grep -q "3440x1440_60.00"; then
# create the new mode
xrandr --newmode "3440x1440_60.00" 419.50 3440 3696 4064 4688 1440 1443 1453 1493 -hsync +vsync
xrandr --addmode Virtual-1 "3440x1440_60.00"
fi
# check if the current mode is already set to 3440x1440_60.00
@rakotomandimby
rakotomandimby / copilot_chat.lua
Created August 27, 2025 17:30
Add file_glob function
local functions = {
file_glob = {
group = 'copilot',
uri = 'files://glob_contents/{pattern}',
description = 'Includes the full contents of every file matching a specified glob pattern.',
schema = {
type = 'object',
required = { 'pattern' },
properties = {
pattern = {
@rakotomandimby
rakotomandimby / SQL-Query.cs
Last active February 14, 2020 08:38
"Invoke-Sqlcmd" and "Install-Module" not available?
using System;
using System.Data.SqlClient;
namespace RKTMB {
class Program
{
private static SqlConnection cnn;
public static void FetchAllNames()
{
string connectionString = null;
#!/bin/bash
echo "Bonjour" >> /tmp/cron
<?php
function retournerListeVariables($template = "")
{
$listeVariables = array();
if (file_exists($template)) {
$content = file_get_contents($template);
if (preg_match_all("/{{(.*?)}}/si", $content, $aux)) {
$listeVariables = $aux[1];
}
}
#! /bin/sh
#
# chkconfig: - 55 45
# description: The memcached daemon is a network memory cache service.
# processname: memcached
# config: /etc/sysconfig/memcached
# pidfile: /var/run/memcached/memcached.pid
# Standard LSB functions
#. /lib/lsb/init-functions
<?php
class ModelVerset
{
public function __construct ($book, $chapter, $verset)
{
$this->book = $book;
$this->chapter= $chapter;
$this->verset = $verset;
$this->book_fr= $this->setBookFrFromRef();
$this->book_en= $this->setBookEnFromRef();