This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias opc-update='curl -fsSL https://opencode.ai/install | bash' | |
| alias opc-models='opencode models --refresh | grep copilot | grep codex' | |
| alias opc='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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Data.SqlClient; | |
| namespace RKTMB { | |
| class Program | |
| { | |
| private static SqlConnection cnn; | |
| public static void FetchAllNames() | |
| { | |
| string connectionString = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Bonjour" >> /tmp/cron |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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]; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class ModelPassage | |
| { | |
| public function __construct($recherche) | |
| { | |
| $this->recherche=$recherche; | |
| $this->bdd_en=new PDO('mysql:host=localhost; dbname=bible','dev','dev'); | |
| $this->requete_existence_livre_en=$this->bdd_en->prepare('SELECT * FROM kjv WHERE bname = :chercher'); | |
| $this->bdd_fr=new PDO('mysql:host=localhost; dbname=bible_fr','dev','dev'); | |
| $this->requete_existence_livre_fr=$this->bdd_fr->prepare('SELECT * FROM ref_bible WHERE livre = :chercher'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var div=document.getElementById("font"); /* accéder au noeud élément qui a pour id font */ | |
| var tprin=document.createElement('H1'); /* créer un titre h1 et l'affecte dans une variable tprin */ | |
| var text1= document.createTextNode('TABLE DE MULTIPLICATION'); /* créer un texte et le nomme par une variable text1 */ | |
| tprin.appendChild(text1); /* fait de text1 un noeud enfant de tprin, c'est-à-dire text1 est un texte qui est présent dans tprin*/ | |
| div.appendChild(tprin); /* tprin est noeud enfant de div */ | |
| var tab=document.createElement("TABLE"); /* créer un noeud element table ie tableau */ | |
| div.appendChild(tab); /* mettre table dans div */ | |
| for(var ligne=0;ligne<=2;ligne++) /* boucler les lignes suivant z |
NewerOlder