Skip to content

Instantly share code, notes, and snippets.

Avatar
🇫🇷
Le code est un jeu !

Arnaud JOLLY arnaudjolly

🇫🇷
Le code est un jeu !
  • Soat
  • Paris
View GitHub Profile
@arnaudjolly
arnaudjolly / michou-rescue-mission.json
Last active Nov 9, 2018
Ptite démo d'un use case rencontré au taf (utilisant LearnGitBranchingJs.org)
View michou-rescue-mission.json
{
"goalTreeString": "%7B%22branches%22%3A%7B%22master%22%3A%7B%22target%22%3A%22C1%22%2C%22id%22%3A%22master%22%2C%22remoteTrackingBranchID%22%3A%22o/master%22%7D%2C%22o/master%22%3A%7B%22target%22%3A%22C1%22%2C%22id%22%3A%22o/master%22%2C%22remoteTrackingBranchID%22%3Anull%7D%2C%22feature%22%3A%7B%22target%22%3A%22C5%27%22%2C%22id%22%3A%22feature%22%2C%22remoteTrackingBranchID%22%3A%22o/feature%22%7D%2C%22o/feature%22%3A%7B%22target%22%3A%22C6%22%2C%22id%22%3A%22o/feature%22%2C%22remoteTrackingBranchID%22%3Anull%7D%2C%22fixForMR%22%3A%7B%22target%22%3A%22C6%22%2C%22id%22%3A%22fixForMR%22%2C%22remoteTrackingBranchID%22%3A%22o/feature%22%7D%7D%2C%22commits%22%3A%7B%22C0%22%3A%7B%22parents%22%3A%5B%5D%2C%22id%22%3A%22C0%22%2C%22rootCommit%22%3Atrue%7D%2C%22C1%22%3A%7B%22parents%22%3A%5B%22C0%22%5D%2C%22id%22%3A%22C1%22%7D%2C%22C2%22%3A%7B%22parents%22%3A%5B%22C1%22%5D%2C%22id%22%3A%22C2%22%7D%2C%22C3%22%3A%7B%22parents%22%3A%5B%22C2%22%5D%2C%22id%22%3A%22C3%22%7D%2C%22C4%22%3A%7B%22parents%22%3A%5B%22C3%22%5D
@arnaudjolly
arnaudjolly / .bash_aliases
Last active Apr 22, 2021
Dogr bash function and some shortcuts
View .bash_aliases
# init colors to be used in other commands if possible
function _initColors() {
if test -t 1; then
local nbColors=$(tput colors)
if test -n "$nbColors" && test $nbColors -ge 8; then
green=$(tput setaf 2)
red=$(tput setaf 1)
cyan=$(tput setaf 6)
normal=$(tput sgr0)
fi
@arnaudjolly
arnaudjolly / intellij_debug_watcher_export_json.java
Created Feb 28, 2018
Intellij debug watcher: export object to json
View intellij_debug_watcher_export_json.java
new ObjectMapper()
.setSerializationInclusion(JsonInclude.Include.NON_NULL)
.writerWithDefaultPrettyPrinter()
.writeValueAsString( myObject )
@arnaudjolly
arnaudjolly / .gitconfig
Last active Jun 26, 2019
git aliases I frequently use
View .gitconfig
[alias]
br = branch
ci = commit
cl = clone
co = checkout
cp = cherry-pick
diff = diff --word-diff
dc = diff --cached
gr = grep -Ii
st = status -sb