Skip to content

Instantly share code, notes, and snippets.

View gravicle's full-sized avatar

Amit Jain gravicle

  • San Francisco
View GitHub Profile
@stevestreza
stevestreza / Moodnight.dvtcolortheme
Created April 30, 2012 20:18
Hack on Xcode 4's Midnight theme to taste. You'll probably hate it.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>1 1 1 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>1 1 1 1</string>
@pala
pala / RunScript
Created February 3, 2012 20:00
Show TODO's And FIXME's As Warnings In Xcode 4
KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/"
//via http://deallocatedobjects.com/posts/show-todos-and-fixmes-as-warnings-in-xcode-4
@rponte
rponte / postgres-import-db.sh
Last active June 20, 2019 12:07
Drop, create and import database (PostgreSQL)
#export PATH=$PATH:/Library/PostgreSQL/8.4/bin/
dropdb -U postgres mydb
createdb -E UTF8 -U postgres mydb
psql -U postgres -d mydb < mydb-snapshot.sql
# or pg_restore -U postgres --dbname mydb --verbose mydb-snapshot.backup
# or pg_restore -U postgres --dbname mydb --verbose --no-owner mydb-snapshot.backup