Shaare your links...
41 links
Shared snippet, command, script ... Home Login RSS Feed ATOM Feed Tag cloud Picture wall Daily
  • Trouver d'autres snippets ==>
  • Snipplr
  • Smipple
  • Snipt
  • Dzone
  • Snippetsmania
  • Devsnippets
  • Codecodex
  • Css-tricks
Links per page: 20 50 100
◄Older
page 1 / 2
  • archlinux gpg import key
    Mon Aug 24 09:07:10 2015 - permalink - @ via memo-linux.com
    [Arch Linux / Manjaro] yaourt : ERREUR : Une ou plusieurs signatures PGP n’ont pas pu être vérifiées
    Afficher le snippet
    gpg --keyserver pgp.mit.edu --recv-keys <keyid>
                  
    Selectionner le code
  • Sun Jan 18 00:16:26 2015 - permalink -
    Déplacer tout les fichier
    Déplace tous les fichiers se trouvant dans des sous dossier, dans le dossier courant.
    Afficher le snippet
    find . -name '*.mp3' -exec mv {} . \;
                  
    Selectionner le code
  • apache2 changement droit
    Thu Dec 11 16:02:21 2014 - permalink -
    Changer les permission sur les fichiers et les dossiers
    Définie les droit sur les fichier en 644 et sur les répertoires en 755 de manière récursive.
    Afficher le snippet
    find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;
                  
    Selectionner le code
  • php swap variable
    Mon Jun 23 12:04:11 2014 - permalink -
    Echanger les valeurs de plusieurs variables
    Afficher le snippet
    list($a, $b) = array($b, $a);
                  
    Selectionner le code
  • cli couper video
    Fri Mar 21 10:28:53 2014 - permalink -
    Couper une video en ligne de commande
    Afficher le snippet
    ffmpeg -i video_name -ss debut -t durée -async 1 video_out
                  
    Selectionner le code
  • boolean mysql toggle
    Fri Mar 7 10:55:47 2014 - permalink - @ via blog.dephuedatadesign.com
    Toggle boolean value in Mysql
    Changer un champ de type boolean (1/0) dans une table mysql.
    Afficher le snippet
    UPDATE
    table
    SET active = active XOR 1
    WHERE id = $id
    Selectionner le code
  • kernel linux suppression ubuntu
    Wed Jul 31 11:44:09 2013 - permalink -
    kernel - Documentation Ubuntu Francophone
    Supprimer les vieux noyaux.
    Afficher le snippet
    Lister ensuite l'ensemble des noyaux installés grâce à :

    dpkg -l | grep -Ei "linux-headers|linux-image"

    Sur Ubuntu 12.10, en décembre 2012, le résultat de cette commande donne :

    linux-headers-3.5.0-18                    3.5.0-18.29
    linux-headers-3.5.0-18-generic            3.5.0-18.29
    linux-headers-3.5.0-19                    3.5.0-19.30
    linux-headers-3.5.0-19-generic            3.5.0-19.30
    linux-headers-3.5.0-20                    3.5.0-20.31
    linux-headers-3.5.0-20-generic            3.5.0-20.31
    linux-headers-3.5.0-21                    3.5.0-21.32
    linux-headers-3.5.0-21-generic            3.5.0-21.32
    linux-headers-generic                     3.5.0.21.27
    linux-headers-generic-pae                 3.5.0.21.27
    linux-image-3.5.0-17-generic              3.5.0-17.28
    linux-image-3.5.0-18-generic              3.5.0-18.29
    linux-image-3.5.0-19-generic              3.5.0-19.30
    linux-image-3.5.0-20-generic              3.5.0-20.31
    linux-image-3.5.0-21-generic              3.5.0-21.32
    linux-image-extra-3.5.0-17-generic        3.5.0-17.28
    linux-image-extra-3.5.0-18-generic        3.5.0-18.29
    linux-image-extra-3.5.0-19-generic        3.5.0-19.30
    linux-image-extra-3.5.0-20-generic        3.5.0-20.31
    linux-image-extra-3.5.0-21-generic        3.5.0-21.32
    linux-image-generic

    On pourrait donc dans cet exemple supprimer les noyaux 3.5.0-17, 3.5.0-18 et 3.5.0-19 (toujours garder les deux derniers noyaux 3.5.0-20 et 3.5.0-21 dans cet exemple).

    Pour désinstaller un noyau Linux, il suffit de désinstaller les 3 ou 4 paquets correspondants à la version voulue :

       linux-headers-<version>_<version>_all.deb
       linux-headers-<version>-generic_<version>_<votre_architecture>.deb
       linux-image-<version>-generic_<version>_<votre_architecture>.deb
       linux-image-extra-<version>-generic_<version>_<votre_architecture>.deb

    Par exemple pour désinstaller le noyau 3.5.0-17, la commande complète (à adapter) ressemble à quelque chose comme :

    sudo apt-get remove linux-headers-3.5.0-17 linux-headers-3.5.0-17-generic linux-image-3.5.0-17-generic linux-image-extra-3.5.0-17-generic --purge

    Répéter l'opération autant de fois qu'il y'a de noyaux à supprimer.

    Redémarrer le PC. Le menu GRUB ne proposera plus le ou les noyaux supprimés.
    Selectionner le code
  • git gitignore migration svn
    Thu Jun 20 14:19:11 2013 - permalink -
    Effectively Using Git With Subversion | Viget
    Migration de SVN vers Git générer le .gitignore
    Afficher le snippet
    git svn show-ignore > .gitignore
                  
    Selectionner le code
  • git répertoire vide
    Thu Jun 20 14:13:47 2013 - permalink - @ via gist.github.com
    GIT : Adding a log dir & keeping it always empty in the repo
    Permet d'ajouter un répertoire vide dans Git
    Afficher le snippet
    #!/bin/sh

    mkdir log
    touch log/.gitkeep
    git add log/.gitkeep
    echo "log/*" >> .gitignore
    git add .gitignore
    git ci -m "Added empty log/ folder"
    Selectionner le code
  • exif photos renommer
    Mon May 27 10:22:10 2013 - permalink - @ via quack1.no-ip.org
    Renomage de photos en masse
    Renomme tous les fichiers .jpg du répertoire courant en leur donnant un nom de la forme "YYYYMMDD_HHmmSS.jpg", en récupérant les informations de date/heure dans les données EXIF de la photo.
    Afficher le snippet
    exiv2 -k -F rename *.jpg
                  
    Selectionner le code
  • php protocole url
    Mon May 13 16:10:42 2013 - permalink - @ via www.warriordudimanche.net
    Ajouter http à une URL si nécessaire
    Une petite function bien pratique lorsque l'on doit traiter des urls.
    Afficher le snippet
    function add_protocol($url,$protocol='http://'){
       if (preg_match('#^([ftphs]+://)([^ ]+)#',$url,$results)){return $url;}else{return $protocol.$url;}
    }
    Selectionner le code
  • convertion encodage mp3 wma
    Mon May 6 14:50:04 2013 - permalink - @ via www.jairusmartin.com
    Encoder wma vers mp3
    Encode des fichiers wma en mp3 (vbr 245) preset fast extreme
    Afficher le snippet
    for f in *.wma;do ffmpeg -i "$f" -acodec libmp3lame -q:a 0 -ac 2 -ar 48000 "$(echo $f| head -c -5).mp3";done
                  
    Selectionner le code
  • bash domaine extraire url
    Thu May 2 13:57:03 2013 - permalink - @ via www.cyberciti.biz
    Extraire le nom de domaine d'une url en bash
    Extrait le nom de domaine + le sheme d'une url.
    Afficher le snippet
    # exemple
    echo https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Articles_insolites | awk -F'/' '{ print $1 "//" $3 }'
    # renvoie https://fr.wikipedia.org
    Selectionner le code
  • bash linux répertoire taille
    Tue Apr 30 14:53:21 2013 - permalink - @ via www.bash-linux.com
    Taille d'un répertoire
    Affiche la taille d'un répertoire sous Linux en ligne de commande.
    Afficher le snippet
    du -kh --max-depth=1 répertoire/
                  
    Selectionner le code
  • cache font police update
    Mon Apr 29 12:34:39 2013 - permalink - @ via wiki.archlinux.org
    Mettre à jour le cache des polices
    Après avoir installé une police dans /home/user/.fonts il faut mettre à jour le cache.
    Afficher le snippet
    fc-cache -vf
                  
    Selectionner le code
  • arclinux screen shutter
    Thu Apr 25 10:19:10 2013 - permalink -
    Shutter sous Archlinux + Cinnamon
    J'ai pas mal galéré avec Shutter. Ce coquin refuse de se lancer que ce soit avec "Alt+F2" ou via le menu, mais ce lance bien via un terminal. Le problème est qu'a la fermeture du terminal Shutter ce coupe (normal). Donc l'idée est de contourné ça avec screen.
    Bien sûr screen doit être installé.

    https://wiki.archlinux.org/index.php/GNU_Screen
    http://studio.jacksay.com/tutoriaux/systeme-linux/l-utilitaire-bash-screen
    Afficher le snippet
    screen -d -S shutter -m shutter
                  
    Selectionner le code
  • log php
    Mon Apr 22 09:46:31 2013 - permalink - @ via sebsauvage.net
    [php] Loguer toutes les requêtes GET et POST
    Pour déboguer une appli php, voici un petit snippet qui loguera dans un fichier toutes les requêtes GET/POST et leur contenu. C'est tout bête mais ça peut servir.
    Afficher le snippet
    function logm($message) {
      $t = strval(date('Y/m/d_H:i:s')).' - '.$_SERVER["REMOTE_ADDR"].' - '.strval($message)."\n";
      file_put_contents($_SERVER['DOCUMENT_ROOT'].'/log.txt',$t,FILE_APPEND);
    }
    if (!empty($_POST)) logm('POST: '.print_r($_POST, true));
    if (!empty($_GET)) logm('GET: '.print_r($_GET, true));
    Selectionner le code
  • apache2 certificat ssl ubuntu
    Thu Apr 11 15:46:09 2013 - permalink - @ via doc.ubuntu-fr.org
    Générer un certificat pour apache2
    Marche avec Ubuntu 12.04
    Afficher le snippet
    make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/ssl/private/domain.com.pem
    OU
    openssl req -x509 -nodes -days 730 -newkey rsa:4096 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.pem

    Pour Postfix
    openssl req -new -outform PEM -out /etc/postfix/smtpd.cert -newkey rsa:4096 -nodes -keyout /etc/postfix/smtpd.key -keyform PEM -days 730 -x509

    Pour Courier
    openssl req -out /etc/courier/imapd.pem -newkey rsa:4096 -keyout /etc/courier/imapd.pem -nodes -days 730 -x509
    Selectionner le code
  • httrack site web
    Thu Mar 28 09:38:50 2013 - permalink -
    Aspiré un site web
    Afficher le snippet
    httrack --mirror --path /rep/de/destination/ internet.com
                  
    Selectionner le code
  • git hash
    Mon Mar 25 12:00:49 2013 - permalink - @ via stackoverflow.com
    Git afficher le hash court du dernier commit
    Donne un hash court du dernier commit.
    Afficher le snippet
    git log --pretty=format:'%h' -n 1
                  
    Selectionner le code
  • archive git zip
    Mon Mar 25 10:13:32 2013 - permalink - @ via stackoverflow.com
    Créer une archive d'un dépo Git
    Pour exporter un dépo Git en une archive.
    Afficher le snippet
    git archive --format zip --output /full/path/to/zipfile.zip master
                  
    Selectionner le code
  • bash httpstatus
    Tue Mar 19 09:42:52 2013 - permalink - @ via gist.github.com
    Obtenir les httpstatus d'un site avec un script bash
    Un super script qui retourne les status http d'un site (404,200, 503....).
    Afficher le snippet
    #!/usr/bin/env bash
    #  Author https://github.com/rsvp // orginal  script at https://gist.github.com/rsvp/1171304
    set -u
    # ^ unbound (i.e. unassigned) variables shall be errors.
    set -e
    # ^ error checking :: Highly Recommended (caveat: you can't check $? later).


    url=${1:-'http://www.google.com'}
    timeout=${2:-'3'}
    # ^in seconds
    flag=${3:-'--status'}

    # curl options, e.g. -L to follow redirects
    arg4=${4:-''}
    arg5=${5:-''}
    arg6=${6:-''}
    arg7=${7:-''}
    curlops="$arg4 $arg5 $arg6 $arg7"

    # __________ get the CODE which is numeric:
    code=`echo $(curl --write-out %{http_code} --silent -S --connect-timeout $timeout \
    --no-keepalive $curlops --output /dev/null $url)`
    # though curl is --silent, -S will show its errors.

    # __________ get the STATUS (from code) which is human interpretable:
    case $code in
    000) status="Not responding within $timeout seconds" ;;
    100) status="Informational: Continue" ;;
    101) status="Informational: Switching Protocols" ;;
    200) status="Successful: OK within $timeout seconds" ;;
    201) status="Successful: Created" ;;
    202) status="Successful: Accepted" ;;
    203) status="Successful: Non-Authoritative Information" ;;
    204) status="Successful: No Content" ;;
    205) status="Successful: Reset Content" ;;
    206) status="Successful: Partial Content" ;;
    300) status="Redirection: Multiple Choices" ;;
    301) status="Redirection: Moved Permanently" ;;
    302) status="Redirection: Found residing temporarily under different URI" ;;
    303) status="Redirection: See Other" ;;
    304) status="Redirection: Not Modified" ;;
    305) status="Redirection: Use Proxy" ;;
    306) status="Redirection: status not defined" ;;
    307) status="Redirection: Temporary Redirect" ;;
    400) status="Client Error: Bad Request" ;;
    401) status="Client Error: Unauthorized" ;;
    402) status="Client Error: Payment Required" ;;
    403) status="Client Error: Forbidden" ;;
    404) status="Client Error: Not Found" ;;
    405) status="Client Error: Method Not Allowed" ;;
    406) status="Client Error: Not Acceptable" ;;
    407) status="Client Error: Proxy Authentication Required" ;;
    408) status="Client Error: Request Timeout within $timeout seconds" ;;
    409) status="Client Error: Conflict" ;;
    410) status="Client Error: Gone" ;;
    411) status="Client Error: Length Required" ;;
    412) status="Client Error: Precondition Failed" ;;
    413) status="Client Error: Request Entity Too Large" ;;
    414) status="Client Error: Request-URI Too Long" ;;
    415) status="Client Error: Unsupported Media Type" ;;
    416) status="Client Error: Requested Range Not Satisfiable" ;;
    417) status="Client Error: Expectation Failed" ;;
    500) status="Server Error: Internal Server Error" ;;
    501) status="Server Error: Not Implemented" ;;
    502) status="Server Error: Bad Gateway" ;;
    503) status="Server Error: Service Unavailable" ;;
    504) status="Server Error: Gateway Timeout within $timeout seconds" ;;
    505) status="Server Error: HTTP Version Not Supported" ;;
    *) echo " !! httpstatus: status not defined." && exit 1 ;;
    esac

    case $flag in
    --status) echo "$code $status" ;;
    -s) echo "$code $status" ;;
    --code) echo "$code" ;;
    -c) echo "$code" ;;
    *) echo " !! httpstatus: bad flag" && exit 1 ;;
    esac

    exit 0
    Selectionner le code
  • debug function php
    Thu Mar 14 14:19:41 2013 - permalink - @ via www.blog.cactuscrew.com
    Améliore la sortie print_r
    Une fonction bien pratique pour aidé au débogage.

    $maVar : peut être n'importe quoi (array,variable,objet)
    nom_a_affiché : c'est simplement pour mieux s'y retrouver lorsque l'on appelle plusieurs fois la fonction par page.

    n_print($maVar,'nom a affiché');
    Afficher le snippet
    <?php
    /**
      * Améliore la sortie print
      *
      * @author  Tatane http://www.tatane.info/index.php/print_rn
      * @author http://www.blog.cactuscrew.com/77-print_rn.html
      * @param $data (array) tableau ou variable à examiner
      * @param $name (string) nom a afficher
      * @return false affiche les clef valeur du tableau $data
      * @example n_print($array, 'Tableau de valeur');
      */
     function n_print($data, $name = '') {
       $aBackTrace = debug_backtrace();
       echo '<h2>', $name, '</h2>';
       echo '<fieldset style="border: 1px solid orange; padding: 5px;color: #333; background-color: #fff;">';
       echo '<legend style="border:1px solid orange;padding: 1px;background-color:#eee;color:orange;">', basename($aBackTrace[0]['file']), ' ligne => ', $aBackTrace[0]['line'], '</legend>';
       echo '<pre>', htmlentities(print_r($data, 1)), '</pre>';
       echo '</fieldset><br />';
     }
    Selectionner le code
  • aptana thème
    Mon Mar 11 14:12:25 2013 - permalink -
    Thème pour Aptana
    Une légère modification du thème Bespin pour Aptana (doit marché pour Eclipse)

    Le nommé le fichier Bespin(KT).thTheme .
    Afficher le snippet
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
     <key>name</key>
     <string>Bespin</string>
     <key>uuid</key>
     <string>4e454174-47f3-3b37-a135-2d47bf0c2bf8</string>
     <key>settings</key>
     <array>
       <dict>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#baae9e</string>
           <key>background</key>
           <string>#28211c</string>
           <key>caret</key>
           <string>#a7a7a7</string>
           <key>lineHighlight</key>
           <string>#ffffff08</string>
           <key>selection</key>
           <string>#ddf0ff33</string>
           <key>invisibles</key>
           <string>#404040</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>-Common-</string>
         <key>scope</key>
         <string>dont.match</string>
         <key>settings</key>
         <dict>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>--Console--</string>
         <key>scope</key>
         <string>dont.match</string>
         <key>settings</key>
         <dict>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>console.error</string>
         <key>scope</key>
         <string>console.error</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#ca0000ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>console.input</string>
         <key>scope</key>
         <string>console.input</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#5ea6eaff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>console.prompt</string>
         <key>scope</key>
         <string>console.prompt</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#cf6a4cff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>console.warning</string>
         <key>scope</key>
         <string>console.warning</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#cccc33ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>console.debug</string>
         <key>scope</key>
         <string>console.debug</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#ffec8bff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>hyperlink</string>
         <key>scope</key>
         <string>hyperlink</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#548fa0ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>--Misc.--</string>
         <key>scope</key>
         <string>dont.match</string>
         <key>settings</key>
         <dict>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Unstaged files</string>
         <key>scope</key>
         <string>markup.deleted</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f8f8f8ff</string>
           <key>background</key>
           <string>#420e09ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Staged files</string>
         <key>scope</key>
         <string>markup.inserted</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f8f8f8ff</string>
           <key>background</key>
           <string>#253b22ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>markup.changed</string>
         <key>scope</key>
         <string>markup.changed</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f8f8f8ff</string>
           <key>background</key>
           <string>#4a410dff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>markup.underline</string>
         <key>scope</key>
         <string>markup.underline</string>
         <key>settings</key>
         <dict>
           <key>fontStyle</key>
           <string>underline</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>markup.bold</string>
         <key>scope</key>
         <string>markup.bold</string>
         <key>settings</key>
         <dict>
           <key>fontStyle</key>
           <string>bold</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>markup.italic</string>
         <key>scope</key>
         <string>markup.italic</string>
         <key>settings</key>
         <dict>
           <key>fontStyle</key>
           <string>italic</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>meta.diff, meta.diff.header</string>
         <key>scope</key>
         <string>meta.diff, meta.diff.header</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f8f8f8ff</string>
           <key>background</key>
           <string>#0e2231ff</string>
           <key>fontStyle</key>
           <string>italic</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>meta.separator.diff</string>
         <key>scope</key>
         <string>meta.separator.diff</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#ffffffff</string>
           <key>background</key>
           <string>#3467d1ff</string>
           <key>fontStyle</key>
           <string>italic</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>meta.separator</string>
         <key>scope</key>
         <string>meta.separator</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#ffffffff</string>
           <key>background</key>
           <string>#3467d1ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>property</string>
         <key>scope</key>
         <string>property</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#879ab5ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>-Theme Specific-</string>
         <key>scope</key>
         <string>dont.match</string>
         <key>settings</key>
         <dict>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>invisibles</string>
         <key>scope</key>
         <string>invisibles</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#ffffff40</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Comment</string>
         <key>scope</key>
         <string>comment</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#666666ff</string>
           <key>fontStyle</key>
           <string>italic</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Constant</string>
         <key>scope</key>
         <string>constant</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#cf6a4cff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Entity</string>
         <key>scope</key>
         <string>entity</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#937121ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Keyword</string>
         <key>scope</key>
         <string>keyword</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#5ea6eaff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Storage</string>
         <key>scope</key>
         <string>storage</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f9ee98ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>String</string>
         <key>scope</key>
         <string>string</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#54be0dff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Support</string>
         <key>scope</key>
         <string>support</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#9b859dff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Variable</string>
         <key>scope</key>
         <string>variable</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#7587a6ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Invalid – Deprecated</string>
         <key>scope</key>
         <string>invalid.deprecated</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#d2a8a1ff</string>
           <key>fontStyle</key>
           <string>italic,underline</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Invalid – Illegal</string>
         <key>scope</key>
         <string>invalid.illegal</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f8f8f8ff</string>
           <key>background</key>
           <string>#562d56bf</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>♦ Embedded Source</string>
         <key>scope</key>
         <string>text source</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#baae9eff</string>
           <key>background</key>
           <string>#b0b3ba14</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>♦ Embedded Source (Bright)</string>
         <key>scope</key>
         <string>text.html.ruby source</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#baae9eff</string>
           <key>background</key>
           <string>#b1b3ba21</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>♦ Entity inherited-class</string>
         <key>scope</key>
         <string>entity.other.inherited-class</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#9b5c2eff</string>
           <key>fontStyle</key>
           <string>italic</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>♦ String embedded-source</string>
         <key>scope</key>
         <string>string source</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#daefa3ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>♦ String constant</string>
         <key>scope</key>
         <string>string constant</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#ddf2a4ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>♦ String.regexp</string>
         <key>scope</key>
         <string>string.regexp</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#e9c062ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>♦ String.regexp.«special»</string>
         <key>scope</key>
         <string>string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#cf7d34ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>♦ String variable</string>
         <key>scope</key>
         <string>string variable</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#8a9a95ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>♦ Support.function</string>
         <key>scope</key>
         <string>support.function</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#dad085ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>♦ Support.constant</string>
         <key>scope</key>
         <string>support.constant</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#cf6a4cff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>c C/C++ Preprocessor Line</string>
         <key>scope</key>
         <string>meta.preprocessor.c</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#8996a8ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>c C/C++ Preprocessor Directive</string>
         <key>scope</key>
         <string>meta.preprocessor.c keyword</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#afc4dbff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>✘ Doctype/XML Processing</string>
         <key>scope</key>
         <string>meta.tag.sgml.doctype, meta.tag.sgml.doctype entity, meta.tag.sgml.doctype string, meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity, meta.tag.preprocessor.xml string</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#5ea6eaff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>✘ Meta.tag.«all»</string>
         <key>scope</key>
         <string>declaration.tag, declaration.tag entity, meta.tag, meta.tag entity</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#ac885bff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>§ css tag-name</string>
         <key>scope</key>
         <string>meta.selector.css entity.name.tag</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#cda869ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>§ css:pseudo-class</string>
         <key>scope</key>
         <string>meta.selector.css entity.other.attribute-name.tag.pseudo-class</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#8f9d6aff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>§ css#id</string>
         <key>scope</key>
         <string>meta.selector.css entity.other.attribute-name.id</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#8b98abff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>§ css.class</string>
         <key>scope</key>
         <string>meta.selector.css entity.other.attribute-name.class</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#9b703fff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>§ css property-name:</string>
         <key>scope</key>
         <string>support.type.property-name.css</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#c5af75ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>§ css property-value;</string>
         <key>scope</key>
         <string>meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f9ee98ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>§ css @at-rule</string>
         <key>scope</key>
         <string>meta.preprocessor.at-rule keyword.control.at-rule</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#8693a5ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>§ css additional-constants</string>
         <key>scope</key>
         <string>meta.property-value support.constant.named-color.css, meta.property-value constant</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#ca7840ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>§ css constructor.argument</string>
         <key>scope</key>
         <string>meta.constructor.argument.css</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#8f9d6aff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>⎇ diff.header</string>
         <key>scope</key>
         <string>meta.diff, meta.diff.header, meta.separator</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f8f8f8ff</string>
           <key>background</key>
           <string>#0e2231ff</string>
           <key>fontStyle</key>
           <string>italic</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>⎇ diff.deleted</string>
         <key>scope</key>
         <string>markup.deleted</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f8f8f8ff</string>
           <key>background</key>
           <string>#420e09ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>⎇ diff.changed</string>
         <key>scope</key>
         <string>markup.changed</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f8f8f8ff</string>
           <key>background</key>
           <string>#4a410dff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>⎇ diff.inserted</string>
         <key>scope</key>
         <string>markup.inserted</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f8f8f8ff</string>
           <key>background</key>
           <string>#253b22ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Markup: List</string>
         <key>scope</key>
         <string>markup.list</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#f9ee98ff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Markup: Heading</string>
         <key>scope</key>
         <string>markup.heading</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#cf6a4cff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>tag name</string>
         <key>scope</key>
         <string>entity.name.tag</string>
         <key>settings</key>
         <dict>
           <key>foreground</key>
           <string>#5ea6eaff</string>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Annotation Override - searchResultIndication</string>
         <key>scope</key>
         <string>override.searchResultIndication</string>
         <key>settings</key>
         <dict>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Annotation Override - xmlTagPairOccurrenceIndication</string>
         <key>scope</key>
         <string>override.xmlTagPairOccurrenceIndication</string>
         <key>settings</key>
         <dict>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Annotation Override - htmlTagPairOccurrenceIndication</string>
         <key>scope</key>
         <string>override.htmlTagPairOccurrenceIndication</string>
         <key>settings</key>
         <dict>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Annotation Override - rubyBlockPairOccurrenceIndication</string>
         <key>scope</key>
         <string>override.rubyBlockPairOccurrenceIndication</string>
         <key>settings</key>
         <dict>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>Annotation Override - pydevOccurrenceIndication</string>
         <key>scope</key>
         <string>override.pydevOccurrenceIndication</string>
         <key>settings</key>
         <dict>
         </dict>
       </dict>
       <dict>
         <key>name</key>
         <string>text source</string>
         <key>scope</key>
         <string>text source</string>
         <key>settings</key>
         <dict>
         </dict>
       </dict>
     </array>
    </dict>
    </plist>
    Selectionner le code
  • bash mkdir
    Wed Mar 6 10:45:56 2013 - permalink - @ via technosophos.com
    Créer des répertoire et sous répertoire en une commande
    Permet de créer une arborescence en une commande simple et facile a comprendre.
    Afficher le snippet
    mkdir -p myProject/{src,doc,tools,db}
                  
    Selectionner le code
  • ban de-ban fail2ban iptables
    Fri Mar 1 10:47:18 2013 - permalink -
    Dé-bannir une ip avec Iptables (Fail2ban)
    Après un ban d'Ip avec Fail2ban il n'est évident de dé-bannir cette adresse, pourtant avec Iptables c'est facilement réalisable.

    En deux commande, la première pour avoir la liste des bans et le nom de la règle de failban qui a banni l'ip. Et ensuite on de-ban en utilisant le nom de la règle et le numéro de ligne (on commence à 1 et pas 0)
    Afficher le snippet
    # On liste les services fail2ban
    iptables -L
    .....
    ....
    Chain fail2ban-ssh (1 references)
    target     prot opt source               destination        
    DROP       all  --  xxx.xx.xxx.xx        anywhere            
    RETURN     all  --  anywhere             anywhere
    ....


    # La règle qui a appliqué le ban "fail2ban-ssh" et la ligne 1
    iptables -D fail2ban-ssh 1
    Selectionner le code
  • cli information materiel
    Thu Feb 28 15:59:15 2013 - permalink - @ via linux-attitude.fr
    Des infos détaillé sur votre matos
    Des infos détaillé sur votre matos
    Afficher le snippet
    sudo dmidecode -q
                  
    Selectionner le code
  • calendrier cli terminal
    Thu Feb 28 15:39:48 2013 - permalink - @ via linux-attitude.fr
    Calendrier dans un terminal
    Pratique pour afficher un calendrier
    Afficher le snippet
    # pour afficher le calendrier d'une autre année ajouté l'année sous 4 chiffre ncal -wy 2000
    ncal -wy
    Selectionner le code
  • git origin push
    Thu Feb 28 11:56:06 2013 - permalink - @ via stackoverflow.com
    Fetch mais pas push
    Lorsque l'on clone un projet avec Git, ce dernier ajoute l'url pour push et pour fetch. Le problème lorsqu'on a pas les droit pour push, c'est les messages d'erreur qui en result. Le plus simple est donc de désactivé l'url pour push
    Afficher le snippet
    git remote set-url --push origin no_push
                  
    Selectionner le code
  • commande relancer root sudo
    Tue Feb 26 17:03:20 2013 - permalink - @ via linux-attitude.fr
    Relancer la dernière commande mais en root
    Relancer la dernière commande mais en root
    Afficher le snippet
    sudo !!
                  
    Selectionner le code
Links per page: 20 50 100
◄Older
page 1 / 2
Shaarli 0.0.41 beta - The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net. Theme by idleman.fr.
Other change as made by Knah Tsaeb for contact me use this form