4339 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 99 / 217
Newer►
  • Juniper France Tech Blog - J-Net Community

    sdn sdn !
    le moins que l'on puisse dire c'est que ça ne se simplifie pas

    September 12, 2014 at 1:59:12 PM GMT+2 - permalink - archive.org - http://forums.juniper.net/t5/Juniper-France-Tech-Blog/bg-p/FrenchTech#.VBKgqY3GRr4.twitter
    sdn
  • thumbnail
    Init script for Graphite carbon-cache

    ! /bin/sh

    BEGIN INIT INFO

    Provides: carbon-cache

    Required-Start: $remote_fs $syslog

    Required-Stop: $remote_fs $syslog

    Default-Start: 2 3 4 5

    Default-Stop: 0 1 6

    Short-Description: carbon-cache init script

    Description: An init script for Graphite's carbon-cache daemon.

    END INIT INFO

    Author: Jeremy Chalmer

    #

    This init script was written for Ubuntu 11.10 using start-stop-daemon.

    Note: Make sure you set the USER field in /opt/graphite/conf/carbon.conf to be the same

    user that owns the /opt/graphite/storage/ folder. Carbon-cache will be invoked as that

    username on start.

    #

    Enable with update-rc.d carbon-cache defaults

    Source init-functions:

    #source /lib/lsb/init-functions
    . /lib/lsb/init-functions

    PATH should only include /usr/* if it runs after the mountnfs.sh script

    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

    Path to Graphite

    GRAPHITE_HOME=/opt/graphite

    Name of executable daemon

    NAME=carbon-cache
    DESC=carbon-cache

    #Carbon has its own logging facility, by default in /opt/graphite/storage/log/carbon-cache-*

    Path to Executable

    DAEMON=$GRAPHITE_HOME/bin/carbon-cache.py

    NOTE: This is a hard-coded PID file, based on carbon-cache.py. If you have more the one carbon-cache

    instance running on this machine, you'll need to figure out a better way to calculate the PID file.

    PIDFILE=/opt/graphite/storage/carbon-cache-a.pid

    SCRIPTNAME=/etc/init.d/$NAME

    Exit if the package is not installed

    if [ ! -x "$DAEMON" ]; then {
    echo "Couldn't find $DAEMON or not executable"
    exit 99
    }
    fi

    Load the VERBOSE setting and other rcS variables

    [ -f /etc/default/rcS ] && . /etc/default/rcS

    #

    Function that starts the daemon/service

    #
    do_start()
    {

    Return

    #   0 if daemon has been started
    #   1 if daemon was already running
    #   2 if daemon could not be started
    
        # Test to see if the daemon is already running - return 1 if it is. 
    start-stop-daemon --start --pidfile $PIDFILE \
        --exec $DAEMON --test -- start > /dev/null || return 1
    
        # Start the daemon for real, return 2 if failed
    start-stop-daemon --start --pidfile $PIDFILE \
        --exec $DAEMON -- start > /dev/null || return 2

    }

    #

    Function that stops the daemon/service

    #
    do_stop() {

    Return

    #   0 if daemon has been stopped
    #   1 if daemon was already stopped
    #   2 if daemon could not be stopped
    #   other if a failure occurred
    log_daemon_msg "Stopping $DESC" "$NAME"
    start-stop-daemon --stop --signal 2 --retry 5 --quiet --pidfile $PIDFILE
    RETVAL="$?"
    [ "$RETVAL" = 2 ] && return 2
    
        # Delete the exisitng PID file
    if [ -e "$PIDFILE" ]; then {
        rm $PIDFILE
    }
        fi
    
        return "$RETVAL"

    }

    Display / Parse Init Options

    case "$1" in
    start)
    [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
    do_start
    case "$?" in
    0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
    2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
    esac
    ;;
    stop)
    [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
    do_stop
    case "$?" in
    0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
    2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
    esac
    ;;
    restart)
    log_daemon_msg "Restarting $DESC" "$NAME"
    do_stop
    case "$?" in
    0|1)
    do_start
    case "$?" in
    0) log_end_msg 0 ;;
    1) log_end_msg 1 ;; # Old process is still running
    ) log_end_msg 1 ;; # Failed to start
    esac
    ;;
    )

    Failed to stop

    log_end_msg 1
    ;;
    esac
    ;;
    status)
    if [ -s $PIDFILE ]; then
    pid=cat $PIDFILE
    kill -0 $pid >/dev/null 2>&1
    if [ "$?" = "0" ]; then
    echo "$NAME is running: pid $pid."
    RETVAL=0
    else
    echo "Couldn't find pid $pid for $NAME."
    RETVAL=1
    fi
    else
    echo "$NAME is stopped (no pid file)."
    RETVAL=1
    fi
    ;;
    *)
    echo "Usage: $SCRIPTNAME {start
    stop restart status}" >&2
    exit 3
    ;;
    esac
    September 11, 2014 at 4:00:51 PM GMT+2 - permalink - archive.org - https://gist.github.com/chalmerj/1492384
    carbon graphite init
  • La reprise

    fini les vacances, c'est la reprise :'(

    September 8, 2014 at 4:21:24 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?15Skpw
    note
  • K480 Keyboard – Multi-Device – Logitech

    bien pensé ce clavier

    September 5, 2014 at 3:12:58 PM GMT+2 - permalink - archive.org - http://www.logitech.com/en-us/product/multi-device-keyboard-k480?crid=26
    clavier ipad keyboard logitech
  • thumbnail
    unix - How can I pretty-print JSON? - Stack Overflow

    How to pretty print a json string :

    cat pref.json | python -m json.tool

    for uuoc nazi ;) :

    < pref.json python -m json.tool
    or
    python -m json.tool < pref.json

    September 3, 2014 at 10:33:46 AM GMT+2 - permalink - archive.org - http://stackoverflow.com/questions/352098/how-can-i-pretty-print-json
    commandline json linux pretty print python
  • SSH Cheat Sheet | pentestmonkey

    petit rappel
    cheatsheet bien faite

    September 3, 2014 at 10:30:31 AM GMT+2 - permalink - archive.org - http://pentestmonkey.net/cheat-sheet/ssh-cheat-sheet
    ssh
  • Low Level Manager: Monitorama Conference

    à regarder à la rentrée

    via arnaudb

    August 30, 2014 at 6:45:43 PM GMT+2 - permalink - archive.org - http://www.lowlevelmanager.com/2014/07/monitorama-conference.html
    conf graphite
  • uMap

    Permet de se créer des cartes avec des repères

    alternativ to gmap

    August 29, 2014 at 9:09:24 AM GMT+2 - permalink - archive.org - http://umap.openstreetmap.fr/fr/
    alternativ carte gmap map osm
  • Pourquoi je lis (+ une douzaine de recommandations de livres)

    Des idées de livres à lire après un monde sans fin

    August 28, 2014 at 4:30:23 PM GMT+2 - permalink - archive.org - http://www.habitudes-zen.fr/2014/pourquoi-je-lis-une-douzaine-de-recommandations-de-livres/
    lecture livre
  • thumbnail
    Cryptography Expert Says, 'PGP Encryption is Fundamentally Broken, Time for PGP to Die'

    :o

    August 19, 2014 at 10:27:37 PM GMT+2 - permalink - archive.org - http://thehackernews.com/2014/08/cryptography-expert-pgp-encryption-is_19.html
    gpg pgp security
  • VisuAlgo - visualising data structures and algorithms through animation

    super cool pour comprendre les algos!

    August 19, 2014 at 10:21:41 PM GMT+2 - permalink - archive.org - http://www.comp.nus.edu.sg/~stevenha/visualization/index.html
    algo dev
  • Readline in Ruby with rbenv

    Pour avoir ruby compilé readline (en installant avec rbenv)

    August 18, 2014 at 5:50:28 PM GMT+2 - permalink - archive.org - http://vvv.tobiassjosten.net/ruby/readline-in-ruby-with-rbenv/
    rails rbenv readline ruby
  • Recette clafoutis by Fiaxhs

    4 oeufs
    80g de farine
    125g desucre
    1/4 litre de lait
    80g beurre
    20g Poudre d'amandes

    15-20 minutes à 210 degres, saupoudrer de sucre à la sortie du four

    August 14, 2014 at 10:15:49 AM GMT+2 - permalink - archive.org - https://links.infomee.fr/?6Vgeag
    clafoutis recette
  • Wel4 - Conférence Monitoring applicatif - YouTube

    les slides :
    http://fr.slideshare.net/kennydee/monitoring-applicatif-pourquoi-et-comment

    August 13, 2014 at 5:50:54 PM GMT+2 - permalink - archive.org - https://www.youtube.com/watch?v=VDAiz3d1_Po
    conf graphite
  • What happens if you write a TCP stack in Python? - Julia Evans

    Pour le fun et le learning : faire du tcp avec python / scapy

    via sametmax

    August 12, 2014 at 9:18:00 PM GMT+2 - permalink - archive.org - http://jvns.ca/blog/2014/08/12/what-happens-if-you-write-a-tcp-stack-in-python/
    networking python scapy
  • thumbnail
    Chronos: A Replacement for Cron | Airbnb Engineering

    ça a l'air bien ce chronos !

    August 12, 2014 at 5:50:13 PM GMT+2 - permalink - archive.org - http://nerds.airbnb.com/introducing-chronos/
    centralized cron
  • epic quote ssii

    vg qui parle des ssii
    "y'a tellement de turn-over en plus que t'es souvent le 800° mec qui configure une plateforme, donc tu passe dérrière des mecs qui des fois ont fumé toute la forêt amazonienne avant de prendre une décision stratégique."

    August 12, 2014 at 12:15:37 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?iJ5ALg
    ssii
  • Redis Sentinel at Flickr | code.flickr.com

    HA redis avec sentinel

    August 12, 2014 at 10:00:33 AM GMT+2 - permalink - archive.org - http://code.flickr.net/2014/07/31/redis-sentinel-at-flickr/
    ha redis
  • Mysql Indexing Tips - CodeSamplez

    via mickael

    August 11, 2014 at 2:48:53 PM GMT+2 - permalink - archive.org - http://codesamplez.com/database/mysql-indexing-tips
    index mysql
  • Get down! How to keep footers at the bottom of the page
    August 11, 2014 at 11:22:37 AM GMT+2 - permalink - archive.org - http://www.cssreset.com/how-to-keep-footer-at-bottom-of-page-with-css/
    css footer
Links per page: 20 50 100
◄Older
page 99 / 217
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation