$ wget http://www.php.net/get/php-5.3.28.tar.gz/from/this/mirror
$ mv mirror php.5.3.28.tar.gz
$ tar xzvf php.5.3.28.tar.gz
$ cd php-5.3.28/
$ ./configure --with-openssl=shared
$ make
$ export OPENSSL_EXT_DIR=/usr/local/Cellar/php53-openssl # can be anything really as far as it matches value in the .ini file, later
$ mkdir $OPENSSL_EXT_DIR
$ cp modules/openssl.so $OPENSSL_EXT_DIR
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
function Data() { | |
var privProp = 5; | |
this.name = "some data object"; | |
Object.defineProperty(this, 'getPropPublic', { | |
get: function() { return privProp; } | |
}); | |
} |
"The primary objective of copyright is not to reward the labor of authors, but [to] promote the Progress of Science and useful Arts."
"To this end, copyright assures authors the right to their original expression, but encourages others to build freely upon the ideas and information conveyed by a work. This result is neither unfair nor unfortunate. It is the means by which copyright advances the progress of science and art."
-- US Supreme Court Justice Sandra Day O'Connor
- System Preferences -> {Account} -> Login Items
- ~/Library/LaunchAgents
- /System/Library/LaunchAgents
- /System/Library/LaunchDaemons
~/.profile
or~/.bash_profile
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
/** | |
Some relevant links along the way: | |
https://github.com/joyent/node/issues/2809 | |
https://github.com/joyent/node/issues/877 | |
**/ | |
var http = require('http'); |
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
Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no |
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
{ | |
"glossary": { | |
"title": "example glossary", | |
"GlossDiv": { | |
"title": "S", | |
"GlossList": { | |
"GlossEntry": { | |
"ID": "SGML", | |
"SortAs": "SGML", | |
"GlossTerm": "Standard Generalized Markup Language", |
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
var url = "http://cdn1.giltcdn.com/images/share/uploads/0000/0001/7250/172502872/420x560.jpg"; | |
var encoded = new Buffer(url).toString('base64'); | |
var decoded = new Buffer(encoded, 'base64').toString('ascii') | |
console.log(encoded); | |
console.log(decoded); |
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
def disable_notifications! | |
auth_url = "https://twitter.com/login" | |
notifications_url = "https://twitter.com/settings/notifications" | |
agent = Mechanize.new | |
page = agent.get(auth_url) | |
puts "DISABLING NOTIFICATIONS for #{self.username}" | |
puts "Logging in..." | |
page.forms_with(:action => 'https://twitter.com/sessions') do |forms| |