Skip to content

Instantly share code, notes, and snippets.

View yoricksijsling's full-sized avatar

Yorick Sijsling yoricksijsling

  • Utrecht, The Netherlands
View GitHub Profile
@yoricksijsling
yoricksijsling / remove_obsolete_branches.sh
Created August 23, 2012 08:48
Remove obsolete branches
#!/bin/bash
# Remove all branches which are merged in to master
# Run this from within your repository, something like:
# cd /path/to/repo
# script/remove_obsolete_branches
#-----
BRANCH=${1:-'master'}
@yoricksijsling
yoricksijsling / Cleanup.sh
Created May 8, 2012 07:42
Ubuntu 11.10 orcaroeien.nl setup guide
# Als je geen clean install hebt kan het makkelijk zijn om eerst alles weg te gooien. Ik weet niet 100% zeker of dit echt genoeg is.
rvm requirements # apt-get uninstall alles wat achter apt-get install staat daar
rvm implode
apt-get uninstall libcurl4-gnutls-dev nodejs curl git-core ruby
apt-get clean
# Check ~/.bash_profile, ~/.bashrc en ~/.profile of er nog verwijzingen naar rvm staan, die regels kunnen allemaal weg
# Verwijder de volgende bestanden en mappen:
# /etc/rvmrc
# /etc/profile.d/rvm
# How does one deep clone a module including all its classes?
module Foo
class Bar
def self.baz
'foo'
end
end
end