This file contains 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
cdls() { | |
if [ -z "$1" ]; then | |
cd && ls | |
else | |
cd "$*" && ls | |
fi | |
} | |
alias cd=cdls |
This file contains 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
{ | |
_id: "octopi", | |
score: "3749", | |
children: [ | |
{ | |
name: "justdavesingh", | |
score: "5" | |
}, | |
{ | |
name: "vivekb", |
This file contains 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
[ | |
{ | |
_id: "yodawg", | |
score: "72948" | |
}, | |
{ | |
_id: "vivekb", | |
score: "10557" | |
}, | |
{ |
This file contains 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
d8888b. .d88b. .d88b. d888888b d888888b db db d88888b d8888b. .d88b. db db | |
88 `8D .8P Y8. .8P Y8. `~~88~~' `~~88~~' 88 88 88' 88 `8D .8P Y8. `8b d8' | |
88oobY' 88 88 88 88 88 88 88ooo88 88ooooo 88oooY' 88 88 `8bd8' | |
88`8b 88 88 88 88 88 88 88~~~88 88~~~~~ 88~~~b. 88 88 .dPYb. | |
88 `88. `8b d8' `8b d8' 88 88 88 88 88. 88 8D `8b d8' .8P Y8. | |
88 YD `Y88P' `Y88P' YP YP YP YP Y88888P Y8888P' `Y88P' YP YP |
This file contains 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
<html> | |
<title>rtb</title> | |
<head> | |
<meta http-equiv="refresh" content="5; url=http://twitter.com/r00tth3b0x"> | |
</head> | |
<body bgcolor="black"> | |
<pre><center><font color="white"> | |
d8888b. .d88b. .d88b. d888888b d888888b db db d88888b d8888b. .d88b. db db | |
88 `8D .8P Y8. .8P Y8. `~~88~~' `~~88~~' 88 88 88' 88 `8D .8P Y8. `8b d8' |
This file contains 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
“You could take all the gold that’s ever been mined, and it would fill a cube 67 feet in each direction. For what it’s worth at current gold prices, you could buy — not some — all of the farmland in the United States. Plus, you could buy 10 Exxon Mobils (XOM), plus have $1 trillion of walking-around money. Or you could have a big cube of metal. Which would you take? Which is going to produce more value?” - Warren Buffett |
This file contains 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
export PATH | |
cdls() { | |
if [ -z "$1" ]; then | |
cd && ls -G | |
else | |
cd "$*" && ls -G | |
fi | |
} | |
alias cd=cdls | |
alias pearp='/Applications/MAMP/bin/php/php5.4.4/bin/pear' |
This file contains 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
colors = [] | |
for i in range(0, COUNT): | |
colors.append(colorsys.hsv_to_rgb(fmod(i * 0.618033988749895, 1.0), 0.5, 1.0)) |
This file contains 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
$.ajax({ | |
url: "https://api.imgur.com/3/gallery/", | |
/* | |
Note: It's best to avoid placing your client-id in js, as it is exposed to the end-user. | |
To avoid this, you could proxy requests to your own server, which makes the request directly to imgur. | |
*/ | |
headers: {"Authorization": "Client-ID YOUR_CLIENT_ID"}, | |
success: function(data) { | |
for(var i = 0; i < 5; i++){ | |
console.log(data['data'][i]['link']); |
This file contains 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
clonerev() { | |
git clone $1 | |
cd 'sed ${1}##/*/ s/.git//' | |
git reset --hard $2 | |
} | |
# Usage: clonerev [url] [commit hash] |