Skip to content

Instantly share code, notes, and snippets.

View sync's full-sized avatar

Anthony Mittaz sync

View GitHub Profile
export PATH=$PATH:~/.cabal/bin:~/bin
export EDITOR="/usr/bin/mate -w"
alias ll='ls -l'
alias ..='cd ..'
#######
# GIT #
#######
// This sqlite3_exec limits the database to 50 DB pages (about 1.5Kb each)
// Huge memory win on iPhone.
if(sqlite3_exec(myDatabsae, "PRAGMA CACHE_SIZE=50", NULL, NULL, NULL) != SQLITE_OK)
NSLog(@"Couldn't set cache size: %s", sqlite3_errmsg([self.database sql]));