Skip to content

Instantly share code, notes, and snippets.

View florian-wagner's full-sized avatar

Florian Wagner florian-wagner

View GitHub Profile
@florian-wagner
florian-wagner / pre-push
Created October 5, 2015 14:21
Git-hook giving a warning when you try to push to the 'master' branch.
#!/bin/bash
# Save this file as gimli/.git/hooks/pre-push and make it executable.
protected_branch='master'
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
if [ $protected_branch = $current_branch ]
then
read -p "GIMLi encourages developers to push only to the 'dev' branch. You're about to push to 'master', is that what you intended? [y|n] " -n 1 -r < /dev/tty
echo
@florian-wagner
florian-wagner / site.cfg
Last active December 26, 2015 05:08
Numpy with OpenBLAS
[openblas]
libraries = openblas
library_dirs = ~/local/lib
include_dirs = ~/local/include