Skip to content

Instantly share code, notes, and snippets.

#
# Voupe Rails Template
# http://r.dean.io
# rails new awesome -d mysql --skip-spring -m http://rails.dean.io
# http://guides.rubyonrails.org/rails_application_templates.html
#
RUBY_VERSION = "2.1.5"
#

Keybase proof

I hereby claim:

  • I am dannymcc on github.
  • I am dannymcc (https://keybase.io/dannymcc) on keybase.
  • I have a public key whose fingerprint is 281E 8F27 58E2 4A93 6FC6 7B23 5C9B D16B 6DF1 6E7C

To claim this, I am signing this object:

Apr 14 14:53:20 eccleston snmpd[2238]: IfIndex of an interface changed. Such interfaces will appear multiple times in IF-MIB.
Apr 14 14:53:20 eccleston openvpn[1643]: write UDPv4 []: Network is unreachable (code=128)
Apr 14 14:53:20 eccleston openvpn[1643]: write UDPv4 []: Network is unreachable (code=128)
Apr 14 14:53:21 eccleston pppd[1290]: Timeout waiting for PADO packets
Apr 14 14:53:22 eccleston openvpn[1643]: write UDPv4 []: Network is unreachable (code=128)
Apr 14 14:53:53 eccleston openvpn[1643]: last message repeated 67 times
Apr 14 14:54:18 eccleston openvpn[1643]: last message repeated 36 times
Apr 14 14:54:18 eccleston openvpn[1643]: Inactivity timeout (--ping-restart), restarting
Apr 14 14:54:18 eccleston openvpn[1643]: TCP/UDP: Closing socket
Apr 14 14:54:18 eccleston openvpn[1643]: Closing TUN/TAP interface
# SMS voucher system
def voucher
p = params
twilio_number = "+441257733073"
# Removes the +44 and replaces it with 0
number = p["From"].gsub("+44", "0")
# Splits "wormer 1" and "wormer1"
class VouchersController < ApplicationController
layout "widescreen"
def index
@vouchers = Voucher.search(params[:search], params[:page]).per_page(30)
respond_to do |format|
format.html {redirect_to(@vouchers[0]) if @vouchers.length == 1}
format.json { render json: @vouchers }
end
# == Schema Information
#
# Table name: vouchers
#
# id :integer not null, primary key
# client_id :integer
# code :string(255)
# claimed :boolean default(FALSE)
# claimed_at :datetime
# created_at :datetime not null
### 1.0.1 <small>10th November 2013</small>
* [Feature] Add weekly backup Hetzner server to Amazon S3
* [Feature] Delay any slow actions to speed up UI
* [Improvement] Add action success/failure notifications
* [Improvement] Push new announcements
* [Improvement] Push new Samples to dashboard
* [Improvement] Hide conditions within a claim if it's £0.00
### 1.0.0 <small>9th November 2013</small>
*** [deploy:update_code] rolling back
* executing "rm -rf /var/www/intranet/releases/20131017155709; true"
servers: ["217.36.47.178"]
[217.36.47.178] executing command
command finished in 317ms
failed: "sh -c 'cat /var/www/intranet/TOUCH_ASSETS | while read asset; do touch -c -- \"$asset\"; done && rm -f -- /var/www/intranet/TOUCH_ASSETS'" on 217.36.47.178
intranet (master): capd
/Users/danny/.rvm/gems/ruby-1.9.2-p320@hillcrest-intranet/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:152:in `require': /Users/danny/.rvm/gems/ruby-1.9.2-p320@hillcrest-intranet/bundler/gems/gonzo-4746d3df6d1d/lib/gonzo/deploy/assets.rb:29: syntax error, unexpected $end, expecting keyword_end (SyntaxError)
from /Users/danny/.rvm/gems/ruby-1.9.2-p320@hillcrest-intranet/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:152:in `require'
from /Users/danny/.rvm/gems/ruby-1.9.2-p320@hillcrest-intranet/bundler/gems/gonzo-4746d3df6d1d/lib/gonzo/deploy.rb:7:in `block in <top (required)>'
from /Users/danny/.rvm/gems/ruby-1.9.2-p320@hillcrest-intranet/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:97:in `instance_eval'
from /Users/danny/.rvm/gems/ruby-1.9.2-p320@hillcrest-intranet/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:97:in `load'
from /Users/danny/.rvm/gems/ruby-1.9.2-p320@hillcrest-intranet/gems/capistrano-2.15.5/lib
<141>Jul 12 02:16:33 waterstreet: pluto[13300]: "ecclestonsurgery"[69] ECC.SUR.ERY.IP #805: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0xe061646c (perhaps this is a duplicated packet)
<141>Jul 12 02:16:33 waterstreet: pluto[13300]: "ecclestonsurgery"[69] ECC.SUR.ERY.IP #805: sending encrypted notification INVALID_MESSAGE_ID to ECC.SUR.ERY.IP:500
<141>Jul 12 02:16:39 waterstreet: pluto[13300]: "ecclestonsurgery"[69] ECC.SUR.ERY.IP #805: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0xe061646c (perhaps this is a duplicated packet)
<141>Jul 12 02:16:39 waterstreet: pluto[13300]: "ecclestonsurgery"[69] ECC.SUR.ERY.IP #805: sending encrypted notification INVALID_MESSAGE_ID to ECC.SUR.ERY.IP:500
<141>Jul 12 02:16:40 waterstreet: pluto[13300]: "buckshawclinic"[5] BUK.SHA.WIP #790: max number of retransmissions (2) reached STATE_QUICK_I1
<141>Jul 12 02:16:40 waterstreet: pluto[13300]: "buckshawclinic"[5] BUK.SHA.WIP #790: