Skip to content

Instantly share code, notes, and snippets.

@dlbock
dlbock / delete-git-recursively.sh
Created December 14, 2018 14:48 — forked from facelordgists/delete-git-recursively.sh
Recursively remove .git folders
( find . -type d -name ".git" && find . -name ".gitignore" && find . -name ".gitmodules" ) | xargs rm -rf
@dlbock
dlbock / uninstall_gems.sh
Last active December 30, 2017 16:47 — forked from IanVaughan/uninstall_gems.sh
Uninstall all rbenv gems
#!/usr/bin/env bash
#
# Originally from https://gist.github.com/IanVaughan/2902499
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list