Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am hugueschabot on github.
  • I am hugueschabot (https://keybase.io/hugueschabot) on keybase.
  • I have a public key whose fingerprint is A51F DE1F 4820 3F4D D536 1EB3 8228 6CE5 5392 CE58

To claim this, I am signing this object:

@hugueschabot
hugueschabot / git-aliases.md
Created February 10, 2017 13:39
Personal Git Alias Setup

My aliases

[alias]
	co = checkout
	up = !git pull --rebase --prune $@ && git submodule update --init --recursive
	ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
	ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
	fl = log -u
	bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"

bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"

@hugueschabot
hugueschabot / atom-init-cucumber-auto-align-on-save.coffee
Created November 7, 2018 14:26
Atom init script to automatically align table cells on Gherkin files before saving
editorWillSaveHandler = null
atom.workspace.observeActiveTextEditor (editor) ->
if (editorWillSaveHandler)
editorWillSaveHandler.dispose()
editorWillSaveHandler = null
if (editor)
if editor.getGrammar().name == "Gherkin"
editorWillSaveHandler = editor.getBuffer().onWillSave (event) ->