Skip to content

Instantly share code, notes, and snippets.

View lloydwatkin's full-sized avatar

Lloyd Watkin lloydwatkin

View GitHub Profile
@chrisenytc
chrisenytc / install.sh
Created August 11, 2014 21:10
How to install Comodo Positive SSL on AWS ELB
cat yourdomain_com.crt COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt >> ssl-bundle.crt
@andrew
andrew / followbomb.rb
Created November 20, 2013 23:19
Follow everyone in all orgs that you're a member of
require 'octokit'
# usage: $ ACCESS_TOKEN=1234567890abcdef ruby followbomb.rb
# create a token here: https://github.com/settings/tokens/new
client = Octokit::Client.new :access_token => ENV['ACCESS_TOKEN']
puts "Loading members of all orgs"
members = client.orgs.map{|org| client.organization_members(org.login) }.flatten.map(&:login)
@lloydwatkin
lloydwatkin / gist:4556860
Created January 17, 2013 15:42
Hack to backbone.js to get buddycloud webclient + http api server + tigase (+ buddycloud java server) talking.
@@ -1418,9 +1419,18 @@
// Make the request, allowing the user to override any Ajax options.
return Backbone.ajax(_.extend(params, options));
};
-
+var credentials;
// Set the default implementation of `Backbone.ajax` to proxy through to `$`.
Backbone.ajax = function() {
+ if (arguments[0].credentials) {
+ console.log("Storing credentials", arguments[0].credentials);