Skip to content

Instantly share code, notes, and snippets.

View toashd's full-sized avatar
🧃

Tobias Schmid toashd

🧃
  • Munich · Berlin
View GitHub Profile
@toashd
toashd / git_loc
Last active December 30, 2015 14:09
Git lines of code
git ls-files | xargs cat | wc -l
@toashd
toashd / gist:5728890
Created June 7, 2013 12:27
"A server is already running" kill pid file
$ lsof -wni tcp:3000
$ kill -9 PID
@toashd
toashd / remote_debug.rb
Created March 27, 2013 12:35
Enable remote debugging of rails apps running on POW
POW_ENABLED = false
if POW_ENABLED && Rails.env.development? && !$rails_rake_task
Debugger.settings[:autoeval] = true
Debugger.settings[:autolist] = 1
Debugger.settings[:reload_source_on_change] = true
Debugger.start_remote
end