Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am larsburgess on github.
  • I am larsburgess (https://keybase.io/larsburgess) on keybase.
  • I have a public key whose fingerprint is AEC2 4B5E 2E51 6D4D 627B 0159 60BE B340 3ECD 1DA6

To claim this, I am signing this object:

@larsburgess
larsburgess / sidekiq-ui
Last active June 20, 2016 21:39
Simple script to run sidekiq web console given a redis url
#! /usr/bin/env ruby
require 'rack'
require 'sidekiq'
require 'sidekiq/web'
require 'sidekiq-failures'
url = ARGV[0] || 'redis://localhost:6379'
Sidekiq.configure_client do |config|
config.redis = { size: 1, url: url }
@larsburgess
larsburgess / fill-redis.rb
Created October 9, 2012 21:44
Fast redis filler!
#!/usr/bin/env ruby
require 'redis'
require 'hiredis'
require 'digest/sha1'
require 'benchmark'
def new_digest
Digest::SHA1.hexdigest( Time.now.strftime("%9N").to_s )
end
@larsburgess
larsburgess / gist:1138117
Created August 10, 2011 20:21
To disable the "rubber-band" effect of UIWebView (only if using jquery)
$().ready(function(){
document.ontouchmove = function(e){ e.preventDefault(); }
});