4340 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 49 / 217
Newer►
  • thumbnail
    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 at 10:38:03 AM GMT+1 - permalink - archive.org - 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 at 4:55:56 PM GMT+1 - permalink - archive.org - http://linuxfr.org/news/weboob-s-offre-une-nouvelle-version-pour-feter-la-nouvelle-annee
    bank banque compte weboob
  • markadams/chromium-xvfb - Docker Hub
    January 11, 2017 at 4:56:51 PM GMT+1 - permalink - archive.org - https://hub.docker.com/r/markadams/chromium-xvfb/
    selenium
  • Headless Chromium

    interesting to run selenium

    January 11, 2017 at 4:06:09 PM GMT+1 - permalink - archive.org - https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
    chrome headless selenium
  • thumbnail
    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 at 11:29:12 AM GMT+1 - permalink - archive.org - https://github.com/gnif/mod_rpaf/issues/27
    apache rpaf
  • a little madness » Blog Archive » Running Selenium Headless
    January 10, 2017 at 3:15:15 PM GMT+1 - permalink - archive.org - http://www.alittlemadness.com/2008/03/05/running-selenium-headless/
    headless qa selenium
  • thumbnail
    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 at 10:46:12 AM GMT+1 - permalink - archive.org - http://stackoverflow.com/questions/15367674/bash-one-liner-to-exit-with-the-opposite-status-of-a-grep-command
    code error exit grep status
  • thumbnail
    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 at 4:15:32 PM GMT+1 - permalink - archive.org - 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 at 4:12:34 PM GMT+1 - permalink - archive.org - http://www.keyboardco.com/keyboard/french-filco-majestouch-2-tenkeyless-nkr-tactile-action-keyboard.asp
    clavier keyboard
  • The Twelve-Factor App
    December 30, 2016 at 1:10:48 PM GMT+1 * - permalink - archive.org - https://12factor.net/
    best ci docker env factor plan practice unix variable
  • Git Blame: Fun with --first-parent
    December 29, 2016 at 1:37:32 PM GMT+1 - permalink - archive.org - https://git-blame.blogspot.ch/2012/03/fun-with-first-parent.html
    first git log parent
  • thumbnail
    File format | Vim Tips Wiki | Fandom powered by Wikia
    December 29, 2016 at 12:10:32 PM GMT+1 - permalink - archive.org - http://vim.wikia.com/wiki/File_format
    convert CR CRLF file format git LF vim
  • thumbnail
    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 at 2:13:27 PM GMT+1 - permalink - archive.org - 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 at 12:21:04 PM GMT+1 - permalink - archive.org - https://links.infomee.fr/?x9_68Q
    ch cron currency devise fr
  • thumbnail
    ofelia/README.md at master · mcuadros/ofelia · GitHub
    December 26, 2016 at 12:42:11 PM GMT+1 - permalink - archive.org - https://github.com/mcuadros/ofelia/blob/master/README.md
    cron docker
  • thumbnail
    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 at 11:57:52 AM GMT+1 - permalink - archive.org - https://www.digitalocean.com/community/tutorials/how-to-setup-additional-entropy-for-cloud-servers-using-haveged
    entropy random urandom
  • thumbnail
    Javascript only - sort a bunch of DIVs - Stack Overflow
    December 23, 2016 at 11:15:40 AM GMT+1 - permalink - archive.org - 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 at 11:23:06 AM GMT+1 - permalink - archive.org - 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 at 11:22:40 AM GMT+1 - permalink - archive.org - https://www.atlassian.com/git/articles/git-team-workflows-merge-or-rebase/
    git workflow
  • Läckerli Huus
    December 21, 2016 at 12:09:56 PM GMT+1 - permalink - archive.org - http://www.laeckerli-huus.ch/
    gateau miam suisse
Links per page: 20 50 100
◄Older
page 49 / 217
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation