Skip to content

Instantly share code, notes, and snippets.

@bdtomlin
bdtomlin / nginx ruby script
Created July 5, 2010 18:33
nginx ruby script
#!/usr/bin/env ruby
USAGE = %{
Usage:
Put this script somewhere in your path, I use ~/bin
chmod +x to make it executable.
nginx start (starts nginx)
nginx stop (stops nginx)
nginx restart (calls stop and then start)
@bdtomlin
bdtomlin / nginx.conf
Created May 28, 2010 04:43
development nginx.conf
#user nobody;
worker_processes 2;
#pid logs/nginx.pid;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
events {
worker_connections 1024;
@bdtomlin
bdtomlin / gitingore
Created May 10, 2010 00:14
.gitignore
.bundle
db/*.sqlite3
log/*.log
tmp/
.sass-cache/
config/database.yml
*.DS_Store
*.swp
*.swo