Skip to content

Instantly share code, notes, and snippets.

View kirschem's full-sized avatar

Marcel Kirsche kirschem

  • Freiburg, Germany
View GitHub Profile
@kirschem
kirschem / diff-side-by-side
Created March 10, 2022 12:25
Diff two files side by side using full terminal width
# Taken from https://stackoverflow.com/questions/17195308/unix-diff-side-to-side-results#comment104364677_49630142
diff -W $COLUMNS --suppress-common-lines -y file1 file2
@kirschem
kirschem / macos-mouse-speed
Last active October 17, 2022 07:12
Increase mouse speed beyond max in UI
defaults write -g com.apple.mouse.scaling 6.0
# Logout, Login after applying
@kirschem
kirschem / macos-dock-delay
Last active February 25, 2022 09:50
MacOS remove dock show/hide delay
# Taken from https://howchoo.com/mac/make-the-dock-autohide-and-show-instantly-in-os-x
# Remove delay
defaults write com.apple.Dock autohide-delay -float 0.0001; killall Dock
# Restore default
defaults delete com.apple.Dock autohide-delay; killall Dock
@kirschem
kirschem / git checkout all remote branches
Created November 30, 2020 10:36
Checks out all remote branches in a github repository
git fetch --all && git branch -r | tail -n +2 | sed 's#origin/##' | xargs -n1 git checkout