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
<?php | |
/** | |
* Extract the messages from that awful HTML file Facebook gives you when | |
* you request an archive of your data. | |
* | |
* Writes them to a database. | |
* | |
* @author Damien Walsh <me@damow.net> | |
* @license MIT | |
*/ |
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
### Keybase proof | |
I hereby claim: | |
* I am themainframe on github. | |
* I am fel (https://keybase.io/fel) on keybase. | |
* I have a public key whose fingerprint is D385 4112 D034 D00B B907 26A9 A349 CD26 50D6 26CC | |
To claim this, I am signing this object: |
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
/* {{{ proto bool boolval(mixed var) | |
Get the boolean value of a variable */ | |
PHP_FUNCTION(boolval) | |
{ | |
zval **val; | |
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &val) == FAILURE) { | |
return; | |
} |
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
<?php | |
/** | |
* RickText | |
* Reads FLV movies/Folders of Images, outputs ASCII art animated with JS. | |
* | |
* @author Damien Walsh <me@damow.net> | |
* @version 1.0 | |
*/ | |
class RickText | |
{ |
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
<?php | |
function fix_array($bad) | |
{ | |
foreach($bad as $k => $v) | |
$new[$k] = is_array($v) ? fix_array($v) : $v; | |
return $new; | |
} |
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
<?php | |
// Create a new stdClass generic object | |
$obj = new stdClass; | |
// Assign the property '1' to be a string 'foo' | |
$obj->{'1'} = 'foo'; | |
// Cast the object into an array, turning properties into keys | |
$arr = (array)$obj; |
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
-- Executing [9000@default:1] VoiceMailMain("SIP/101-00000003", "") in new stack | |
-- <SIP/101-00000003> Playing 'vm-login.gsm' (language 'en') | |
-- <SIP/101-00000003> Playing 'vm-password.gsm' (language 'en') | |
-- <SIP/101-00000003> Playing 'vm-youhave.gsm' (language 'en') | |
-- <SIP/101-00000003> Playing 'digits/1.gsm' (language 'en') | |
-- <SIP/101-00000003> Playing 'vm-INBOX.gsm' (language 'en') | |
-- <SIP/101-00000003> Playing 'vm-message.gsm' (language 'en') | |
-- <SIP/101-00000003> Playing 'vm-onefor.gsm' (language 'en') | |
-- <SIP/101-00000003> Playing 'vm-INBOX.gsm' (language 'en') | |
-- <SIP/101-00000003> Playing 'vm-messages.gsm' (language 'en') |
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
<?php | |
/** | |
* Converts ChannelAdvisor style image URL meshes to Play.com style | |
* image spreadsheets. | |
* | |
* @author Damien Walsh <me@damow.net> | |
* @version 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
// | |
// Includes | |
// | |
#include <IRremote.h> | |
#include <SPI.h> | |
#include <Ethernet.h> | |
// | |
// Globals | |
// |
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
~ » traceroute -i en0 facebook.com | |
traceroute to facebook.com (173.252.110.27), 64 hops max, 52 byte packets | |
1 10.34.176.1 (10.34.176.1) 7.419 ms 7.646 ms 8.039 ms | |
2 * * * | |
^C | |
~ » traceroute -i utun1 facebook.com | |
traceroute to facebook.com (173.252.110.27), 64 hops max, 52 byte packets | |
1 130.88.250.162 (130.88.250.162) 22.282 ms 48.733 ms 21.228 ms | |
2 gw-rh (130.88.250.10) 21.728 ms 21.791 ms 22.249 ms | |
3 gw-uom-rh (130.88.250.78) 21.602 ms 21.620 ms 22.228 ms |