Skip to content

Instantly share code, notes, and snippets.

View adaptive's full-sized avatar
🎯
Focusing

Hugo Romano adaptive

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am adaptive on github.
  • I am adaptive (https://keybase.io/adaptive) on keybase.
  • I have a public key whose fingerprint is E80A 39DB 4263 87EB C6E2 A65A 09FE 9410 929C C9AA

To claim this, I am signing this object:

@adaptive
adaptive / gist:1998580
Created March 8, 2012 04:05
new rc helicopter
http://newrelic.extole.com/a/clk/5LJBW2
<?php
ob_start();
imagepng($image);
$memcache->set("my_image", ob_get_contents(), false, $cache_time);
ob_end_clean();
?>
<?php $my_image = $memcache->get("my_image"); ?>
111111
11111111
112233
121212
123123
123456
1234567
12345678
131313
232323
List of banned passwords on Twitter (TechCrunch)
------------------------------------------------
1. 111111
2. 11111111
3. 112233
4. 121212
5. 123123
6. 123456
7. 1234567
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();
http://j.maxmind.com/app/geoip.js
<? function phonetic($char)
{
$nato = array(
"a" => "alfa",
"b" => "bravo",
"c" => "charlie",
"d" => "delta",
"e" => "echo",
"f" => "foxtrot",
"g" => "golf",
<?php
header("Connection: close");
ob_start();
phpinfo();
$size=ob_get_length();
header("Content-Length: $size");
ob_end_flush();
flush();
sleep(13);
error_log("do something in the background");
<iframe src="http://docs.google.com/gview?url=http://bit.ly/76t5x&embedded=false" style="width:600px; height:500px;" frameborder="0"></iframe>