4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
newest first
  • Bootstrap Live Customizer
    February 24, 2015 - permalink - http://bootstrap-live-customizer.com/
    bootstreap css design
  • Almost Perfect Email Regex - Everything About Email Regular Expression!

    Expressions régulières pour matcher un email selon la RFC 5322

    via Skunnyk

    February 24, 2015 - permalink - http://emailregex.com/
    email mail regex
  • Script rapide pour garder un sshfs actif (raspberry -> kimsufi)

    $ cat bin/ssh_fs_keeper.sh

    !/bin/bash

    ps aux|grep [s]shfs >/dev/null 2>/dev/null
    code=$?
    if [[ $code -eq 1 ]]; then
    sudo sshfs -o allow_other foo@domain.com:/home/path /home/path
    fi

    à mettre dans un cron

    February 21, 2015 - permalink - https://links.infomee.fr/shaare/8cWfKQ
    raspberry sshfs
  • Debian -- Details of package libapache2-mod-rpaf in sid

    Je me demandais pourquoi mes allow from x.x.x.x ne marchait plus au niveau de on apache... C'est pourtant con, j'ai un haproxy en frontal maintenant ! donc apache voit tout venir de 127.0.0.1 et les allow ne sont plus valides.

    Pour résoudre le probleme on peut installer ce mod qui va prendre l'ip dans les headers ajoutés par haproxy (x-forwarded-for) et la considérer comme l'ip source.

    February 21, 2015 - permalink - https://packages.debian.org/fr/sid/libapache2-mod-rpaf
    apache haproxy nginx rpaf
  • Bg, Fg, &, Ctrl-Z – 5 Examples to Manage Unix Background Jobs
    February 20, 2015 - permalink - http://www.thegeekstuff.com/2010/05/unix-background-job/
    screen
  • json diff
    February 19, 2015 - permalink - http://tlrobinson.net/projects/javascript-fun/jsondiff
    diff json
  • KMZ » Getting postfix to support relaying based on sender address

    relay by sender

    February 17, 2015 - permalink - http://www.kmz.co.za/blog/getting-postfix-to-support-relaying-based-on-sender-address/
    postfix
  • Heap: Sizing and Swapping
    February 17, 2015 - permalink - http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/heap-sizing.html
    elasticsearch tuning
  • Configuration
    February 17, 2015 - permalink - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-configuration.html
    elasticsearch tuning
  • Configuration
    February 17, 2015 - permalink - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-configuration.html#_system_configuration
    elasticsearch tuning
  • spotify/cassandra-reaper
    February 17, 2015 - permalink - https://github.com/spotify/cassandra-reaper
    cassandra repair
  • Open Food Facts - France
    February 16, 2015 - permalink - http://fr.openfoodfacts.org/
    food open
  • Iptables et Netfilter | Admin Debian

    Le schema dans cet article est vraiment clair (ce qui est rare pour un schema iptables)

    February 13, 2015 - permalink - http://www.admin-debian.com/securite/iptables-et-netfilter/
    iptables nat
  • Decrypting TLS Browser Traffic With Wireshark – The Easy Way! | Jim Shaver
    February 13, 2015 - permalink - https://jimshaver.net/2015/02/11/decrypting-tls-browser-traffic-with-wireshark-the-easy-way/
    ssl wireshark
  • Flexbox | Codrops CSS Reference
    February 12, 2015 - permalink - http://tympanus.net/codrops/css_reference/flexbox/
    css flexbox
  • My SQL Dump - Take the long view on the MySQL PERFORMANCE_SCHEMA with ps_history and sys_history
    February 12, 2015 - permalink - http://swanhart.livejournal.com/137743.html
    information_schema mysql
  • debian init script

    apt-get install debian-goodies && checkrestart

    via Doo

    February 11, 2015 - permalink - https://links.infomee.fr/shaare/ZiMfVA
    debian init
  • Easy, proactive monitoring of processes, programs, files, directories, filesystems and hosts | Monit

    via Nicolas

    February 10, 2015 - permalink - http://mmonit.com/monit/
    kiss monitoring nagios
  • phanan/htaccess · GitHub
    February 9, 2015 - permalink - https://github.com/phanan/htaccess
    apache htaccess
  • The Gooey Effect | CSS-Tricks

    woah

    February 5, 2015 - permalink - http://css-tricks.com/gooey-effect/
    css design menu
  • Ou on arrive enfin elasticsearch | Karlesnine
    February 4, 2015 - permalink - https://www.karlesnine.com/2015/02/04/ou-on-arrive-enfin-elasticsearch/
    elasticsearch elk kibana logstash
  • Comment savoir si votre entreprise est DevOps | CommitStrip - Blog relating the daily life of web agencies developers

    ahahahah

    via doo

    February 3, 2015 - permalink - http://www.commitstrip.com/fr/2015/02/02/is-your-company-ready-for-devops/
    devops
  • Les devops chez OVH.com
    February 3, 2015 - permalink - https://www.ovh.com/fr/a1075.devops-profil-pointu-poste-ovh
    devops sysadmin
  • Postfix rate limiting - Politeness goes a long way - steam.io
    February 2, 2015 - permalink - http://steam.io/2013/04/01/postfix-rate-limiting/
    limit mail postfix rate
  • Find out which process uses an old lib and needs a restart after a system update | commandlinefu.com

    lsof | grep 'DEL.lib'
    lsof | grep 'DEL.
    lib' | sort -k1,1 -u

    pour la libc : lsof | grep 'DEL'|grep libc-2.13.so|sort -k1,1 -u

    January 27, 2015 - permalink - http://www.commandlinefu.com/commands/view/8579/find-out-which-process-uses-an-old-lib-and-needs-a-restart-after-a-system-update
    lib process
  • Next generation development with Docker and Fig
    January 27, 2015 - permalink - http://blog.stxnext.com/posts/2015/01/development-with-docker-and-fig/
    docker fig
  • THIS IS VERY IMPORTANT - Imgur

    :D:D

    January 26, 2015 - permalink - http://imgur.com/gallery/Cpi2g
    cat gif
  • QoS (traffic control) under linux with tc

    Problème assez simple : lorsque je télécharge des vidéos de vacances sur mon serveur, la connexion est saturée et je ne peux plus rien faire sans latence (ssh, web, jeux..)

    Pour résoudre ce problème, j'ai limité l'upload de mon serveur de façon basique le temps de mieux comprendre tc (et sa partie classful) :
    tc qdisc add dev eth0 root tbf rate 6000kbit latency 50ms burst 10000

    Et ça marche bien :-) Je limite l'upload à 6000kbit/s soit la moitié de
    Sans cette politique je dl à 12Mbit/s depuis chez moi soit environ 1,5MBytes/s (1,5Moctets/s)
    Une fois la qdisc appliquée je chute de moitié. Un peu violent, mais au moins personne n'est pénalisé lorsque quelqu'un télécharge ^^ Je vais tenter d'augmenter un peu cette limite pour voir jusqu'où je peux aller.

    Ce n'est cependant pas parfait, ce workaround ne fonctionne que lorsqu'on télécharge sur mon serveur, il faudrait avoir un routeur à la maison (ex : raspberry) et le faire dessus avec des qdisc classful pour limiter suivant le type de flux

    PS :

    Pour voir et supprimer cette politique :
    tc qdisc show dev eth0
    tc qdisc del dev eth0 root

    Choix de la valeur de 'burst' :
    C'est la taille en bytes du bucket. Elle doit être un minimum de : rate/HZ. Pour trouver son HZ :

    # egrep '^CONFIG_HZ_[0-9]+' /boot/config-uname -r
    CONFIG_HZ_250=y

    Donc pour un rate de 6000kbit/sec = 6 000 000 bit/sec, on a :
    burst_mini = 6 000 000 / 250 = 24000 bits = 3000 bytes

    Et pour le burst maximum, on prend le rate max du server : 100Mbps = 100 000 000 bit
    burst_max = 100 000 000 / 250 = 400 000 bits = 50 000 bytes

    Il faut choisir une valeur dans cet intervalle, c'est la "réserve" qui sera disponible quand on commencera un téléchargement.
    50 000bytes, ça fait 50Mo, donc les 50 premiers Mo du téléchargement ne seront pas limités ce qui fait un peu trop.

    January 25, 2015 - permalink - https://links.infomee.fr/shaare/ETbYCQ
    tc
  • 'Re: exception in thread? in Net::SSH::Multi' - MARC

    errs = []
    def test_server(errs, server)
    lambda do |options|
    begin
    server =~ /(.+)@(.+)/
    server_name, user = $2, $1
    puts server_name
    s = Net::SSH.start(server_name, user)
    s.close
    s = server
    rescue Errno::EHOSTUNREACH, SocketError
    puts "echec connexion #{server} : #{$!}"
    errs << server
    s = nil
    end

        return s
    end
    

    end

    Net::SSH::Multi.start(:on_error => :warn) do |session|
    # define the servers we want to use
    session.use &test_server(errs, 'root@srv-04')
    session.use &test_server(errs, 'root@srv-07')
    session.use &test_server(errs, 'root@srv-08')
    session.use &test_server(errs, 'root@fail-08.local')

    # execute commands on all servers
    session.exec( "hostname" )

    # run the aggregated event loop
    session.loop
    end

    unless errs.empty?
    puts "The command failed on #{errs.size} hosts"
    end

    January 23, 2015 - permalink - http://marc.info/?l=ruby-talk&m=122278906522776&w=2
    multissh ruby ssh
  • MySQL Query Performance Statistics In The Performance Schema - VividCortex
    January 23, 2015 - permalink - https://vividcortex.com/blog/2014/11/03/mysql-query-performance-statistics-in-the-performance-schema/
    mysql stat
  • lartc | inetdoc.net

    traffic control

    January 21, 2015 - permalink - http://www.inetdoc.net:8080/guides/lartc/lartc.qdisc.html
    tc
  • fish shell

    Sympa l'auto completion de ce shell

    January 20, 2015 - permalink - http://fishshell.com/
    shell
  • 25 Tips for Intermediate Git Users
    January 18, 2015 - permalink - https://www.andyjeffries.co.uk/25-tips-for-intermediate-git-users/
    git
  • Utiliser sa ChromeCast en ligne de commande - Korben

    Je me mets ça au chaud

    January 18, 2015 - permalink - http://korben.info/castnow-chromecast-ligne-de-commande.html
    chromecast
  • Linux / Unix: Test Internet Connection Speed From Console Over SSH Command Line
    January 18, 2015 - permalink - http://www.cyberciti.biz/faq/linux-unix-test-internet-connection-download-upload-speed/
    connection speed speedtest test
  • Why aren’t we using SSH for everything? — Medium
    January 18, 2015 - permalink - https://medium.com/@shazow/ssh-how-does-it-even-9e43586e4ffc
    ssh
  • Get Rid of Deleted Open Files - Linux Quick HOWTO

    lsof|grep deleted

    January 18, 2015 - permalink - http://www.lazysystemadmin.com/2010/09/get-rid-of-deleted-open-files-linux.html
    lsof
  • ferd.ca -> Awk in 20 Minutes

    Ce tuto est bien fait
    Mais j'ai un peu de mal avec awk : pour des tâches simple je m'en sors avec cut, et pour des tâches plus complexes je passe à un vrai langage de scripting comme python

    January 18, 2015 - permalink - http://ferd.ca/awk-in-20-minutes.html
    awk
  • SysAdvent: So Server, Tell Me About Yourself — An Intro to Facter, Osquery & Sysdig | Puppet Labs
    January 18, 2015 - permalink - https://puppetlabs.com/blog/sysadvent-so-server-tell-me-about-yourself-intro-facter-osquery-sysdig?ls=social-media&ccn=twitter-product-20141222&cid=701G0000000F68P
    debug facter linux osquery sysdig
  • DevOps in Federal Government, a High Level Approach | Davila.io
    January 18, 2015 - permalink - http://davila.io/2014/10/14/devops-in-federal-government-a-high-level-approach/
    devops sysadmin
  • Terrible choices: MySQL | ionel's codelog

    Dans l'idéal il ne faudrait pas utiliser les paramètres par défauts et lire 100 de la doc pour faire sa propre conf... dans l'idéal.

    January 18, 2015 - permalink - http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/
    mysql
  • Exploiter inotify, c’est simple - LinuxFr.org

    simple mais fonctionne une fois sur deux suivant le workflow..

    January 18, 2015 - permalink - http://linuxfr.org/news/exploiter-inotify-c-est-simple
    inotify
  • Using ngrep | Mike Toscano | Blog

    ngrep -itq -d any -W byline

    Lorsque je veux inspecter le payload, je n'utilise plus du tout tcpdump mais ngrep

    Contrairement à tcpdump, l'option pour spécifier l'interface est -d est non pas -i

    January 18, 2015 - permalink - http://blog.miketoscano.com/?p=66
    ngrep tcpdump
  • What is a SSH key fingerprint and how is it generated? - Super User

    Dans les logs d'accès ssh (/var/log/auth.log), si vous avez passé le loglevel de SSH à VERBOSE, vous pouvez voir pour chaque accès la clé qui a été utilisé.
    Le format est différent de celui dans authorized_keys pour des raisons de lisibilité j'imagine.. Pour faire la conversion depuis authorized_keys vers ce format :

    echo key | base64 | md5
    ou
    ssh-keygen -lf key.pub

    January 18, 2015 - permalink - http://superuser.com/questions/421997/what-is-a-ssh-key-fingerprint-and-how-is-it-generated
    fingerprint key ssh
  • GTD and Offloading

    Il faudra que je relise GTD, même en ne l'appliquant pas à 100%, je suis totalement d'accord avec l'article

    January 18, 2015 - permalink - https://danielmiessler.com/blog/gtd-offloading/
    gtd
  • Docker & Puppet for Application Management — and Sanity | Puppet Labs
    January 18, 2015 - permalink - http://puppetlabs.com/blog/docker-and-puppet-for-application-management
    docker puppet
  • proc(5) — Linux manual pages
    • https://www.kernel.org/doc/Documentation/filesystems/proc.txt
    January 18, 2015 - permalink - http://manpages.courier-mta.org/htmlman5/proc.5.html
    linux proc
  • dht

    quand j'aurai du temps il faudra vraiment que je joue avec la dht
    https://infomee.fr/links/?2Z02Dw

    January 18, 2015 - permalink - https://links.infomee.fr/shaare/7QgS7w
    dht torrent
  • Elasticsearch, Logstash & Kibana with Docker | William DURAND
    January 18, 2015 - permalink - http://williamdurand.fr/2014/12/17/elasticsearch-logstash-kibana-with-docker/
    docker elk
  • sysadvent: Day 24 - 12 days of SecDevOps
    January 18, 2015 - permalink - http://sysadvent.blogspot.fr/2014/12/day-24-12-days-of-secdevops.html
    devops sysadmin
▼ Load 50 more