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
View keybase.md

Keybase proof

I hereby claim:

  • I am copyhacker on github.
  • I am copyhacker (https://keybase.io/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
copyhacker / gist:919a34708586cc850868
Created Jul 25, 2014
422 error running gh-issues-import.py
View gist:919a34708586cc850868
Traceback (most recent call last):
File "gh-issues-import.py", 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/request.py", line 153, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", 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/request.py", 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/request.py", line 499, in error
View default_estimate.html
<!-- This is a meaningless comment. -->
<html>
<head>
<title>Example Estimate Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
/* table */
table{border-collapse:collapse;}
@copyhacker
copyhacker / deploy.rake
Created Dec 31, 2013
Notify Sprintly of deployed items
View deploy.rake
# Requires the following environment vars:
# - SPRINTLY_PRODUCT_ID
# - SPRINTLY_EMAIL
# - SPRINTLY_API_KEY
namespace :deploy do
task :after_deploy, :env do |t, args|
puts "Running :after_deploy"
begin
View dot-rot-boot.sh
mkdir -p ~/code && cd ~/code && git clone https://github.com/copyhacker/dot-rot.git && cd dot-rot && rake
curl -Lo- https://bit.ly/janus-bootstrap | 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 http://git@github.com:mleung/koujou.git
Initialized empty Git repository in /Users/jvaught/Sites/koujou/.git/
Password:
error: inflate: data stream error (incorrect header check)
error: File 0000000000000000000000000000000000000000 (http://git@github.com:mleung/koujou.git/objects/00/00000000000000000000000000000000000000) corrupt
Getting pack list for http://git@github.com:mleung/koujou.git
Getting alternates list for http://git@github.com:mleung/koujou.git
Also look at <html xmlns="http://www.w3.org/1999/
Also look at <meta http-equiv="refresh" content="0;url=http://earthlink-help.com/main?AddInType=Bdns&Version=1.4.11&FailureMode=1&ParticipantID=xj6e3468k634hy3945zg3zkhfn7zfgf6&ClientLocation=us&Referer=&FailedURI=http%3A%2F%2Fgithub.com%3Amleung%2Fkoujou.git%2Fobjects%2Finfo%2Fhttp-alternates&SearchQu
Also look at window.location.replace("http://earthlink-help.com/main?AddInType=Bdns&Version=1.4.11&FailureMode=1&ParticipantID=xj6e3468k634hy3945zg3zkhfn7zfgf6&ClientLocatio
View gist:83727
def notify
notify = Paypal::Notification.new(request.raw_post)
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.