Skip to content

Instantly share code, notes, and snippets.

View l33z3r's full-sized avatar
👻

Lee Farrell l33z3r

👻
View GitHub Profile
@l33z3r
l33z3r / gist:6f783edc6258367d2ef9fa7c2402e666
Created September 29, 2016 10:08
Memory Leak With RabbitMQ (3.2.4) and Bunny Gem (2.5.1) On Ruby. Ubuntu
#!/usr/bin/env ruby
require 'bunny'
require 'pry'
puts 'Connecting...'
conn = Bunny.new
conn.start
pusher = new Pusher('8671ff0dd1fcbba4d00d')
channel = pusher.subscribe('lees-channel')
channel.bind "message-passed", (data) ->
$('#app_body').append "<div>An event was triggered with message: #{data.msg}</div>"
@l33z3r
l33z3r / jquery_couch_login_signup
Created July 9, 2013 11:41
Login/Signup Code for jquery couch
$.couch.login({
name: "bob",
password: "supersecurepassword",
success: function(data) {
console.log(data);
},
error: function(status) {
console.log(status);
}
});