4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
newest first
  • Labella.js

    could be useful

    December 3, 2015 - permalink - http://twitter.github.io/labella.js/
    js timeline
  • Check incoming update from puppet forge

    Un petit script pour check si les modules ont de nouvelles version dispo (il faut jq)

    #!/bin/bash
    
    modules=$(puppet module list|grep '\(v[0-9]\.[0-9]\.[0-9]\)')
    
    IFS=$'\n'
    for line in $modules; do
        name=$(echo $line|cut -d' ' -f2)
        version=$(echo $line|grep -o '\(v[0-9]\.[0-9]\.[0-9]\)'|sed 's/v//')
        current_version=$(curl -s https://forgeapi.puppetlabs.com/v3/modules/${name}|jq '.current_release.version'|sed 's/"//g')
        if [[ $version == $current_version ]]; then
            echo "OK $name $version $current_version"
        else
            echo "OUTDATED $name $version $current_version"
        fi  
    done
    
    November 30, 2015 - permalink - https://links.infomee.fr/shaare/6tdMVA
    IFS bash for forge loop module puppet
  • systemd service file for kibana 4.3

    [Unit]
    Description=Kibana 4

    [Service]
    Type=simple
    User=logstash
    Environment=CONFIG_PATH=/opt/kibana/config/kibana.yml
    Environment=NODE_ENV=production
    ExecStart=/opt/kibana/node/bin/node /opt/kibana/src/cli

    [Install]
    WantedBy=multi-user.target

    November 30, 2015 - permalink - https://links.infomee.fr/shaare/ynURrg
    kibana systemd
  • Work with network commands

    On the isolated_nw which was user defined, the Docker network feature updated the /etc/hosts with the proper name resolution. Inside of container2 it is possible to ping container3 by name.

    November 26, 2015 - permalink - https://docs.docker.com/engine/userguide/networking/work-with-networks/
    docker network
  • Docker container networking

    La doc évolue vite au fur et à mesure des versions.. en la relisant j'ai appris plein de nouvelles choses

    November 26, 2015 - permalink - https://docs.docker.com/engine/userguide/networking/dockernetworks/
    docker network
  • Three Solutions to Bi-directional Linking Problem in Docker Compose | Abdelrahman Hosny

    Cette solution semble etre un bon compromis quand on veut du lien bidirectionnel (ce qui n'est pas possible avec les links) :

    http://sgillis.github.io/posts/2015-03-23-docker-dns.html
    https://github.com/tonistiigi/dnsdock

    November 24, 2015 - permalink - http://abdelrahmanhosny.com/2015/07/01/3-solutions-to-bi-directional-linking-problem-in-docker-compose/
    dns docker link
  • c - Calculating CPU usage of a process in Linux - Stack Overflow

    /proc/pid/stat
    /proc/stat

    November 24, 2015 - permalink - http://stackoverflow.com/questions/1420426/calculating-cpu-usage-of-a-process-in-linux
    cpu
  • procstat - displays linux proc stat (/proc/pid/stat) in human-readable format

    /proc/pid/stat

    November 24, 2015 - permalink - http://brokestream.com/procstat.html
    cpu
  • bash - Format cputime for ps - Unix & Linux Stack Exchange

    Pour grapher le cputime cumulé de certains process

    ps -e --format pid,time

    L'inconvénient c'est que la valeur retournée est dans un format batard..
    Le mieux ce serait de l'avoir en seconde, comme le etimes

    November 23, 2015 - permalink - http://unix.stackexchange.com/questions/156607/format-cputime-for-ps
    cpu graph ps
  • Unitech/pm2

    nodejs process manager

    November 23, 2015 - permalink - https://github.com/Unitech/pm2
    node nodejs
  • Debuggex: Online visual regex tester. JavaScript, Python, and PCRE.
    November 23, 2015 - permalink - https://www.debuggex.com/
    regex test
  • vsz rss

    Tout est dans man ps, je me le mets de côté pour écrire un plugin collectd :

    ps -p $(cat /var/run/xx.pid) --no-headers --format rssize,vsize

    November 20, 2015 - permalink - https://links.infomee.fr/shaare/U5Vm5Q
    memory ram rss vsz
  • Running Apache in the foreground

    Pour avoir les logs d'apache dans la console quand on lance en foreground

    LogLevel info
    14 ErrorLog "|cat"
    15 LogFormat "%h %l %u %t \"%r\" %>s %b" common
    16 CustomLog "|cat" common

    November 18, 2015 - permalink - http://zroger.com/blog/apache-in-the-foreground/
    apache
  • iproute2 cheat sheet

    (added to pocket)

    November 18, 2015 - permalink - http://baturin.org/docs/iproute2/
    ip iproute man
  • 10 Best Free Download Javascript Libraries
    November 14, 2015 - permalink - http://www.responsivedesignblog.com/10-best-free-download-javascript-libraries/#
    javascript js lib
  • ECharts · Home
    November 14, 2015 - permalink - http://echarts.baidu.com/index-en.html
    chart javascript js
  • dm-crypt/Encrypting a non-root file system - ArchWiki
    • https://www.digitalocean.com/community/tutorials/how-to-use-dm-crypt-to-create-an-encrypted-volume-on-an-ubuntu-vps
    November 13, 2015 - permalink - https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_a_non-root_file_system
    backup chiffrement dmcrypt partition
  • unix - imuxsock messages in syslog and system becomes unresponsive - Server Fault

    En augmentant le rate limit de rsyslog ça passe

    imuxsock lost

    November 13, 2015 - permalink - http://serverfault.com/questions/444061/imuxsock-messages-in-syslog-and-system-becomes-unresponsive
    imuxsock limit rate rsyslog
  • ccontavalli/ssh-ident

    To manage multiple identities

    November 12, 2015 - permalink - https://github.com/ccontavalli/ssh-ident
    agent ssh
  • Using rsync from cron with ssh keys that have a passphrase | Me in IT

    It took me some time to figure this one out, as everybody is using rsync and ssh-keys without passphrases, but I insist that an ssh-key should have a passphrase.

    In my first attemts I got this error messages mailed to me by crontab:
    Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).

    Here are the steps to automate a backup initiated from crontab using rsync, SSH and ssh-keys with a passphrase:

    Make a set of SSH keys.
    Setup SSH to use the agent automatically.
    Login once as the user who's cron will run the backup script. You will be asked for a passphrase. When the machine reboots, you will need to login once more, to enter the passphrase again.
    Make a backup script that includes some SSH variables.
    This script could be as simple as this:
    . /home/username/.ssh/variables
    rsync -avz --delete /data/ example.com:data
    
    N.B. This variables file only contains these lines:
    SSH_AUTH_SOCK=/tmp/ssh-DmFcb18036/agent.18036; export SSH_AUTH_SOCK;
    SSH_AGENT_PID=18037; export SSH_AGENT_PID;
    echo Agent pid 18037;
    Put that script in crontab.
    

    That should do it for you, as it works like a charm for me!

    November 12, 2015 - permalink - https://meinit.nl/using-rsync-from-cron-with-ssh-keys-that-have-a-passphrase
    ssh
  • Enter your ssh-passphrase once, use it many times, even from crontab | Me in IT

    variables=~/.ssh/variables

    sshadd() {
    source "$variables" > /dev/null
    ssh-add -l > /dev/null 2>&1
    case "$?" in
    1)
    ssh-add > /dev/null 2>&1
    ;;
    2)
    rm "$variables"
    sshagent
    ;;
    esac
    }

    sshagent() {
    if [ -f "$variables" ] ; then
    sshadd
    else
    ssh-agent -s > $variables
    sshadd
    fi
    }

    sshagent

    November 12, 2015 - permalink - https://meinit.nl/enter-your-ssh-passphrase-once-use-it-many-times-even-from-crontab
    ssh
  • Mopidy
    November 10, 2015 - permalink - https://www.mopidy.com/
    music rasp spotify
  • RedisLabs/redis-migrate

    useful script to migrate redis server without downtime
    + http://boomboomboom.biz/blog/2013/09/07/migrate-redis-to-a-new-server-without-downtime/

    November 9, 2015 - permalink - https://github.com/RedisLabs/redis-migrate
    migrate python redis
  • MINIGAMES | FantaBobWorld
    November 7, 2015 - permalink - https://www.fantabobworld.com/index.php/category/mini-jeux/
    games minecraft
  • Uptime Funk - SUSECon 2015 (Uptown Funk Parody) - YouTube

    :D :D :D

    November 6, 2015 - permalink - https://www.youtube.com/watch?v=zbABy9ul11I
    fun lol sys sysadmin
  • Are You Sure This Works? Test Your Modules for PE and Puppet Using Beaker, Docker and More | Puppet Labs
    November 6, 2015 - permalink - https://puppetlabs.com/presentations/are-you-sure-works-test-your-modules-pe-and-puppet-using-beaker-docker-and-more
    puppet rspec test
  • PuppetConf 2015 Videos and Presentations | Puppet Labs
    November 6, 2015 - permalink - https://puppetlabs.com/puppetconf-2015-videos-and-presentations
    conf puppet
  • A Quick Benchmark: Gzip vs. Bzip2 vs. LZMA

    bzip2 en mode parallel : apt-get install pbzip2

    November 4, 2015 - permalink - http://tukaani.org/lzma/benchmarks.html
    compression gzip pbzip2 zip
  • GoAccess - Screenshots
    November 3, 2015 - permalink - http://goaccess.io/screenshots
    apache audit log logs nginx web
  • configz/roles/xymon at master · theonlydoo/configz

    Pour installer xymon rapidement
    via doo

    November 2, 2015 - permalink - https://github.com/theonlydoo/configz/tree/master/roles/xymon
    ansible monitoring xymon
  • exebetche/vlsub

    extension pour dl les sub à partir de vlc :o

    à tester

    November 2, 2015 - permalink - https://github.com/exebetche/vlsub/
    sub subtitle vls
  • We are all Devops // Speaker Deck

    via Doo

    November 2, 2015 - permalink - https://speakerdeck.com/kdaniels/we-are-all-devops
    devops
  • http://ericrie.se/blog/git-freebase/
    November 1, 2015 - permalink - http://http://ericrie.se/blog/git-freebase/
    git
  • StartupMaster :: Modules pour Firefox

    Pour qu'enfin firefox arrête de me demander 1000 fois mon master password quand je le lance

    October 31, 2015 - permalink - https://addons.mozilla.org/fr/firefox/addon/startupmaster/
    firefox master password startup
  • UnattendedUpgrades - Debian Wiki

    checkrestart : https://packages.debian.org/fr/wheezy/debian-goodies
    needrestart : https://packages.debian.org/fr/sid/needrestart

    October 28, 2015 - permalink - https://wiki.debian.org/UnattendedUpgrades
    debian upgrade
  • La Gestion de Produit Agile en deux mots - YouTube
    October 27, 2015 - permalink - https://www.youtube.com/watch?v=3qMpB-UH9kA
    agile scrum
  • scripts/sync_to_s3.sh at master · gdelpierre/scripts

    via VG

    October 27, 2015 - permalink - https://github.com/gdelpierre/scripts/blob/master/sync_to_s3.sh
    amazon script
  • EC2 Pricing: understanding compute costs on AWS
    October 27, 2015 - permalink - http://cloudacademy.com/blog/ec2-pricing-how-to-compute-costs-on-aws/
    amazon pricing
  • birdie/INSTALL at master · birdieapp/birdie

    via doo

    October 27, 2015 - permalink - https://github.com/birdieapp/birdie/blob/master/INSTALL
    twitter
  • https://gitlab.phys.ethz.ch/monitoring/hobbit-plugins/raw/36ef9c62cb82e2f9c0ad80c4649f2ee10cd47f38/client-ext/libs
    October 26, 2015 - permalink - https://gitlab.phys.ethz.ch/monitoring/hobbit-plugins/raw/36ef9c62cb82e2f9c0ad80c4649f2ee10cd47f38/client-ext/libs
    deleted lib lsof monitoring
  • Run Kibana as service on CentOS - Kibana - Discuss Elasticsearch, Logstash and Kibana | Elastic
    October 26, 2015 - permalink - https://discuss.elastic.co/t/run-kibana-as-service-on-centos/23971/3
    kibana service
  • Transférer des fichiers en utilisant des requêtes DNS - Korben

    ahah

    October 22, 2015 - permalink - http://korben.info/transferer-des-fichiers-en-utilisant-des-requetes-dns.html
    dns
  • philipwalton/flexbugs
    October 22, 2015 - permalink - https://github.com/philipwalton/flexbugs
    css flex
  • Troy Hunt: Your login form posts to HTTPS, but you blew it when you loaded it over HTTP

    Ce n'est pas secure de load en http en le formulaire et de le submit en https.

    October 21, 2015 - permalink - http://www.troyhunt.com/2013/05/your-login-form-posts-to-https-but-you.html
    https
  • Slow query graphs using Performance Schema and Graphite

    via skunnyk

    October 21, 2015 - permalink - https://www.percona.com/blog/2015/10/20/slow-query-graphs-using-performance-schema-and-graphite/
    graphite mysql percona query slow sql
  • Puppet Server: Tuning Guide — Documentation — Puppet Labs
    October 21, 2015 - permalink - http://docs.puppetlabs.com/puppetserver/2.1/tuning_guide.html
    puppet puppet4 puppetserver
  • puppetdb query : get last report for all nodes

    curl -s -G http://localhost:8080/pdb/query/v4/reports --data-urlencode 'query=["=","latest_report?","true"]'| jq '.[] | {certname: .certname, receive_time: .receive_time}'

    October 19, 2015 - permalink - https://links.infomee.fr/shaare/N4WFzQ
    puppetdb
  • puppetdb query : get non reporting nodes

    retrieve last_report older than 30 minutes :

    curl -s -G http://localhost:8080/pdb/query/v4/reports --data-urlencode "query=[\"and\",[\"<\",\"receive_time\",\"$(date --utc +%Y-%m-%dT%H:%M -d '30 min ago')\"],[\"=\",\"latest_report?\",\"true\"]]"|jq '.[]| {certname: .certname, receive_time: .receive_time}'

    October 19, 2015 - permalink - https://links.infomee.fr/shaare/CW0tyw
    puppetdb
  • puppetdb ssl setup (jetty)

    Il faut récupérer le ca.pem du puppetmaster, et les certificats du puppetdb en question
    sudo scp $(puppet master --configprint ssldir)/ca/ca_crt.pem puppetdb.example.com:/etc/puppetdb/ssl/ca.pem
    $ sudo scp $(puppet master --configprint ssldir)/private_keys/puppetdb.example.com.pem puppetdb.example.com:/etc/puppetdb/ssl/private.pem
    $ sudo scp $(puppet master --configprint ssldir)/certs/puppetdb.example.com.pem puppetdb.example.com:/etc/puppetdb/ssl/public.pem

    • modifier conf pour prendre tout ça en compte :

    /etc/puppetdb/conf.d/jetty.ini

    The host or IP address to listen on for HTTPS connections

    ssl-host = 0.0.0.0

    The port to listen on for HTTPS connections

    ssl-port = 8081

    Private key path

    ssl-key = /etc/puppetdb/ssl/private.pem

    Public certificate path

    ssl-cert = /etc/puppetdb/ssl/public.pem

    Certificate authority path

    ssl-ca-cert = /etc/puppetdb/ssl/ca.pem

    October 19, 2015 - permalink - https://docs.puppetlabs.com/puppetdb/3.1/install_from_source.html#step-3-option-b-manually-generating-and-preparing-certificates
    puppetdb
  • puppetdb call api en HTTPS

    With SSL:

    curl -X GET https://puppetdb.example.com:8081/pdb/query/v4/resources \
    --tlsv1 \
    --cacert /etc/puppet/ssl/certs/ca.pem \
    --cert /etc/puppet/ssl/certs/thisnode.pem \
    --key /etc/puppet/ssl/private_keys/thisnode.pem \
    --data-urlencode query@

    This requires that you specify a certificate (issued by the same CA PuppetDB trusts), a private key, and a CA certificate.

    In both examples, should be a file that contains the query to execute.

    October 19, 2015 - permalink - https://docs.puppetlabs.com/puppetdb/3.1/api/query/tutorial.html
    puppetdb
▼ Load 50 more