4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
newest first
  • GitHub - 20c/vaping: vaping is a healthy alternative to smokeping!
    January 20, 2017 - permalink - https://github.com/20c/vaping
    ping smokeping
  • GitHub - you-dont-need/You-Dont-Need-Javascript: CSS is powerful, you can do a lot of things without JS.

    via doo

    January 18, 2017 - permalink - https://github.com/you-dont-need/You-Dont-Need-Javascript#Accordion
    css js
  • Principles for Standardized REST Authentication - O'Reilly Broadcast

    Stateless auth for rest api

    Query Authentication

    All REST queries must be authenticated by signing the query parameters sorted in lower-case, alphabetical order using the private credential as the signing token. Signing should occur before URL encoding the query string.

    In other words, you don't pass the shared secret component of the API key as part of the query, but instead use it to sign the query. Your queries end up looking like this:

    GET /object?timestamp=1261496500&apiKey=Qwerty2010&signature=abcdef0123456789

    The string being signed is "/object?apikey=Qwerty2010×tamp=1261496500" and the signature is the HMAC-SHA256 hash of that string using the private component of the API key.

    The main objection to this approach is that the private API key devolves into a kind of password for static calls. For example, if the query were instead:

    GET /object?apiKey=Qwerty2010

    The signature would be the same every time you made that specific query. However, you are using SSL, right? Furthermore, adding in a timestamp makes each query differ. For extra security, you can make the timestamp a more formal date-time value with time zone information and disallow queries outside of the query range.

    The real controversy is whether signing should occur before or after URL encoding values. There is no "right" answer. I lean towards signing before encoding because most programming tools make it easier on the server side to get the unencoded values versus the encoded values. I'm sure good arguments can be made the other way. What I really care about is this: let's pick one and stick with it.

    January 18, 2017 - permalink - http://broadcast.oreilly.com/2009/12/principles-for-standardized-rest-authentication.html
    auth rest
  • Weboob s'offre une nouvelle version pour fêter la nouvelle année - LinuxFr.org

    Je ne connaissais pas du tout ce projet qui est bien interessant..

    Surtout le module bank qui a l'air très actif

    Je garde ça sous le coude, ça pourrait m'être utile dans mon application de gestion de compte

    January 13, 2017 - permalink - http://linuxfr.org/news/weboob-s-offre-une-nouvelle-version-pour-feter-la-nouvelle-annee
    bank banque compte finance weboob
  • markadams/chromium-xvfb - Docker Hub
    January 11, 2017 - permalink - https://hub.docker.com/r/markadams/chromium-xvfb/
    selenium
  • Headless Chromium

    interesting to run selenium

    January 11, 2017 - permalink - https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
    chrome headless selenium
  • IP address is incorrect in Apache access logs · Issue #27 · gnif/mod_rpaf · GitHub

    Contexte :
    Derniere version de rpaf et apache 2.4 (jessie)

    La variable %h qui est utilisée dans les LogFormat de base n'est pas substituée par rpaf... il faut la remplacer par %a qui elle, est bien modifiée par rpaf

    January 11, 2017 - permalink - https://github.com/gnif/mod_rpaf/issues/27
    apache rpaf
  • a little madness » Blog Archive » Running Selenium Headless
    January 10, 2017 - permalink - http://www.alittlemadness.com/2008/03/05/running-selenium-headless/
    headless qa selenium
  • regex - Bash: One-liner to exit with the opposite status of a grep command? - Stack Overflow

    La commande eb d'amazon retourne toujours 0 même quand elle foire.. pas pratique pour repérer une erreur dans les script de CI..

    Mes scripts bash commencent tous avec "set -e" pour sortir en erreur des qu'il y a un probleme

    La commande eb me pose donc problème, j'ai fixé ça de cette mainère en attendant de trouver mieux :

    eb blablabla 2>&1 | ( ! grep ERROR)

    De cette manière, si dans le stdout ou dans le stderr on trouve 'ERROR', le grep va matcher et renvoyer 1 (dans une utilisation normale, grep retourne 0 si il match, mais avec le point d'exclamation, on inverse ce retour)

    Ce qui aura pour effet de passer mon script en erreur !

    January 4, 2017 - permalink - http://stackoverflow.com/questions/15367674/bash-one-liner-to-exit-with-the-opposite-status-of-a-grep-command
    code error exit grep status
  • Cooler Master Storm Quick Fire Rapid-i (Switches MX Brown) (SGK-4040-GKCM1-FR) : achat / vente Clavier PC sur ldlc.com

    Un autre

    January 3, 2017 - permalink - http://www.ldlc.com/fiche/PB00168627.html
    clavier keyboard
  • French Filco Majestouch-2, Tenkeyless, NKR, Tactile Action, Keyboard : FKBN88M/FRB2 : The Keyboard Company

    Un tenkeyless ISO Azerty

    January 3, 2017 - permalink - http://www.keyboardco.com/keyboard/french-filco-majestouch-2-tenkeyless-nkr-tactile-action-keyboard.asp
    clavier keyboard
  • Git Blame: Fun with --first-parent
    December 29, 2016 - permalink - https://git-blame.blogspot.ch/2012/03/fun-with-first-parent.html
    first git log parent
  • File format | Vim Tips Wiki | Fandom powered by Wikia
    December 29, 2016 - permalink - http://vim.wikia.com/wiki/File_format
    CR CRLF LF convert file format git vim
  • java - What is this date format? 2011-08-12T20:17:46.384Z - Stack Overflow

    TIL :

    What is this date format? 2011-08-12T20:17:46.384

    The T is just a literal to separate the date from the time, and the Z means "zero hour offset" also known as "Zulu time" (UTC). If your strings always have a "Z" you can use

    December 28, 2016 - permalink - http://stackoverflow.com/questions/8405087/what-is-this-date-format-2011-08-12t201746-384z
    date format
  • Note: cron currency

    cat bin/currency.bash

    !/bin/bash

    Today

    echo -n "Today : "
    curl -s "http://api.fixer.io/latest?symbols=EUR,CHF&base=CHF" | jq '.rates|.EUR'

    Last 10 days

    for i in {1..10}; do
    dc=$(date --date="$i day ago" +%Y-%m-%d)
    echo -n "$dc : "
    curl -s "http://api.fixer.io/${dc}?symbols=EUR,CHF&base=CHF" | jq '.rates|.EUR'
    done

    Lien XE Graphique 1 month ago

    echo "http://www.xe.com/currencycharts/?from=CHF&to=EUR&view=1M"

    December 27, 2016 - permalink - https://links.infomee.fr/shaare/x9_68Q
    ch cron currency devise finance fr
  • ofelia/README.md at master · mcuadros/ofelia · GitHub
    December 26, 2016 - permalink - https://github.com/mcuadros/ofelia/blob/master/README.md
    cron docker
  • How to Setup Additional Entropy for Cloud Servers Using Haveged | DigitalOcean
    • yum install -y gcc
    • wget http://www.issihosts.com/haveged/haveged-1.9.1.tar.gz
    • tar xf haveged-1.9.1.tar.gz
    • cd haveged-1.9.1
    • make
    • ./configure
    • make
    • make install
    • /usr/local/sbin/haveged -w 1024

    To run this inside a container, you have to docker run --privileged
    You can run this on host, then map /dev/random from host inside container

    /!\ In test environment ONLY :

    Don't install anything, just map /dev/urandom from host into /dev/random container
    docker run -v /dev/urandom:/dev/random

    Test entropy : (rng-tools)
    cat /dev/random | rngtest -c 1000

    December 23, 2016 - permalink - https://www.digitalocean.com/community/tutorials/how-to-setup-additional-entropy-for-cloud-servers-using-haveged
    entropy random urandom
  • Javascript only - sort a bunch of DIVs - Stack Overflow
    December 23, 2016 - permalink - http://stackoverflow.com/questions/5066925/javascript-only-sort-a-bunch-of-divs
    div js sort
  • Pull Request Merge Strategies: The Great Debate - Atlassian Developers
    December 22, 2016 - permalink - https://developer.atlassian.com/blog/2014/12/pull-request-merge-strategies-the-great-debate/
    git workflow
  • Git team workflows: merge or rebase? | Atlassian Git Tutorial

    perso je tends pour le rebase

    December 22, 2016 - permalink - https://www.atlassian.com/git/articles/git-team-workflows-merge-or-rebase/
    git workflow
  • Läckerli Huus
    December 21, 2016 - permalink - http://www.laeckerli-huus.ch/
    gateau miam suisse
  • Difference between git pull --rebase and git pull --ff-only - Stack Overflow

    What will happen if I use git pull --rebase ?

    git pull --rebase is roughly equivalent to

    git fetch
    git rebase origin/master

    i.e. your remote changes (C) will be applied before the local changes (D), resulting in the following tree

    A -- B -- C -- D

    What will happen if I use git pull --ff-only ?
    

    It will fail.

    git pull --ff-only corresponds to

    git fetch
    git merge --ff-only origin/master

    --ff-only applies the remote changes only if they can be fast-forwarded. From the man:

    Refuse to merge and exit with a non-zero status unless the current HEAD is already up-to-date or the merge can be resolved as a fast-forward
    

    Since your local and remote branches have diverged, they cannot be resolved by a fast-forward and git pull --ff-only would fail.

    December 21, 2016 - permalink - http://stackoverflow.com/questions/25430600/difference-between-git-pull-rebase-and-git-pull-ff-only
    ff git merge
  • How to Setup AWS S3 Access from Specific IPs - Pete Cheslock

    {
    "Id": "S3PolicyId1",
    "Statement": [
    {
    "Sid": "IPDeny",
    "Effect": "Deny",
    "Principal": {
    "AWS": ""
    },
    "Action": "s3:
    ",
    "Resource": "arn:aws:s3:::my-wicked-awesome-bucket/*",
    "Condition": {
    "NotIpAddress": {
    "aws:SourceIp": "72.309.38.2/32"
    }
    }
    }
    ]
    }

    December 19, 2016 - permalink - https://pete.wtf/2012/05/01/how-to-setup-aws-s3-access-from-specific-ips/
    aws ip s3
  • Top 10+ meilleurs jeux de société et jeux d'ambiance du moment | Topito
    December 15, 2016 - permalink - http://www.topito.com/top-meilleurs-jeux-de-societe-ambiance
    game games jeu
  • Blanc-manger Coco - Blanc-manger Coco - Le jeu
    December 14, 2016 - permalink - http://blancmangercoco.com/blanc-manger-coco-le-jeu-principal/
    carte game games jeu
  • wildcard - Grant permissions to a set of databases matching a pattern in MysQL 5.0 - Stack Overflow

    Use ` instead of ' in the database name, and escape the _

    GRANT ALL PRIVILEGES ON xian\_%.* TO xian@'192.168.1.%';

    December 14, 2016 - permalink - http://stackoverflow.com/questions/2469119/grant-permissions-to-a-set-of-databases-matching-a-pattern-in-mysql-5-0
    mysql
  • GitHub - git-tips/tips: Most commonly used git tips and tricks.
    December 14, 2016 - permalink - https://github.com/git-tips/tips
    git tip tips
  • Git - how to revert multiple recent commits
    December 14, 2016 - permalink - http://serebrov.github.io/html/2014-01-04-git-revert-multiple-recent-comments.html
    git
  • GitHub - jwilder/nginx-proxy: Automated nginx proxy for Docker containers using docker-gen
    December 13, 2016 - permalink - https://github.com/jwilder/nginx-proxy
    docker nginx proxy
  • Note sur les Policy IAM

    Une policy IAM est constituée de statement, ce sont des règles (des blocs de codes)

    {
    "Statement":[{
    "Effect":"effect",
    "Action":"action",
    "Resource":"arn",
    "Condition":{
    "condition":{
    "key":"value"
    }
    }
    }
    ]
    }

    Chaque règle dans sa forme la plus simple est composée de 3 choses :

    Effect : allow ou deny

    Action : quelle action concerne la règle

    Resource : la resource concernée

    Chaque service Amazon (EC2, ECR, etc...) expose une liste d'action, on peut trouver cette liste dans la doc (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#Action)

    Et chaque resource peut être identifiée par un arn (une manière simple de retrouver un ARN est d'afficher la resources dans l'interface web AWS, il y a souvent l'arn)

    December 12, 2016 - permalink - https://links.infomee.fr/shaare/3KOHAQ
    aws iam policy
  • [ANNOUNCE] haproxy-1.7.0

    woot

    December 11, 2016 - permalink - http://about://reader?url=https%3A%2F%2Fwww.mail-archive.com%2Fhaproxy%40formilux.org%2Fmsg24244.html
    haproxy
  • Blog Stéphane Bortzmeyer: BCP 38, ne pas laisser des adresses IP usurpées sortir de son réseau

    J'avais eu les RFC sur ce sujet à commenter pendant le Master, souvenir ahah

    December 9, 2016 - permalink - http://www.bortzmeyer.org/bcp38.html
    network rfc
  • PrivateBin

    fork zerobin

    via arnaudb

    December 9, 2016 - permalink - https://privatebin.net/
    paste pastebin
  • Fugitive.vim - resolving merge conflicts with vimdiff

    :Gdiff
    :dp

    December 9, 2016 - permalink - http://vimcasts.org/episodes/fugitive-vim-resolving-merge-conflicts-with-vimdiff/
    fugitive merge vim
  • Note: inception

    I've edited my .vimrc to add fugitive plugin and commited it by using fugitive

    December 9, 2016 - permalink - https://links.infomee.fr/shaare/4Ww4qQ
    git vim
  • JavaScript 30 — Build 30 things with vanilla JS in 30 days with 30 tutorials

    ça a l'air bien

    via Shahor

    December 9, 2016 - permalink - https://javascript30.com/
    javascript js
  • The Fugitive Series - a retrospective

    <3

    December 9, 2016 - permalink - http://vimcasts.org/blog/2011/05/the-fugitive-series/
    fugitive vim
  • Note: AWS Beanstalk et cron

    On peut avoir besoin de faire tourner un ou plusieurs cron dans un environnement Beanstalk composé de X instances
    Etant donné que toute les instances sont configurées de la meme manière, si on rajoute le cron dans la config, il sera éxecuté sur toutes les instances

    Une solution serait de determiner si on est le "runnner" ou non avant de lancer le cron

    Pour que toutes les instances sachent qui est le runner, on peut imaginer un système comme celui ci :
    - on interroge l'ELB avec les API pour avoir ses backends
    - on trie cette liste de backend
    - le runner est le premier de cette liste
    - si notre ip est égale à celle du runner, on lance le cron

    ça a l'avantage de fonctionner quel que soit le nombre d'instances et ne pas stocker un état (on utilise les infos de l'ELB)

    Et si on ne veut pas faire tourner tous les crons sur le runner, on pourrait déterminer runnner1 runnner2 runner3 etc suivant l'ordre et faire tourner certains crons si on est runner1 ou bien runner2

    December 9, 2016 - permalink - https://links.infomee.fr/shaare/fmh_YQ
    aws beanstalk cron elb
  • Malcolm best of FR - YouTube

    Souvent mes journées au taf ressemblent à ça : je veux changer une ampoule, je finis sous la voiture

    December 9, 2016 - permalink - https://www.youtube.com/watch?v=NgzMWmVkn_4&feature=youtu.be&t=161
    it malcolm
  • linux - Looking for files NOT owned by someone - Stack Overflow

    find . ! -user foo -print

    December 9, 2016 - permalink - http://stackoverflow.com/questions/5927489/looking-for-files-not-owned-by-someone
    find
  • How to resolve git merge conflicts with Vim - Flaviu Simihaian's Blog - Entrepreneur and Developer

    \o/

    December 9, 2016 - permalink - http://flaviusim.com/blog/how-to-do-a-git-merge-with-vim/
    git merge vim
  • Building A Multiplayer 8 Bits Sequencer

    nice..

    December 8, 2016 - permalink - http://marcgg.com/blog/2016/11/21/chiptune-sequencer-multiplayer/
    dev game games ruby
  • Multipart Upload Overview - Amazon Simple Storage Service
    December 8, 2016 - permalink - http://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html
    aws multipart s3
  • Detecting File Moves & Renames with Rsync | Lincoln Loop

    Une méthode pour ne pas rsync des fichiers qui ont été déplacés dans la source

    Et en commentaire une extension à la solution qui m'a l'air pas mal du tout

    I use a derivative of this method, by creating a separate hard-links directory with md5-filenames. This gets rid of any duplicate files as well. Any files in this hard links directory with link count 1 are removed. Any files in the albums tree without the same inode to be found in the hard links tree are hard-linked into the hard links tree by using an MD5 of the file. Before I rsync I update the hard links dir, so when my wife decides to make a beautiful photobook and copies and moves lots of photos around, my ADSL doesn't get swamped when backing up my local photo store.

    The same script also generates JPG files from Nikon image files (NEF).

    This works both on FreeBSD/Linux/UNIX/etc as well as NTFS. Which is nice.

    December 8, 2016 - permalink - https://lincolnloop.com/blog/detecting-file-moves-renames-rsync/
    rsync
  • aws.png

    Bientôt 3 mois que j'ai commencé avec AWS

    En vert ce avec quoi j'ai pu bien jouer
    En orange survolé
    Et tout le reste

    Ce qui me plait le plus : tout est automatisable soit avec des appels à l'api (SDK dans beaucoup de langage) donc en mode séquentiel, soit avec CloudFormation, une sorte de Configuration Management donc en mode declaratif

    rdv dans 3 mois ;)

    December 7, 2016 - permalink - https://infomee.fr/vrac/aws.png
    aws
  • Solutions Architect—Associate Certification for AWS

    online resources to prepare aws certifications

    December 7, 2016 - permalink - https://cloudacademy.com/learning-paths/solutions-architect-associate-aws-14/
    aws certification courses
  • BigGraphite Announcement · criteo/biggraphite Wiki · GitHub

    Via Skunnyk

    December 6, 2016 - permalink - https://github.com/criteo/biggraphite/wiki/BigGraphite-Announcement
    graphite
  • OpenVPN-install/README.md at master · Angristan/OpenVPN-install · GitHub

    Via arnaudb

    December 5, 2016 - permalink - https://github.com/Angristan/OpenVPN-install/blob/master/README.md
    openvpn vpn
  • GitHub - utkarshcmu/wizzy: Manage Grafana entities with easy wizzy

    wow une cli pour editer les dashboards grafana.. ça peut servir par exemple pour dupliquer des variables de template d'un dashboard à X autres

    December 4, 2016 - permalink - https://github.com/utkarshcmu/wizzy#local-commands
    cli grafana
  • selenium-webdriver | RubyGems.org | your community gem host

    https://github.com/mozilla/geckodriver/releases

    November 30, 2016 - permalink - https://rubygems.org/gems/selenium-webdriver
    auto selenium test
▼ Load 50 more