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 / loc.txt
Last active August 29, 2018 16:56
Lines of Code in a directory
brew install cloc
cloc --vcs git --exclude-dir=coverage,doc,log,public,regression_tests,vendor
cloc --vcs git --exclude-dir=coverage,doc,log,public,regression_tests,vendor,spec
@dlbock
dlbock / prom-client-ruby-rubocop.patch
Created March 2, 2018 00:20
Upgrades rubocop, inherit generated .rubocop_todo.yml` file in `.rubocop.yml`
diff --git a/.gitignore b/.gitignore
index b280d1a..cd166f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
coverage/
Gemfile.lock
pkg/
+.bundle
+vendor/ruby
@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
@dlbock
dlbock / keybase.md
Created October 9, 2017 15:01
Keybase gist

Keybase proof

I hereby claim:

  • I am dlbock on github.
  • I am dlbock (https://keybase.io/dlbock) on keybase.
  • I have a public key ASD58nwNarGk8OTf9-MMgjIqpOvY0aqPpELOOKbFijp9EQo

To claim this, I am signing this object: