4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
newest first
  • Note: git memo

    Voir fichier à un commit :
    git show HASH:path/to/file

    Hash du commit initial :
    git rev-list --max-parents=0 HEAD

    Voir liste fichiers modifiés entre 2 commits :
    git diff --name-only SHA1 SHA2
    git log --name-status --oneline HEAD~6..HEAD
    git log --name-status --oneline HEAD~6..HEAD |grep -vP '^\S[^\s]'|sort|uniq

    Voir modif sur un fichier entre 2 commits :
    git diff SHA1 SHA2 main.c

    Trouver l'ancetre commun le plus vieux
    git config --global alias.oldest-ancestor '!bash -c '\''diff -u <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | sed -ne "s/^ //p" | head -1'\'' -'
    git oldest-ancestor

    git rebase -i [HASH parent]

    man -7 gitrevisions

    HEAD
    HEAD~1 HEAD^ HEAD^1
    HEAD~2 HEAD^2 HEAD~1^
    HEAD~3

    10:10 V /tmp/git_test [master L|V]
    $ git lola
    * 52f73ef (HEAD -> refs/heads/master) Merge branch 'toto'
    |\
    | * 2f39200 (refs/heads/toto) commit on toto
    * | d581320 Commit on master
    |/
    * eae368a first commit
    10:10 V /tmp/git_test [master L|V]
    $ git log --name-status --oneline eae368a..52f73ef
    52f73ef Merge branch 'toto'
    d581320 Commit on master
    A tata
    2f39200 commit on toto
    A b

    November 28, 2016 - permalink - https://links.infomee.fr/shaare/wo2tCA
    git memo
  • Identifont - Fonts by Similarity
    November 27, 2016 - permalink - http://www.identifont.com/similar.html
    font
  • J'ai sauté une tranche

    je le garde sous le coude pour les personnes qui ne comprennent pas bien, article très bien fait

    November 25, 2016 - permalink - http://images.math.cnrs.fr/J-ai-saute-une-tranche.html?lang=fr
    finance impot
  • git: revision magic like a boss (Example) || Coderwall

    HEAD^ is the revision before the current
    HEAD~2 is the same as HEAD^^ and the revision before HEAD^

    November 24, 2016 - permalink - https://coderwall.com/p/wjlqvw/git-revision-magic-like-a-boss
    git
  • shenker-tue.pdf

    Don Norman

    What Was His Point?
    •
    The ability to
    master complexity
    is not the same as
    the ability to
    extract simplicity
    •
    When first getting systems to work
    ...
    .
    -
    Focus on mastering complexity
    •
    When making system easy to use and understand
    -
    Focus on extracting simplicity
    •
    You will never succeed in extracting simplicity
    -
    If don’t recognize it is different from mastering complexity

    November 24, 2016 - permalink - http://opennetsummit.org/archives/oct11/shenker-tue.pdf
    complexity engineering sdn simplicity
  • Note: List all branch (sort by date)

    git branch -a --sort=-committerdate

    November 24, 2016 - permalink - https://links.infomee.fr/shaare/zqUo2Q
    branch git
  • How to delete a Git branch both locally and remotely? - Stack Overflow

    git push origin --delete

    November 24, 2016 - permalink - http://stackoverflow.com/questions/2003505/how-to-delete-a-git-branch-both-locally-and-remotely
    branch delete git remote
  • Edit a file in-place in vim - Stack Overflow

    Comment perdre 30 min

    :set backupcopy=yes

    When you want to modify a file, you have two options, each with its benefits and drawbacks.

    You can overwrite the file in place. This does not use any extra space, and conserves the hard links, permissions and any other attribute beyond the content of the existing file. The major drawback of doing this is that if anything happens while the file is being written (the application crashes, or the power goes out), you end up with a partially written file.
    You can write the new version of the file to a new file with a different name, then move it into place. This uses more space and breaks hard links, and if you have write permissions on a file but not on the directory it contains, you can't do it at all. On the flip side, the old version of the file is atomically replaced by the new version, so at every point in time the file name points to a valid, complete version of the file.
    

    http://vimdoc.sourceforge.net/htmldoc/options.html#%27backup%27

    November 23, 2016 - permalink - http://stackoverflow.com/questions/11043534/edit-a-file-in-place-in-vim
    docker file mount vim
  • Sort lines | Vim Tips Wiki | Fandom powered by Wikia

    vim <3

    :sort u

    November 21, 2016 - permalink - http://vim.wikia.com/wiki/Sort_lines
    sort vim
  • A Rubyist's Guide to Big-O Notation

    Big-O illustré en ruby

    November 17, 2016 - permalink - http://blog.honeybadger.io/a-rubyist-s-guide-to-big-o-notation/
    algo bigo dev ruby
  • How to convert 2 horizontal panes to vertical panes in tmux? - Super User

    C-a space
    to cycle trough available layouts

    November 17, 2016 - permalink - http://superuser.com/questions/493048/how-to-convert-2-horizontal-panes-to-vertical-panes-in-tmux
    tmux
  • Ce que m'a apporté mon défi de lire 52 livres en 52 semaines, le bilan 7 ans après

    Je l'aime bien cet olivier, j'ai découvert son blog au tout début, j'étais en BTS donc 2009, j'ai commencé avec le bouquin la semaine de 4h et j'ai en lu une dizaine suggéré. J'aime bien alterner les lecture fiction et non fiction, ça change un peu et on apprends des choses même si c'est souvent du bon sens, on découvre d'autres manières de voir les choses

    November 16, 2016 - permalink - http://www.des-livres-pour-changer-de-vie.fr/ce-que-ma-apporte-mon-defi-de-lire-52-livres-en-52-semaines-le-bilan-7-ans-apres/
    book livre
  • [Linux] Petite astuce pour une tâche de fond - Liens en vrac de sebsauvage

    nice! (ahah)

    November 16, 2016 - permalink - http://sebsauvage.net/links/?PfISxw
    background linux nice
  • Fugitive.vim - working with the git index

    je découvre ce plugin vim qui a l'air juste magique pour interagir avec git

    November 16, 2016 - permalink - http://vimcasts.org/episodes/fugitive-vim-working-with-the-git-index/
    git plugin vim
  • Bugsnag Blog - Benefits of using tmux - lessons from streamlining a development environment
    November 15, 2016 - permalink - https://blog.bugsnag.com/benefits-of-using-tmux/
    tmux
  • GitHub - dcos/metronome: Apache Mesos framework for scheduled jobs
    November 15, 2016 - permalink - https://github.com/dcos/metronome
    cron scheduler
  • Docker Build Container Pattern - Slashdeploy Blog

    docker run --rm -it -u $(id -u) -v "${PWD}:/data" -w /data ruby:2.3 \
    bundle package --all

    November 15, 2016 - permalink - http://blog.slashdeploy.com/2016/11/07/docker-build-container-pattern/
    build docker
  • GitHub - keen/dashboards: Responsive dashboard templates for Bootstrap
    November 15, 2016 - permalink - https://github.com/keen/dashboards
    dashboard
  • Amazon EC2 Instance Comparison

    Une vue pratique pour comparer les instances ec2

    November 11, 2016 - permalink - http://www.ec2instances.info/
    aws compare ec2
  • Using plan branches - Atlassian Documentation

    il faut que je me fasse au workflow "Branch updater"

    November 10, 2016 - permalink - https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html
    atlassian bamboo git jira stash workflow
  • git - How to revert a merge commit that's already pushed to remote branch? - Stack Overflow

    The -m option specifies the parent number. This is because a merge commit has more than one parent, and Git does not know automatically which parent was the mainline, and which parent was the branch you want to un-merge.

    When you view a merge commit in the output of git log, you will see its parents listed on the line that begins with Merge:

    commit 8f937c683929b08379097828c8a04350b9b8e183
    Merge: 8989ee0 7c6b236
    Author: Ben James ben@example.com
    Date: Wed Aug 17 22:49:41 2011 +0100

    Merge branch 'gh-pages'

    Conflicts:
    README

    In this situation, git revert 8f937c6 -m 1 will get you the tree as it was in 8989ee0, and git revert -m 2 will reinstate the tree as it was in 7c6b236.

    November 10, 2016 - permalink - http://stackoverflow.com/questions/7099833/how-to-revert-a-merge-commit-thats-already-pushed-to-remote-branch
    git revert
  • open-guides/og-aws: 📙 Amazon Web Services — a practical guide

    aws community guide

    November 8, 2016 - permalink - https://github.com/open-guides/og-aws
    aws doc guide price traffic
  • General Options for All Environments - AWS Elastic Beanstalk

    THE page you have to bookmark when you work with beanstalk and saved config

    November 8, 2016 - permalink - http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html
    aws beanstalk conf
  • Using SS tool for network troubleshooting » IT Tips and Tricks

    Keepalive Notes

    A keepalive packet generally has a TCP ACK configured with a sequence number set to one less than the current number used on the connection. Any machine receiving a nudge from such a packet will simply respond with the correct sequence number and, Frankenstein jokes aside, announce that it is indeed alive.

    These types of packets are sometimes empty and generally have three associated parameters. The retry parameter will declare how many times to send a packet before coming to the conclusion that the other end of the connection has given up the ghost. The time setting is configured as the frequency of the checks, and finally the interval dictates the length of time between two sent packets if no response is received.

    Inside the kernel, you can alter these settings by editing these values in the eye-watering pseudo-filesystem known and loved as /proc. One file, in this case, is /proc/sys/net/ipv4/tcp_keepalive_time, and you can edit it

    November 7, 2016 - permalink - https://tipstricks.itmatrix.eu/using-ss-tool-for-network-troubleshooting/
    keepalive linux network
  • Configuring Websockets behind an AWS ELB | jverkamp.com | John-Paul Verkamp
    November 7, 2016 - permalink - https://blog.jverkamp.com/2015/07/20/configuring-websockets-behind-an-aws-elb/
    aws elb ws
  • 5 systemd Tools You Should Start Using Now | Linux.com | The source for Linux information

    man systemd.index

    November 6, 2016 - permalink - https://www.linux.com/learn/5-systemd-tools-you-should-start-using-now
    systemd
  • Articles et didacticiels

    à creuser..

    cloudformation permet de créer des stacks complètes à partir d'un fichier description (yaml ou json)

    Donc en partant d'un environnement aws completement vierge, en théorie un seul fichier et une seule commande permet de créer une stack.

    On pourrait faire la meme chose avec un script et l'appels aux api pour créer les éléments un par un. L'avantage de cloudformation, c'est la gestion des priorités de création, des dépendances... On peut déclarer dans l'odre qu'on veut dans le Yaml, tout se fera "automagiquement"

    Autre avantage, l'idempotence, on peut appliquer de nouveau le template et si rien n'a été changé, rien ne changera.

    Au contraire si complexifie la stack, elle se mettra à jour.

    Un peu comme Puppet vs Ansible

    November 4, 2016 - permalink - https://aws.amazon.com/fr/cloudformation/aws-cloudformation-articles-and-tutorials/
    cloudformation
  • Note: How to test ldap persistent search in cmdline

    You need ldapsearch from mozldap-tools (the classic ldapsearch does not have such options)

    How I did :
    docker run -it centos bash
    yum install wget svrcore-devel.x86_64
    wget ftp://195.220.108.108/linux/mageia/distrib/5/x86_64/media/core/release/mozldap-6.0.7-8.mga5.x86_64.rpm
    wget ftp://bo.mirror.garr.it/1/mageia/distrib/5/x86_64/media/core/release/mozldap-tools-6.0.7-8.mga5.x86_64.rpm
    rpm -ivh mozldap-6.0.7-8.mga5.x86_64.rpm
    rpm -ivh mozldap-tools-6.0.7-8.mga5.x86_64.rpm

    /usr/lib64/mozldap/ldapsearch -r -C PS:any:1:1 -D "cn=Admin Account" -w "secret" -p 9389 -h ldap.company.org -b dc=sso,dc=company,dc=org -s sub "(mail=toto*)"

    Once the connection is established, you will receive notification on this one when a change is done

    November 4, 2016 - permalink - https://links.infomee.fr/shaare/xW3mvQ
    ldap persistentsearch
  • 8.5. Using Persistent Search

    Le genre de truc qui repose sur une connexion qui doit restée up alors que idle..

    November 4, 2016 - permalink - https://access.redhat.com/documentation/en-US/Red_Hat_Directory_Server/8.2/html/Administration_Guide/persistent-search.html
    ldap persistent search
  • Leveraging Multiple IP Addresses for Virtual IP Address Fail-over in 6 Simple Steps : Articles & Tutorials : Amazon Web Services

    un peu homemade, mais why not

    November 3, 2016 - permalink - https://aws.amazon.com/articles/2127188135977316
    aws heatbeat
  • jq
    November 2, 2016 - permalink - https://stedolan.github.io/jq/
    cmdline json parse
  • Dockerfile reference - Docker

    Note: Environment persistence can cause unexpected side effects. For example, setting ENV DEBIAN_FRONTEND noninteractive may confuse apt-get users on a Debian-based image. To set a value for a single command, use RUN = .

    The environment variables set using ENV will persist when a container is run from the resulting image. You can view the values using docker inspect, and change them using docker run --env =.

    November 2, 2016 - permalink - https://docs.docker.com/engine/reference/builder/#/env
    bestpractice docker
  • Is there an easy way to "restart" a tmux pane? - Unix & Linux Stack Exchange

    So +: and then enter respawn-pane -k and press Enter

    respawn-pane -k

    better than kill-pane

    October 31, 2016 - permalink - http://unix.stackexchange.com/questions/88392/is-there-an-easy-way-to-restart-a-tmux-pane
    pane tmux
  • ANSI vs ISO - Deskthority wiki

    TIL pourquoi certains claviers ont une touche Enter différente :D

    October 31, 2016 - permalink - https://deskthority.net/wiki/ANSI_vs_ISO
    clavier hardware keyboard
  • SAML Decoder - Online SAML Request-Response Decode Tool - Base64 - Inflate
    October 31, 2016 - permalink - https://www.samltool.com/decode.php
    saml
  • Understanding the iPlanetDirectoryPro Cookie | Easy Identity
    October 31, 2016 - permalink - https://idmdude.com/2014/02/26/understanding-the-iplanetdirectorypro-cookie/
    openam saml
  • maven - How to build a docker container for a java app - Stack Overflow

    La deuxieme approche me semble mieux.. Deux étapes pour build seulement :

    git clone
    docker build

    Au lieu de :

    git clone
    mvn clean install
    docker build

    October 31, 2016 - permalink - http://stackoverflow.com/questions/31696439/how-to-build-a-docker-container-for-a-java-app
    ci docker
  • Pandoc - About pandoc

    Est ce que les projets de generateur de blog static utilisent Pandoc?
    J'ai besoin d'une solution kiss pour bloguer et ça pourrait peut etre faire l'affaire finalement : des fichiers markdown dans un repo
    Un hook post receive qui fait la conversion en html

    October 30, 2016 - permalink - http://pandoc.org/index.html
    blog pandoc
  • DTrace for Linux 2016
    October 30, 2016 - permalink - http://www.brendangregg.com/blog/2016-10-27/dtrace-for-linux-2016.html
    debug dtrace strace
  • What comes after ‘iptables’? It’s successor, of course: `nftables` – Red Hat Developer Blog

    intéressant

    October 30, 2016 - permalink - http://developers.redhat.com/blog/2016/10/28/what-comes-after-iptables-its-successor-of-course-nftables/
    iptables nftables
  • Really Responsive Tables using CSS3 Flexbox - Hashnode
    October 30, 2016 - permalink - https://hashnode.com/post/really-responsive-tables-using-css3-flexbox-cijzbxd8n00pwvm53sl4l42cx
    css flex table
  • contrast - How to decide font color in white or black depending on background color? - Stack Overflow

    if (red0.299 + green0.587 + blue*0.114) > 186 use #000000 else use #ffffff

    October 28, 2016 - permalink - http://stackoverflow.com/questions/3942878/how-to-decide-font-color-in-white-or-black-depending-on-background-color
    color contrast css
  • CSS flex-basis property

    Pas mal du tout ce qu'on peut faire avec flex, c'est bien pratique que les float, inline-block et compagnie !

    October 28, 2016 - permalink - http://www.w3schools.com/cssref/css3_pr_flex-basis.asp
    css flex
  • Secure cookie with HttpOnly and Secure flag in Apache

    Pour éditer les header avec apache

    October 27, 2016 - permalink - https://geekflare.com/httponly-secure-cookie-apache/
    apache cookie
  • Steve Lorek—Ruby and Rails Developer, Southampton, UK—How to Shrink a Git Repository

    don't fucking commit useless binary files !!

    October 26, 2016 - permalink - http://stevelorek.com/how-to-shrink-a-git-repository.html
    git
  • Settings - Firefox Developer Tools | MDN

    Pour que la console network ne clear pas toute seule

    you can use the "Enable persistent logs" setting

    October 25, 2016 - permalink - https://developer.mozilla.org/en-US/docs/Tools/Settings
    console dev firefox network
  • Jelastic Cloud Union Catalog: Choose Your Service Provider

    Une offre de "cloud"

    October 25, 2016 - permalink - https://jelastic.cloud/
    cloud
  • Note: HSTS, Cookie secure

    Un peu redondant, non ?

    Si un site fait bien son job en définissant les cookie en secure, ils ne partiront jamais en http

    Le HSTS c'est un peu fait pour ça non ? Eviter que des infos partent en http au lieu de https ? Après il n'y a pas que les cookie, mais bon, c'est là que se trouve le + important en général (session id)

    Surtout que le site en face renverra une redirect sur https

    October 24, 2016 - permalink - https://links.infomee.fr/shaare/wa-J1g
    cookie https secure
  • How do HttpOnly cookies work with AJAX requests? - Stack Overflow

    En fait, quand un cookie est set avec httpOnly, le javascript ne peut plus y accéder par document.cookie

    En revanche, quand une requete est faite avec XMLHttpRequest, les cookie sont toujours bien envoyés même si ils sont en httponly

    October 24, 2016 - permalink - http://stackoverflow.com/questions/27972/how-do-httponly-cookies-work-with-ajax-requests
    cookie httponly
  • jsp - Accessing a jstl variable inside a scriptlet - Stack Overflow

    Aujourd'hui j'ai du debug un bout d'app Java bien ancienne. Toujours du pur bonheur, ça me rappelle le Master :)

    October 21, 2016 - permalink - http://stackoverflow.com/questions/19807156/accessing-a-jstl-variable-inside-a-scriptlet
    hate java love
▼ Load 50 more