Skip to content

Instantly share code, notes, and snippets.

View muminoff's full-sized avatar
🏠
Working from home

Sardor Muminov muminoff

🏠
Working from home
  • Electronic Arts
  • Seoul, Korea
View GitHub Profile

Vim compile with Python and Ruby support

Ubuntu 12.04.2 LTS x64

Get dependencies

sudo apt-get install wget curl git subversion python-setuptools \
python-dev libncurses5-dev ruby ruby-dev rake

Browse current directory

$ du -h --max-depth=1
1.6M    ./src
72K     ./bin
520K    ./web
125M    ./vendor
4.1M    ./app
131M    .
"""
Backbone.js handler and mongodb based handler for Tornado.
`BackboneHandler` handles the sync protocol for Backbone.js. Inherit
from the class and implement the model methods:
* create_model
* update_model
* get_model
* delete_model
* get_collection

Build your own private, encrypted, open-source Dropbox-esque sync folder

Prerequisites:

  • One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
  • A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.

Software components used:

  • Unison for file synchronization
  • EncFS for folder encryption
<div class="row-fluid"> <div class="span12"> Fluid 12 <div class="row-fluid"> <div class="span6"> Fluid 6 <div class="row-fluid"> <div class="span6">Fluid 6</div> <div class="span6">Fluid 6</div> </div> </div> <div class="span6">Fluid 6</div> </div> </div></div>
Coding:
http://jobs.readwriteweb.com/
http://noodleyard.com/
http://angel.co/jobs
http://startuply.com/
http://jobs.37signals.com/
http://www.dice.com/
http://jobs.github.com/
http://www.craigslist.org
http://news.ycombinator.com/jobs
from fabric.api import *
from fabric.colors import *
import os, socket
env['prod'] = False
env['master'] = False
service = 'ndc13'
service_id = 9
fabhome = '/home/svc/%s' % service
hostname = socket.gethostname()

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
https://www.digitalocean.com/community/articles/how-to-install-and-use-postgresql-on-a-centos-vps
https://www.digitalocean.com/community/articles/how-to-install-and-configure-django-with-postgres-nginx-and-gunicorn
http://scratching.psybermonkey.net/2009/06/postgresql-how-to-reset-user-name.html
http://siguniang.wordpress.com/2013/10/18/install-postgresql9-3-and-psycopg2-on-centos6-4/