This file contains hidden or 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
<script src="http://connect.facebook.net/en_US/all.js"></script> | |
<script> | |
FB.init({appId: 'APP_ID', status: true, cookie: true, xfbml: true}); | |
FB.api('/search?q=max&type=user', function(response) { | |
console.log(response); | |
}); | |
</script> |
This file contains hidden or 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
# install git | |
sudo apt-get install g++ curl libssl-dev apache2-utils | |
sudo apt-get install git-core | |
# download the Node source, compile and install it | |
git clone https://github.com/joyent/node.git | |
cd node | |
./configure | |
make | |
sudo make install | |
# install the Node package manager for later use |
This file contains hidden or 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
/* | |
Usage: io github <query> [language] | |
io github django | |
io github coffeescript | |
To limit search results to a certain language: | |
io github django python | |
To see debug info: | |
io --debug github django |
This file contains hidden or 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
sudo ARCHFLAGS="-arch i386" pip install urwid | |
git clone https://github.com/cortesi/mitmproxy.git | |
cd mitmproxy | |
sudo python setup.py install | |
cd .. | |
sudo rm -rf mitmproxy |
This file contains hidden or 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
>>> from django.db import connection | |
>>> connection.cursor().execute("SELECT nothing FROM non_existant_table") | |
Traceback (most recent call last): | |
File "<input>", line 1, in <module> | |
File "...lib/python2.6/site-packages/django/db/backends/util.py", line 34, in execute | |
return self.cursor.execute(sql, params) | |
File "...lib/python2.6/site-packages/django/db/backends/mysql/base.py", line 86, in execute | |
return self.cursor.execute(query, args) | |
File "...lib/python2.6/site-packages/MySQLdb/cursors.py", line 174, in execute | |
self.errorhandler(self, exc, value) |
This file contains hidden or 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
AA | 00 | ARUBA | |
---|---|---|---|
AC | 00 | ANTIGUA AND BARBUDA | |
AC | 01 | Barbuda | |
AC | 03 | Saint George | |
AC | 04 | Saint John | |
AC | 05 | Saint Mary | |
AC | 06 | Saint Paul | |
AC | 07 | Saint Peter | |
AC | 08 | Saint Philip | |
AC | 09 | Redonda |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>welcome to ipinfo</title> | |
<style> | |
/* ----- Global Stuff ----- */ |
This file contains hidden or 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
# ASN API with Standard or Pro plan | |
$ curl ipinfo.io/AS25/json?token=$IPINFO_TOKEN | |
{ | |
"asn": "AS25", | |
"name": "University of California at Berkeley", | |
"country": "US", | |
"allocated": "1984-08-03", | |
"registry": "arin", | |
"domain": "berkeley.edu", | |
"num_ips": 202496, |
This file contains hidden or 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
# Basic API example, does not require token | |
$ curl ipinfo.io/8.8.8.8 | |
{ | |
"ip": "8.8.8.8", | |
"hostname": "google-public-dns-a.google.com", | |
"city": "Mountain View", | |
"region": "California", | |
"country": "US", | |
"loc": "37.3860,-122.0840", | |
"postal": "94035", |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
ip,name,domain,type,country | |
100.42.173.114,Douglas FastNet,douglasfast.net,business,US | |
100.42.175.0,Douglas FastNet,douglasfast.net,business,US | |
100.42.175.134,Douglas FastNet,douglasfast.net,business,US | |
100.42.88.41,"Evertek, Inc",evertek.net,business,US | |
100.42.92.44,"Evertek, Inc",evertek.net,business,US | |
100.43.197.242,Star Pacific Rim Industries,telepacific.net,hosting,US | |
100.43.202.0,Century West Development,rentcwp.com,hosting,US | |
100.43.202.188,TPx Communications,tpx.com,hosting,US | |
100.43.215.242,TPx Communications,tpx.com,hosting,US |
OlderNewer