This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How does one deep clone a module including all its classes? | |
module Foo | |
class Bar | |
def self.baz | |
'foo' | |
end | |
end | |
end |