Skip to content

Instantly share code, notes, and snippets.

View brancz's full-sized avatar
❄️
Something something Polar Signals

Frederic Branczyk brancz

❄️
Something something Polar Signals
View GitHub Profile
@brancz
brancz / gist:9995624
Created April 5, 2014 18:04
command to ssh into vagrant machine and tunnel port 1080 for mailcatcher
ssh -p 2222 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -o IdentitiesOnly=yes -i ~/.vagrant.d/insecure_private_key [email protected] -L 1080:127.0.0.1:1080
@brancz
brancz / gist:9629955
Created March 18, 2014 21:22
I recently wanted to check my config in all my git repositories. Since I keep them all in ~/git I could easily use the following few lines of shell.
#!/bin/sh
CWD=`pwd`
for i in `find . -type d -maxdepth 1`; do
cd $i
git config user.user
git config user.email
cd $CWD
done
@brancz
brancz / gist:9209241
Last active August 29, 2015 13:56
copy changeset since given git commit without java class files
#!/bin/sh
git --no-pager diff --name-only $1 | grep -v class | xargs -i cp --parents -p "{}" $2