Skip to content

Instantly share code, notes, and snippets.

View tsabat's full-sized avatar

Tim Sabat tsabat

View GitHub Profile
@tsabat
tsabat / bundler.sh
Created April 23, 2011 15:17
Bundler is my fiend
#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 April 23, 2011 15:32
enhanced .gitignore
.bundle
db/*.sqlite3*
log/*.log
*.log
/tmp/
doc/
*.swp
*~
.DS_Store
.idea/*
@tsabat
tsabat / selectAll.sh
Created April 26, 2011 15:42
Select all in vim
ggVG
@tsabat
tsabat / virtualenv.sh
Created September 2, 2011 15:36
Virtual Environment Setup
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
@tsabat
tsabat / node_server.js
Created September 9, 2011 23:04
node server
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 September 10, 2011 00:07
static config for nginx
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 September 12, 2011 17:36
Reload nginx config files gracefully
kill -QUIT $( cat /usr/local/nginx/logs/nginx.pid )
@tsabat
tsabat / setup.sh
Created October 26, 2011 18:52
Python Project Setup
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
@tsabat
tsabat / gist:1420883
Created December 2, 2011 00:10
Error output
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 '}'