Skip to content

Instantly share code, notes, and snippets.

@hashrocketeer
Created October 2, 2012 15:23
Show Gist options
  • Save hashrocketeer/3820080 to your computer and use it in GitHub Desktop.
Save hashrocketeer/3820080 to your computer and use it in GitHub Desktop.
Free up port 3000
#!/usr/bin/env ruby
pid = `lsof -t -i tcp:3000`.to_i
Process.kill 'INT', pid if pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment