Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Sabat tsabat

View GitHub Profile
@tsabat
tsabat / bundler.sh
Created Apr 23, 2011
Bundler is my fiend
View bundler.sh
#So, we don't need RubyMine just to get rails server to recognize the required gems in a rails project
bundle install
@tsabat
tsabat / enhanced.gitignore
Created Apr 23, 2011
enhanced .gitignore
View enhanced.gitignore
.bundle
db/*.sqlite3*
log/*.log
*.log
/tmp/
doc/
*.swp
*~
.DS_Store
.idea/*
@tsabat
tsabat / virtualenv.sh
Created Sep 2, 2011
Virtual Environment Setup
View virtualenv.sh
virtualenv foo --no-site-packages
cd foo
bin/activate
git clone git@your_github_fi.com/your_repo.git
pip install ./anweb/ -i http://yourick:9003
View node_server.js
var http = require("http");
var redis = require("redis");
var url = require('url');
client = redis.createClient();
var requests = [];
var strings = [];
http.createServer(
function(request, response) {
@tsabat
tsabat / static_nginx.conf
Created Sep 10, 2011
static config for nginx
View static_nginx.conf
server {
listen 8000 default;
server_name localhost;
access_log /var/log/nginx/schemaspy.access.log;
location / {
root /var/www/schemaspy/;
index index.html index.htm;
autoindex on;
@tsabat
tsabat / nginx_config.sh
Created Sep 12, 2011
Reload nginx config files gracefully
View nginx_config.sh
kill -QUIT $( cat /usr/local/nginx/logs/nginx.pid )
@tsabat
tsabat / setup.sh
Created Oct 26, 2011
Python Project Setup
View setup.sh
AUTHOR='timothy sabat'
EMAIL='timothy.sabat@gmail.com'
mkdir $1
cd $1
mkdir bin $1 tests docs
touch $1/__init__.py
touch tests/__init__.py
View gist:1420883
default] [Thu, 01 Dec 2011 16:08:22 -0800] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
: stdout
[default] [Thu, 01 Dec 2011 16:08:22 -0800] FATAL: SyntaxError: compile error
/tmp/vagrant-chef-1/chef-solo-1/vagrant_main/recipes/default.rb:97: syntax error, unexpected tASSOC, expecting '}'
connection {:host => "localhost", :username => 'ro...
^
/tmp/vagrant-chef-1/chef-solo-1/vagrant_main/recipes/default.rb:97: syntax error, unexpected ',', expecting '}'
...nection {:host => "localhost", :username => 'root', :passwor...
^
/tmp/vagrant-chef-1/chef-solo-1/vagrant_main/recipes/default.rb:97: syntax error, unexpected ',', expecting '}'