Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am wlrs on github.
  • I am joeynelson (https://keybase.io/joeynelson) on keybase.
  • I have a public key ASCTfiT8qL8XFIW48b3Byg4Ha5xyJSPBy_uCwP-O2QlfxAo

To claim this, I am signing this object:

\n
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
\n
Warning! PATH is not properly set up, '/home/ubuntu/.rvm/gems/ruby-1.9.3-p448/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p448'.
rvm rubies
jruby-1.7.0 [ x86_64 ]
jruby-1.7.11 [ x86_64 ]
{
"tags": [],
"storage": {
"url": "https://api.mailgun.net/v2/domains/uservoice.com/messages/WyJhNmMyNWEzZmNmIiwgWyI4MGEwMTQ4My04ZmI4LTQ4NGQtYWNjZi1kYzk4MmM4NzNhYmMiXSwgIm1haWxndW4iLCAibmV3Y29rZSJd",
"key": "WyJhNmMyNWEzZmNmIiwgWyI4MGEwMTQ4My04ZmI4LTQ4NGQtYWNjZi1kYzk4MmM4NzNhYmMiXSwgIm1haWxndW4iLCAibmV3Y29rZSJd"
},
"envelope": {
"sender": "joey@uservoice.com",
"transport": "http",
"targets": "https://mg.uservoice.com/mailgun/incoming_emails"
@wlrs
wlrs / nginx
Created February 18, 2013 02:50 — forked from hisea/nginx
sudo cp nginx /etc/init.d/
sudo update-rc.d nginx defaults
sudo chmod +x /etc/init.d/nginx
/etc/init.d/nginx start
@wlrs
wlrs / article_position.rb
Created October 30, 2012 17:42
uservoice api article positioning
require 'uservoice-ruby'
require 'pp'
# plug me in your details
subdomain = 'wlrs'
api_key = ''
api_secret = ''
article_id = 133269
client = UserVoice::Client.new(subdomain, api_key, api_secret).login_as_owner
@wlrs
wlrs / set_cache_control_s3.rb
Created November 15, 2011 01:23
Set far future cache control for existing files in an s3 bucket
require 'rubygems'
require 'aws/s3'
AWS::S3::Base.establish_connection!(
:access_key_id => '',
:secret_access_key => ''
)
bucket = AWS::S3::Bucket.find('my_bucket')