4266 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
newest first
  • Multicontainer Docker Configuration - AWS Elastic Beanstalk

    TIL

    Beanstalk is a little bit... magic. Dunno yet if its good or not :

    Elastic Beanstalk creates log volumes on the container instance, one for each container, at /var/log/containers/containername. These volumes are named awseb-logs-containername and should be mounted to the location within the container file structure where logs are written.

    For example, the following mount point maps the nginx log location in the container to the Elastic Beanstalk–generated volume for the nginx-proxy container.

    {
    "sourceVolume": "awseb-logs-nginx-proxy",
    "containerPath": "/var/log/nginx"
    }

    And all this logs can be copied into s3 automagically: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-elasticbeanstalkhostmanager

    February 2, 2017 - permalink - http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_v2config.html#create_deploy_docker_v2config_dockerrun_format
    aws beanstalk log logs
  • Lenovo est de retour avec de nouveaux ThinkPad

    Via Doo

    20h d'autonomie annoncée pour celui là :
    Lenovo ThinkPad X270

    Le Lenovo ThinkPad X270 est conçu pour durer. Grâce à sa batterie, il pourra en effet tenir pas moins de 20 heures avec une seule charge. Son châssis a aussi été renforcé pour lui permettre de résister aux chocs.

    Plusieurs configurations seront proposées. L’écran de 12,5 pouces pourra aussi afficher du 720p ou du 1080p. Derrière, on pourra opter pour des Intel Core iX couplés à un maximum de 16 Go de RAM. Côté stockage, Lenovo proposera des disques à plateau (2 To max) ou du SSD (512 Go max). Il faudra cependant se contenter d’un GPU intégré.

    Le prix sera fixé à 949 $ pour le modèle de base.

    January 31, 2017 - permalink - http://www.fredzone.org/lenovo-est-de-retour-avec-de-nouveaux-thinkpad-003
    hardware
  • Docker 1.13

    Sympa les petites nouveautés!

    docker system df
    docker system prune

    CLI restructured <3

    Improved CLI backwards compatibility <3

    January 30, 2017 - permalink - https://blog.docker.com/2017/01/whats-new-in-docker-1-13/
    docker
  • Note: memo cat eof

    cat <<'EOF' >> /tmp/bar
    foo
    EOF

    cat <> /tmp/bar
    $foo
    EOF

    January 30, 2017 - permalink - https://links.infomee.fr/shaare/u4Pauw
    cat
  • GitHub - Smashing/smashing: The exceptionally handsome dashboard framework in Ruby and Coffeescript.

    Dashing n'est plus maintenu, voici son fork, Smashing!

    January 25, 2017 - permalink - https://github.com/Smashing/smashing
    dashboard dashing
  • Releases · docker/compose 1.10

    Compose file version 2.1 and up

    Healthcheck configuration can now be done in the service definition using
    the healthcheck parameter
    Containers dependencies can now be set up to wait on positive healthchecks
    when declared using depends_on. See the documentation for the updated
    syntax.
    
    January 23, 2017 - permalink - https://github.com/docker/compose/releases
    docker
  • Is Ruby dead? Hell no! - Analyzing RubyGems stats for 2016 | Infinum

    ouf :D

    January 20, 2017 - permalink - https://infinum.co/the-capsized-eight/analyzing-rubygems-stats-v2016
    rails ruby
  • 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
▼ Load 50 more