Skip to content

Instantly share code, notes, and snippets.

View peymano's full-sized avatar

Peyman Oreizy peymano

View GitHub Profile
; Hosts
; This file is parsed by the MacTCP domain name resolver and the resource records
; are loaded into the resolver's cache.
;
; The Hosts file follows a SUBSET of the Master File Format (see rfc1035 pg 33).
; Each line in this file has the form: <domain-name> <rr> [<comment>]
; <domain-name> is an absolute domain name (see rfc1034 pg 11).
; <rr> = [<ttl>] [<class>] <type> <rdata> OR [<class>] [<ttl>] <type> <rdata>
; A comment starts with ";" or by a line begining with a " ".
;
@peymano
peymano / gist:674579
Created November 12, 2010 19:54
PassportsWithPurpose widget
<div id="pwp-widget-2010">
<img usemap="#pwp-widget-map" src="http://www.passportswithpurpose.com/wp-content/donate/2010/widget.png" border="0" alt="" width="160" height="400" />
<a style="display: none;" href="http://airfare.bootsnall.com/">Cheap Flights</a>
<map name="pwp-widget-map">
<area shape="rect" coords="0,0,160,285" href="http://www.passportswithpurpose.com/" />
<area shape="rect" coords="0,286,160,400" href="http://airfare.bootsnall.com/" />
</map>
<img src="http://www.passportswithpurpose.com/donate/2010/a.gif" border="0" alt="" width="1" height="1" />
</div>
@peymano
peymano / gist:1366310
Created November 15, 2011 06:12
Passports with Purpose Widget 2011
<div id="pwp-widget-2011">
<img usemap="#pwp-widget-map" src="http://www.passportswithpurpose.com/wp-content/donate/2011/widget.png" border="0" alt="" width="160" height="400" />
<map name="pwp-widget-map">
<area shape="rect" coords="0,0,160,285" href="http://www.passportswithpurpose.com/" />
<area shape="rect" coords="0,286,160,400" href="http://www.rtwwithus.org/" />
</map>
<img src="http://www.passportswithpurpose.com/donate/2011/a.gif" border="0" alt="" width="1" height="1" />
</div>
@peymano
peymano / gist:2047968
Created March 16, 2012 00:47
Restore from a binary Postgres dump file
pg_restore --clean --no-acl --no-owner -d <database> -U <user> <filename.dump>