Skip to content

Instantly share code, notes, and snippets.

View arnaudjolly's full-sized avatar
🇫🇷
Le code est un jeu !

Arnaud JOLLY arnaudjolly

🇫🇷
Le code est un jeu !
  • Paris
View GitHub Profile
@arnaudjolly
arnaudjolly / .gitconfig
Last active June 26, 2019 12:51
git aliases I frequently use
[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
@arnaudjolly
arnaudjolly / intellij_debug_watcher_export_json.java
Created February 28, 2018 16:53
Intellij debug watcher: export object to json
new ObjectMapper()
.setSerializationInclusion(JsonInclude.Include.NON_NULL)
.writerWithDefaultPrettyPrinter()
.writeValueAsString( myObject )
@arnaudjolly
arnaudjolly / .bash_aliases
Last active October 27, 2022 15:01
Dogr bash function and some shortcuts
# 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 / michou-rescue-mission.json
Last active November 9, 2018 09:55
Ptite démo d'un use case rencontré au taf (utilisant LearnGitBranchingJs.org)
{
"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
{"name":"vscode-profile","settings":"{\"settings\":\"{\\r\\n \\\"window.zoomLevel\\\": 0,\\r\\n \\\"[json]\\\": {\\r\\n \\\"editor.defaultFormatter\\\": \\\"vscode.json-language-features\\\"\\r\\n },\\r\\n \\\"[typescript]\\\": {\\r\\n \\\"editor.defaultFormatter\\\": \\\"vscode.typescript-language-features\\\"\\r\\n },\\r\\n \\\"editor.fontFamily\\\": \\\"'JetBrains Mono', Consolas, 'Courier New', monospace\\\",\\r\\n \\\"editor.fontLigatures\\\": true,\\r\\n \\\"editor.fontSize\\\": 12,\\r\\n \\\"editor.lineHeight\\\": 20,\\r\\n \\\"editor.formatOnPaste\\\": false,\\r\\n \\\"editor.formatOnSave\\\": false,\\r\\n \\\"editor.linkedEditing\\\": true,\\r\\n \\\"editor.minimap.enabled\\\": false,\\r\\n \\\"editor.occurrencesHighlight\\\": false,\\r\\n \\\"editor.renderWhitespace\\\": \\\"trailing\\\",\\r\\n \\\"editor.suggest.insertMode\\\": \\\"replace\\\",\\r\\n \\\"editor.acceptSuggestionOnCommitCharacter\\\": false,\\r\\n \\\"files.autoSave\\\": \\\"onFocusChange\\\",\\r\\n \\\"files