Skip to content

Instantly share code, notes, and snippets.

View benjaminws's full-sized avatar

Benjamin W. Smith benjaminws

View GitHub Profile
14:30.09 Tue May 27 2014! ~
bsmith@crackbook-pro!
-> telnet mail.python.org 25
Trying 2001:888:2000:d::a6...
telnet: connect to address 2001:888:2000:d::a6: Connection refused
Trying 82.94.164.166...
telnet: connect to address 82.94.164.166: Operation timed out
telnet: Unable to connect to remote host
@benjaminws
benjaminws / welcome.txt
Created January 21, 2015 19:54
Hello There
Hopefully you can read this.

Keybase proof

I hereby claim:

  • I am benjaminws on github.
  • I am benjaminws (https://keybase.io/benjaminws) on keybase.
  • I have a public key whose fingerprint is F5AD 9A35 C7ED DF93 FD1B 1BAB 8EA1 0315 498C 1579

To claim this, I am signing this object:

x = function()
y = function()
local table = 5
end
local old_table = table
y()
table.insert(old_table, 4)
assert(table == old_table and table ~= 5)
end
x()
The program 'curl' is currently not installed. You can install it by typing:
apt-get install curl
#!/usr/bin/env node
var sys = require('sys');
var stomp = require('stomp');
// Set debug to true for more verbose output.
// login and passcode are optional (required by rabbitMQ)
var stomp_args = {
port: 61613,
host: 'localhost',
client.on('connected', function() {
num = num || 1000;
for (var i = 0; i < num; i++) {
txn = client.begin();
client.send({
'destination': queue,
'body': 'Testing' + i,
'persistent': 'true',
'transaction': txn
}, receipt);
#!/usr/bin/env node
var stomp = require('stomp');
var num = process.argv[2];
// Set to true if you want a receipt
// of all messages sent.
var receipt = false;
var stomp_args = {
port: 61613,
host: 'localhost',
debug: false,
login: 'guest',
passcode: 'guest',
};
@benjaminws
benjaminws / gist:856552
Created March 5, 2011 18:01
What I'm working on
>>> tu.search_friends(['twitter', 'cleveland', 'benjaminws', 'python'])
[{'status': 'CPython is on mercurial now, so you can come contribute...', 'name': 'Benjamin Peterson', 'matches': ['python'], 'static_location': 'Minnesota, USA', 'coords': None, 'user': 'gutworth', 'geo': None}, {'status': '@benjaminws it is going to kick intergalactic ass', 'name': 'Alfredo Deza', 'matches': ['benjaminws'], 'static_location': 'Atlanta Georgia', 'coords': None, 'user': 'alfredodeza', 'geo': None}, {'status': 'The Python mercurial transition is complete! Now the real work begins. http://bit.ly/eFYmar Special thanks to @birkenfeld and @djco', 'name': 'Michael Foord', 'matches': ['python'], 'static_location': 'Northampton, UK', 'coords': None, 'user': 'voidspace', 'geo': None}, {'status': '@benjaminws I stand corrected', 'name': 'Alfredo Deza', 'matches': ['benjaminws'], 'static_location': 'Atlanta Georgia', 'coords': None, 'user': 'alfredodeza', 'geo': None}, {'status': '@benjaminws if it is not \\s+(documented|tested)\\s+