Skip to content

Instantly share code, notes, and snippets.

View albus522's full-sized avatar

David Genord II albus522

View GitHub Profile
{
"description": "Steelseries Nimbus",
"vendorID": 273,
"productID": 5152,
"axis": [
{ "name": "left_x", "id": 0 },
{ "name": "left_y", "id": 1 },
{ "name": "right_x", "id": 2 },
{
"description": "Logitech Dual Action",
"vendorID": 1133,
"productID": 49686,
"axis": [
{ "name": "left_x", "id": 0 },
{ "name": "left_y", "id": 1 },
{ "name": "right_x", "id": 2 },
{
"name": "hcs-bot",
"version": "1.0.0",
"description": "Its a bot",
"engines": {
"node": ">= 0.10.20"
},
"dependencies": {
"cylong",
"cylon-gpio",
cj = ActionDispatch::Cookies::CookieJar.new(
Rails.application.key_generator,
Figaro.env.domain, # host
false, # secure
{
signed_cookie_salt: Rails.application.config.action_dispatch.signed_cookie_salt,
encrypted_cookie_salt: Rails.application.config.action_dispatch.encrypted_cookie_salt,
encrypted_signed_cookie_salt: Rails.application.config.action_dispatch.encrypted_signed_cookie_salt,
secret_key_base: Rails.application.config.secret_key_base,
serializer: Rails.application.config.action_dispatch.cookies_serializer

Keybase proof

I hereby claim:

  • I am albus522 on github.
  • I am albus522 (https://keybase.io/albus522) on keybase.
  • I have a public key whose fingerprint is 768D 4BC4 0DB2 67AB 6922 FE9D 6FF8 09A6 D69C B8ED

To claim this, I am signing this object:

@albus522
albus522 / propane.patch
Last active December 22, 2015 15:59
To add Gravatars to propane just run: curl https://gist.github.com/albus522/6496657/raw/update.sh | bash
--- enhancer.js.orig 2012-07-25 02:38:06.000000000 -0400
+++ enhancer.js 2012-08-02 10:04:02.000000000 -0400
@@ -1,5 +1,7 @@
if (window.propane) {
+ (function(a){function b(a,b){var c=(a&65535)+(b&65535),d=(a>>16)+(b>>16)+(c>>16);return d<<16|c&65535}function c(a,b){return a<<b|a>>>32-b}function d(a,d,e,f,g,h){return b(c(b(b(d,a),b(f,h)),g),e)}function e(a,b,c,e,f,g,h){return d(b&c|~b&e,a,b,f,g,h)}function f(a,b,c,e,f,g,h){return d(b&e|c&~e,a,b,f,g,h)}function g(a,b,c,e,f,g,h){return d(b^c^e,a,b,f,g,h)}function h(a,b,c,e,f,g,h){return d(c^(b|~e),a,b,f,g,h)}function i(a,c){a[c>>5]|=128<<c%32,a[(c+64>>>9<<4)+14]=c;var d,i,j,k,l,m=1732584193,n=-271733879,o=-1732584194,p=271733878;for(d=0;d<a.length;d+=16)i=m,j=n,k=o,l=p,m=e(m,n,o,p,a[d],7,-680876936),p=e(p,m,n,o,a[d+1],12,-389564586),o=e(o,p,m,n,a[d+2],17,606105819),n=e(n,o,p,m,a[d+3],22,-1044525330),m=e(m,n,o,p,a[d+4],7,-176418897),p=e(p,m,n,o,a[d+5],12,1200080426),o=e(o,p,m,n,a[d+6],17,-1473231341),n=e(n,o,p,m,a[d+7],22,-45705983),m=e(m,n,o,p,a[d+8],7,1770
#!/usr/bin/env ruby
require 'net/http'
orig_content = File.read(ARGV[0])
msg = Net::HTTP.get_response(URI.parse('http://www.commitlogsfromlastnight.com/')).body.scan(%r{<a class="commit" href=[^>]+>(.+?)</a>}m).flatten.sample(1)
File.open(ARGV[0], 'w') {|f| f.puts msg; f << orig_content }
diff --git a/app/models/company.rb b/app/models/company.rb
index 458a3af..1773c20 100644
--- a/app/models/company.rb
+++ b/app/models/company.rb
@@ -125,16 +125,27 @@ class Company < ActiveRecord::Base
cond_params = {}
joins = []
- if !params[:duns_number].blank?
- cond_strings << "duns = :duns_number"
@albus522
albus522 / gist:4119536
Created November 20, 2012 17:43
Infinite Jukebox songs
Jem - 24: http://labs.echonest.com/Uploader/index.html?trid=TRZXJDJ13B1BCEA41C
Adiemus - Adiemus (1999 New Version): http://labs.echonest.com/Uploader/index.html?trid=TRAKKYS13B1ECAC375
diff --git a/lib/delayed/backend/shared_spec.rb b/lib/delayed/backend/shared_spec.rb
index 8dc94eb..822da9a 100644
--- a/lib/delayed/backend/shared_spec.rb
+++ b/lib/delayed/backend/shared_spec.rb
@@ -279,29 +279,6 @@ shared_examples_for "a delayed_job backend" do
end
end
- context "worker read-ahead" do
- before do