3037 links
  • Nono's Links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 1 / 2
21 results tagged script x
  • Snippet: Watch free space in shell script (not bash)
    J'ai dû faire un script en shell (et non bash) et j'ai eu quelques adaptation à faire.
    Du coup, je publie ici, au cas ou ca intéresse quelqu'un :

    ------
    #!/bin/sh

    threshold=90

    df -h | awk '{ print $6 " " $5 " " $4 }' |
    {
            while read output
            do
                    fs=$(echo $output | awk '{ print $1}')
                    capacity=$(echo $output | awk '{ print $2}')
                    free=$(echo $output | awk '{ print $3}')
                    #echo "$fs is used at $capacity ($free left)"
                    capa=`echo $capacity | sed 's/.$//'`
                    if [ $capa -gt $threshold ]; then
                            issue=true
                            result="$result $fs is used more than $threshold % ($free left)\n"
                    fi
            done

            if [ $issue ]
            then
                    # somthing wrong
            fi
    }
    ------
    March 10, 2022 at 1:47:44 PM GMT+1 - permalink -
    QRCode
    - https://shaarli.m0le.net/?PFWhzQ
    script shell snippet
  • Petit script pour lister le prix du carburant près de chez soit
    EDIT: 04/05/2022 J'ai ajouté le triage, merci à SebSauvage pour la modif ;-)

    Alors j'annonce, c'est moche, mais c'est juste ce qu'il me faut à moi, soit :
    - Basé sur l'opendata de prix-carburants.gouv.fr
    - Sans se créer de compte sur le site et gérer des favoris
    - Sans avoir la carte (qui ne m’intéresse pas)

    Et ça nécessite : xmllint, zcat, et potentiellement cron ...

    Pour les IDs des stations, j'ai téléchargé le .xml (archivé) et j'ai cherché les villes proche de chez moi, sinon en allant sur le site/la carte, il est possible de voir l'identifiant sur certains liens des détails
    --------------

    #!/bin/bash
    curl -s https://donnees.roulez-eco.fr/opendata/instantane | zcat > carburant.xml
    ids="00000001_description1 00000002_description2 00000003_description3"
    type_essence="Gazole" # Gazole, SP95, SP98, E85, E10
    out_file=/var/www/html/carburant.html
    prixTotal=""
    NL=$'\n'
    echo "<html><head></head> <meta charset="UTF-8"> <body>" > $out_file
    for id in $ids;
    do
            i=$(echo $id | cut -d'_' -f1)
            place=$(echo $id | cut -d'_' -f2)

            prix="$(xmllint --xpath 'string(/pdv_liste/pdv[@id='$i']/prix[@nom="'$type_essence'"]/@valeur)' carburant.xml)"
            adresse="$(xmllint --xpath 'string(/pdv_liste/pdv[@id='$i']/adresse)' carburant.xml)"
            ville="$(xmllint --xpath 'string(/pdv_liste/pdv[@id='$i']/ville)' carburant.xml)"
            maj="$(xmllint --xpath 'string(/pdv_liste/pdv[@id='$i']/prix[@nom="Gazole"]/@maj)' carburant.xml)"
            prixTotal+="$prix € a $place $ville ($maj)<br />${NL}"
    done
    prixTotal=$(echo "$prixTotal" | sort -n)
    echo ${prixTotal#?} >> $out_file
    echo "<br /><br/>MaJ: $(date)</body></html>" >> $out_file
    --------------
    March 8, 2022 at 9:33:55 PM GMT+1 * - permalink -
    QRCode
    - https://shaarli.m0le.net/?Fs5Qqg
    script
  • backup_borg.sh · master · Nono / backup_borg · GitLab
    Le script que j'utilise pour sauvegarder mon serveur (ovh) vers mon NAS synology avec Borg Backup, via sshfs. (Ou comment gagner 20% d'espace disque, le tout chiffré ;-) )
    May 19, 2018 at 7:50:08 PM GMT+2 - permalink -
    QRCode
    - https://framagit.org/Nono_/backup_borg/blob/master/backup_borg.sh
    backup borg cli script
  • DB_Backup
    micro script pour générer une archive par db existante, zipper le tout, et supprimer au bout de X jours.

    Edit: Ca ne fonctionnera qu'en utilisant root, car il faut avoir accès à « mysql », « performance_schema » et « information_schema » via http://www.geek-directeur-technique.com/2017/07/17/utilisation-de-mysqldump#comment-410173
    May 7, 2017 at 6:02:59 PM GMT+2 - permalink -
    QRCode
    - https://github.com/Nono-m0le/DB_Backup
    script
  • m0le-o-backup is a simply backup script using rsync & python (with bash component).
    Sans prétention, un petit script de backup en python fait par un ami (avec une petite participation)
    On l'utilise pour backuper les VM de notre serveur dédié sur mon synology (autant profiter d'un 100Mbits à la maison !)
    May 26, 2016 at 3:25:26 AM GMT+2 - permalink -
    QRCode
    - https://github.com/m0le/m0le-o-backup
    script tools
  • Un petit script – 1
    Obtenir son IP WAN via un petit script (plus rapide qu'un curl ifconfig.me)
    Edit: 14/03/2015 changement d'url
    September 22, 2014 at 3:07:02 PM GMT+2 - permalink -
    QRCode
    - http://www.laurent-napias.com/post/2014/09/22/un-petit-script-1
    cli linux network script
  • MyCryptoChat, nouvelle version en PHP ! - HowTommy
    La version PHP d'un petit chat sécurisé ! (Quelle merde ce site codeplex par contre ><)
    January 15, 2014 at 12:19:48 PM GMT+1 - permalink -
    QRCode
    - http://blog.howtommy.net/?d=2014/01/15/09/01/26-mycryptochat-nouvelle-version-en-php
    php script security tools
  • Blog Salem Harrache - sshuttle
    Script et mise en place de sshuttle, un logiciel de VPN/Port Forwarding très simple d'utilisation/mise en place.
    August 12, 2013 at 1:36:29 PM GMT+2 - permalink -
    QRCode
    - http://salem.harrache.info/tag/sshuttle.html
    libre linux network nonovrac script security soft system tuto
  • Funnel - agréger plusieurs flux RSS en un seul
    Funnel, un tools qui permet de regrouper plusieurs flux RSS en 1 seul. (utile pour proposer 1 flux de toutes ces instances, blog, shaarli, etc ..)
    June 22, 2013 at 11:54:51 AM GMT+2 - permalink -
    QRCode
    - http://www.warriordudimanche.net/article169/funnel-agreger-plusieurs-flux-en-un-seul
    fact nonovrac php script tools
  • Nicolargo : Ma méthode pour gérer les règles IpTables
    Quelques méthodes et scripts sympa pour gérer son iptables. J'utilisais un cron qui faisait un reset toutes les 5 min, au cas ou justement je me bloquais l'accès au serveur (ce qui ne m'est arrivé qu'une fois de trop :D)
    June 21, 2013 at 9:01:03 AM GMT+2 - permalink -
    QRCode
    - http://www.planet-libre.org/index.php?post_id=14313&go=external
    cmd linux network script security todo
  • Mon script PHP de WOL (Wake on LAN) - Liens en vrac
    Hum, intéressant ca ! Un script de Wake on LAN en PHP ! (via sebsauvage)
    March 20, 2013 at 10:03:59 AM GMT+1 - permalink -
    QRCode
    - http://links.kevinvuilleumier.net/?D1IcHA
    network nonovrac php script system todo tools
  • Bookmarklet: Tracer une URL - Liens éclairs
    Un petit bookmarklet pour connaitre l'origine d'un lien réduit. Fonctionne avec t.co (à l'instar de cette méthode : http://shaarli.m0le.net/?jX6Lmg ) (Via Bajazet)
    March 14, 2013 at 8:43:10 AM GMT+1 - permalink -
    QRCode
    - http://bajazet.fr/shaarli/?jrAXDw
    nonovrac script tools
  • Script de génération de demande de certificat - Mes liens partagés - e-loquens.fr
    Script de génération de demande de certif CACert.org (Via Bajazet)
    Edit : quelques infos supplémentaires : http://wiki.cacert.org/FAQ/BrowserClients
    March 12, 2013 at 11:00:07 AM GMT+1 - permalink -
    QRCode
    - https://shaarli.e-loquens.fr/shaarli/index.php?WTxVyg
    nonovrac script security system todo tools
  • RewriteCond - Random Brain Farts By Mr. Harper
    Autoriser/limiter une adresse IPv6 sur apache (RewriteCond) (Via Timo)
    March 11, 2013 at 11:33:13 AM GMT+1 - permalink -
    QRCode
    - http://burkeharper.com/knowledge/?tag=rewritecond
    network script security
  • pongSmtp.pl – Tester le bon fonctionnement de votre serveur mail | David Mercereau
    Un script (perl) pour tester son serveur SMTP
    February 28, 2013 at 3:33:06 PM GMT+1 - permalink -
    QRCode
    - http://www.mercereau.info/pongsmtp-pl-tester-le-bon-fonctionnement-de-votre-serveur-mail/
    linux mail perl script todo tools
  • Créer/publier un plugin wordpress simple : “Adblock invite” | David Mercereau
    Introduction à la création de plugin wordpress ... Un jour j'aurai le temps ^^
    January 31, 2013 at 8:25:37 AM GMT+1 - permalink -
    QRCode
    - http://www.mercereau.info/creerpublier-un-plugin-wordpress-simple-adblock-invite/
    nonovrac script wordpress
  • WP Photo Sphere : insérez des panoramas sur 360° dans WordPress
    Un plugin pour insérer facilement des panoramas en 360° dans wordpress
    January 31, 2013 at 8:20:02 AM GMT+1 - permalink -
    QRCode
    - http://www.tassedecafe.org/2706-wp-photo-sphere-panoramas-360-degres-wordpress.html
    script tools wordpress
  • Bizou - une galerie php KISS - Liens en vrac de sebsauvage
    Une galerie php minimaliste : A tester !
    January 25, 2013 at 4:25:47 PM GMT+1 - permalink -
    QRCode
    - http://sebsauvage.net/links/index.php?tMM_BQ
    nonovrac php script todo
  • Blog - Afficher les joies du code dans conky
    Je vais sans doute jamais le mettre en place, mais tant pis :)
    Une façon d'avoir "Les joies du code" ( http://lesjoiesducode.tumblr.com/ ) automatiquement en fond d'écran via conky
    January 25, 2013 at 4:11:52 PM GMT+1 - permalink -
    QRCode
    - http://www.deblan.tv/post/474/Afficher-les-joies-du-code-dans-conky
    linux nonovrac script
  • NoPriv.py – Un miroir HTML de votre boite mail | Korben
    Un script python qui permet de faire une sauvegarde au format HTML de vos mails !
    January 25, 2013 at 2:57:40 PM GMT+1 - permalink -
    QRCode
    - http://korben.info/nopriv-py-un-miroir-html-de-votre-boite-mail.html
    backup mail nonovrac python script
Links per page: 20 50 100
◄Older
page 1 / 2
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation