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
ssh-dss AAAAB3NzaC1kc3MAAACBAKLOcaiwGAw8IRrXyYP1zjc3caxyzjXkiWcOKL0rn+x25VUJNefRMwd94RrajYDzKos8wBhlqQ9ojK4NFLh3jOEAB3W6PbM+R7HwZ4a+xc6JsljcSwrJGry2u26cxBIbR8rj32UDpH81ZGltorcOjRwMio0C7iZ2pgQ/aoeQdu49AAAAFQDMWNod89Qq/iBuvPpWvMw6EovWgwAAAIATOcr2L4QCQaPciBS/a2WsiC+RMd1jhfebIecnvUGcvl1TT6iaeer7ojWnzHczBP+9Bfg+0mvvNLzksCvGpeqhu4pwlElz9/zwoiZ9dfq85Mx/gnZDyyhr0F/FLlo6Q7eWB/jGy1KgaoODQuc4B4brTIYoqPfSXQV4LvBjYOHaMgAAAIB8hPWgUZLrtnVCuwl+q44EZLHX2lKYygpwO6v4yerosdR691rCwAmiqREn4YLAG4Gzo/oZJtYTS0mry28HzGRZ6pKpGCZwelgtwOQGBkbiFcFQBOX777odT46SxAwWdzymaRH+beQ7iLkim5JqsCHqEfpAGDJC+zZqHcdI7cwizw== [email protected] |
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
require 'openssl' | |
require 'digest/sha1' | |
require 'yaml' | |
puts "Enter passphrase: " | |
passphrase = gets.chomp | |
cipher = OpenSSL::Cipher::Cipher.new("AES-256-CBC") |
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
[submodule "amqp"] | |
path = amqp | |
url = http://github.com/ry/node-amqp.git |
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
# In .ssh/config: | |
Host * | |
ControlMaster no # Connections by default are not a master | |
ControlPath ~/.ssh/master-%r@%h:%p | |
ServerAliveInterval 60 | |
ServerAliveCountMax 60 | |
# On normal connections, if there is no master running on the ControlPath it will behave as normal | |
ssh some.host |
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
/* | |
Smart JavaScript Console: | |
$ cd /Applications/Smart.app/Contents/Resources/Image | |
$ ./bin/js | |
*/ | |
js> help(); | |
JavaScript-C 1.8.0 pre-release 1 2007-10-03 |
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
$ ./bin/js | |
js> function ResourceValidationError() { | |
Error.apply(this, arguments); | |
if (arguments.length >= 1) { | |
this.message = arguments[0]; | |
} | |
} | |
js> ResourceValidationError.prototype = new Error(); | |
Error | |
js> ResourceValidationError.prototype.constructor = ResourceValidationError; |
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
before(function(){ | |
system.use("info.webtoolkit.Base64"); | |
var username = 'foo'; | |
var password = 'bar'; | |
var auth = "Basic " + Base64.encode(username + ":"+ password); | |
if (!this.request.headers.hasOwnProperty('Authorization') || (this.request.headers.hasOwnProperty('Authorization') && (auth != this.request.headers['Authorization']))) { | |
this.response.headers['WWW-Authenticate'] = 'Basic realm="Protected Area"'; | |
this.response.code = 401; | |
this.response.body = "Not Authorized\n"; | |
throw this.response; |
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 sys = require('sys'), | |
http = require('http'); | |
var identica = { | |
host: 'identi.ca', | |
root: '/api', | |
search: '/search.json?q=', | |
statuses: '/statuses', | |
publicTimeline: function() { | |
return( this.root + this.statuses + "/public_timeline.json" ); |
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 cron = require('./cron'), sys = require('sys'); | |
cron.Every((2).seconds(), function() { sys.puts('Working!'); }); |
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
module Sinatra | |
class Base | |
def self.http_options(path, opts={}, &bk) | |
route('OPTIONS', path, opts, &bk ) | |
end | |
end | |
module Delegator | |
delegate :http_options | |
end | |
end |