wow une cli pour editer les dashboards grafana.. ça peut servir par exemple pour dupliquer des variables de template d'un dashboard à X autres
-
https://github.com/utkarshcmu/wizzy#local-commandsVoir 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
-
https://links.infomee.fr/?wo2tCAje le garde sous le coude pour les personnes qui ne comprennent pas bien, article très bien fait
-
http://images.math.cnrs.fr/J-ai-saute-une-tranche.html?lang=frHEAD^ is the revision before the current
HEAD~2 is the same as HEAD^^ and the revision before HEAD^
-
https://coderwall.com/p/wjlqvw/git-revision-magic-like-a-bossDon Norman
If don’t recognize it is different from mastering complexity
-
http://opennetsummit.org/archives/oct11/shenker-tue.pdfgit branch -a --sort=-committerdate
-
https://links.infomee.fr/?zqUo2QComment 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
-
http://stackoverflow.com/questions/11043534/edit-a-file-in-place-in-vimJe 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
-
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/je découvre ce plugin vim qui a l'air juste magique pour interagir avec git
-
http://vimcasts.org/episodes/fugitive-vim-working-with-the-git-index/