moved to here
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
curl \ | |
--digest \ | |
--user-agent "MyCurlClient/1.0" \ | |
-o data/metadata.xml \ | |
--show-error \ | |
--dump-header data/headers.txt \ | |
-u "username:password" \ | |
--header "RETS-Version: RETS/1.5" \ | |
--cookie-jar data/cookies.txt \ | |
--cookie data/cookies.txt \ |
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
#ya-topdate { | |
display:none; | |
} | |
#ya-header-logo { | |
display:none; | |
} | |
.ExternalWebpageIframeResp { | |
display:none; |
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
<?php | |
$falsey = [ | |
0, | |
'', | |
'0', | |
null, | |
false, | |
[], | |
]; |
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
<?php | |
function wasteMemory($redis, $runs, $multi=false, $echoEvery=10000) { | |
if ($multi) { | |
$redis->multi(); | |
} | |
for ($i=0; $i <= $runs; $i++) { | |
$redis->set('key'.$i, 'value'.$i); | |
if ($i % $echoEvery === 0) { | |
echo memory_get_peak_usage(); | |
echo "\n"; |
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 scapy.all import * | |
import requests | |
import time | |
MAGIC_FORM_URL = 'http://put-your-url-here' | |
def record_poop(): | |
data = { | |
"Timestamp": time.strftime("%Y-%m-%d %H:%M"), | |
"Measurement": 'Poopy Diaper' | |
} |
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
for branch in `git branch -r | grep "origin/[^tags|master|trunk]" | sed 's/ origin\///'`; do | |
git branch $branch remotes/origin/$branch | |
done |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Ariel subscriptions in feedly Cloud</title> | |
</head> | |
<body> | |
<outline text="science-y" title="science-y"> | |
<outline type="rss" text="FiveThirtyEightFiveThirtyEight | Fe..." title="FiveThirtyEightFiveThirtyEight | Fe..." xmlUrl="http://fivethirtyeight.com/features/feed/" htmlUrl="http://fivethirtyeight.com"/> | |
<outline type="rss" text="Nautilus" title="Nautilus" xmlUrl="http://nautil.us/rss/all" htmlUrl="http://nautil.us/rss/all"/> |
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
http://stackoverflow.com/a/25903802/1200542 |
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
convert *.jpg -gravity north -pointsize 15 -fill white -annotate 0 "%f" output.pdf |
NewerOlder