Skip to content

Instantly share code, notes, and snippets.

Jonathan Vaught copyhacker

Block or report user

Report or block copyhacker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View intercom_controller_example.rb
class SessionController < ApplicationController
# . . .
# Typical login action
def create
# Rails code to log the user in...
# Create the Intercom API client

Keybase proof

I hereby claim:

  • I am copyhacker on github.
  • I am copyhacker ( on keybase.
  • I have a public key whose fingerprint is 4416 A743 C30F 5024 3BB7 70B3 743F E7F4 9274 D5B1

To claim this, I am signing this object:

copyhacker / gist:919a34708586cc850868
Created Jul 25, 2014
422 error running
View gist:919a34708586cc850868
Traceback (most recent call last):
File "", line 207, in send_request
response = urllib.request.urlopen(req)
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/", line 153, in urlopen
return, data, timeout)
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/", line 461, in open
response = meth(req, response)
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/", line 571, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/", line 499, in error
View default_estimate.html
<!-- This is a meaningless comment. -->
<title>Example Estimate Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
/* table */
copyhacker / deploy.rake
Created Dec 31, 2013
Notify Sprintly of deployed items
View deploy.rake
# Requires the following environment vars:
namespace :deploy do
task :after_deploy, :env do |t, args|
puts "Running :after_deploy"
mkdir -p ~/code && cd ~/code && git clone && cd dot-rot && rake
curl -Lo- | bash
cd ~ && mkdir -p .node-completion
source .bash_profile
View gist:150384
[jvaught@tink:~/Sites/koujou(master)]$ rake package --trace
(in /Users/jvaught/Sites/koujou)
** Invoke package (first_time)
** Invoke pkg/koujou-0.0.1.tgz (first_time, not_needed)
** Invoke pkg/koujou-0.0.1 (first_time, not_needed)
** Invoke History.txt (first_time, not_needed)
** Invoke Manifest.txt (first_time, not_needed)
** Invoke PostInstall.txt (first_time, not_needed)
** Invoke README.rdoc (first_time, not_needed)
** Invoke Rakefile (first_time, not_needed)
View gist:150370
[jvaught@tink:~/Sites]$ git clone
Initialized empty Git repository in /Users/jvaught/Sites/koujou/.git/
error: inflate: data stream error (incorrect header check)
error: File 0000000000000000000000000000000000000000 ( corrupt
Getting pack list for
Getting alternates list for
Also look at <html xmlns="
Also look at <meta http-equiv="refresh" content="0;url=
Also look at window.location.replace("
View gist:83727
def notify
notify =
enrollment = Enrollment.find(notify.item_id)
if notify.acknowledge
@payment = Payment.find_by_confirmation(notify.transaction_id) ||
enrollment.invoice.payments.create(:amount => notify.amount,
:payment_method => 'paypal', :confirmation => notify.transaction_id,
:description => notify.params['item_name'], :status => notify.status,
:test => notify.test?)
You can’t perform that action at this time.