This guide assumes a fresh install of Mac OSX 10.7 Lion.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ $ mongo -u USERNAME -p PASSWORD Flame.mongohq.com:27094/wereviewutah | |
MongoDB shell version: 1.6.5 | |
connecting to: Flame.mongohq.com:27094/wereviewutah | |
> db.logs.find() | |
{ "_id" : ObjectId("4da0d8a5a130714ae1000023"), "count" : 1 } | |
> db.logs.findOne() | |
{ "_id" : ObjectId("4da0d8a5a130714ae1000023"), "count" : 1 } | |
> db.logs.update({}, {$inc:{count:1}}) | |
> db.logs.findOne() | |
{ "_id" : ObjectId("4da0d8a5a130714ae1000023"), "count" : 2 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gevent | |
from gevent import monkey | |
monkey.patch_socket() | |
import hashlib | |
import os | |
import redis | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function flask-boilerplate-tmux | |
{ | |
# https://github.com/swaroopch/flask-boilerplate | |
BASE="$HOME/code/flask-boilerplate" | |
cd $BASE | |
tmux start-server | |
tmux new-session -d -s flaskboilerplate -n model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set grepprg=ack | |
set grepformat=%f:%l:%m | |
autocmd FileType make set noexpandtab | |
autocmd FileType python set noexpandtab | |
set hlsearch | |
let mapleader = "," |
NewerOlder