Skip to content

Instantly share code, notes, and snippets.

@larsburgess
larsburgess / gist:1138117
Created Aug 10, 2011
To disable the "rubber-band" effect of UIWebView (only if using jquery)
View gist:1138117
$().ready(function(){
document.ontouchmove = function(e){ e.preventDefault(); }
});
View fill-redis.rb
#!/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
View keybase.md

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 Jun 20, 2016
Simple script to run sidekiq web console given a redis url
View sidekiq-ui
#! /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 }