Skip to content

Instantly share code, notes, and snippets.

View danesparza's full-sized avatar
:octocat:
The best way to predict the future is to invent it - Alan Kay

Dan Esparza danesparza

:octocat:
The best way to predict the future is to invent it - Alan Kay
View GitHub Profile
@danesparza
danesparza / gist:975093
Created May 16, 2011 19:09
jQuery UI transfer effect - CSS
.ui-effects-transfer { border: 2px dotted gray; }
@danesparza
danesparza / gist:975101
Created May 16, 2011 19:12
CDN with Amazon Cloudfront
<!-- When using the hostname provided by Cloudfront, you can reference the script like this -->
<script src="http://d3h5p4zf44gxh.cloudfront.net/scripts/myscript.js"></script>
<!-- When using a CNAME in Amazon Cloudfront, you can reference the script like this -->
<script src="http://cdn.mydomain.net/scripts/myscript.js"></script>
@danesparza
danesparza / gist:975116
Created May 16, 2011 19:18
More Gravatar examples - small
http://www.gravatar.com/avatar/73543542128f5a067ffc34305eefe48a?size=56
@danesparza
danesparza / gist:975118
Created May 16, 2011 19:20
More Gravatar examples - large
http://www.gravatar.com/avatar/73543542128f5a067ffc34305eefe48a?size=120
@danesparza
danesparza / gist:975120
Created May 16, 2011 19:21
More Gravatar examples - default image
http://www.gravatar.com/avatar/73543542128f5a067ffc34305eefe48b?d=http://media.tumblr.com/tumblr_lak5phfeXz1qzqijq.png
@danesparza
danesparza / gist:976633
Created May 17, 2011 14:59
dig command - basic info
dig www.cagedtornado.com
@danesparza
danesparza / gist:976635
Created May 17, 2011 15:01
dig return value - basic query
; <<>> DiG 9.8.0-P1 <<>> www.cagedtornado.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15102
;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.cagedtornado.com. IN A
;; ANSWER SECTION:
@danesparza
danesparza / gist:977695
Created May 17, 2011 23:55
dig - specific dns server
dig @ns1.google.com www.google.com
; <<>> DiG 9.8.0-P1 <<>> @ns1.google.com www.google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30428
;; flags: qr aa rd; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
@danesparza
danesparza / gist:977703
Created May 17, 2011 23:59
dig - reverse lookup
dig -x 97.74.104.201
; <<>> DiG 9.8.0-P1 <<>> -x 97.74.104.201
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24181
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 2
;; QUESTION SECTION:
@danesparza
danesparza / gist:977711
Created May 18, 2011 00:05
dig - mail servers
dig yahoo.com MX
; <<>> DiG 9.8.0-P1 <<>> yahoo.com MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23047
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 7, ADDITIONAL: 7
;; QUESTION SECTION:
;yahoo.com. IN MX