Skip to content

Instantly share code, notes, and snippets.

View patcon's full-sized avatar

Patrick Connolly patcon

View GitHub Profile
@patcon
patcon / closed-pull-request.json
Created April 23, 2014 13:48
Comparing a webhook payload for a closed vs a merged pull request.
{
"action": "closed",
"number": 2302,
"pull_request": {
"url": "https://api.github.com/repos/gittip/www.gittip.com/pulls/2302",
"id": 14945815,
"html_url": "https://github.com/gittip/www.gittip.com/pull/2302",
"diff_url": "https://github.com/gittip/www.gittip.com/pull/2302.diff",
"patch_url": "https://github.com/gittip/www.gittip.com/pull/2302.patch",
"issue_url": "https://api.github.com/repos/gittip/www.gittip.com/issues/2302",
@patcon
patcon / -
Created April 20, 2014 20:38
Step 0 : FROM ubuntu:12.04
---> c0fe63f9a4c1
Step 1 : MAINTAINER Mihir Singh (@citruspi)
---> Using cache
---> 7a81eb3b4df3
Step 2 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> 17b8b2499fbb
Step 3 : RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
---> Using cache
@patcon
patcon / README.md
Last active August 29, 2015 13:59
Google App Scripts for gittip budgeting (for use in Google Spreadsheet "Tools > Script editor...")

Usage

  • Create new spreadsheet.
  • Click Tools > Script editor...
  • Copy in code.js.
  • Save with an arbitrary name, and then click the "Run" arrow.
  • Go back to spreadsheet.
  • Use custom functions like this in a cell: =getGittipReceivingIndividual("patcon")
➜ ~ keybase track clone1018
info: ...checking identity proofs
✔ public key fingerprint: 5C32 41F4 18F8 A50C 4FB8 CF1B D232 97EB DE01 90AE
✖ "clone1018" on twitter: https://twitter.com/clone1018/status/453276538637545472 (failed with code 240)
✔ "clone1018" on github: https://gist.github.com/10054267
Some remote proofs failed!
Still verify this user as clone1018? [y/N] n
warn: Bailing out; proofs were not accepted
@patcon
patcon / npm-debug.log
Created March 30, 2014 19:20
npm error log in `sudo npm install -g npmsearch`
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'npmsearch' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink /usr/bin/node
5 verbose cache add [ 'npmsearch', null ]
6 verbose cache add name=undefined spec="npmsearch" args=["npmsearch",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url slashes: null,
7 verbose parsed url auth: null,
@patcon
patcon / npm-debug.log
Created March 29, 2014 02:16
npm publish fails silently in grunt-release
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'publish' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink /usr/bin/node
5 verbose publish [ '.' ]
6 verbose cache add [ '.', null ]
7 verbose cache add name=undefined spec="." args=[".",null]
8 verbose parsed url { protocol: null,
8 verbose parsed url slashes: null,

Keybase proof

I hereby claim:

  • I am patcon on github.
  • I am patcon (https://keybase.io/patcon) on keybase.
  • I have a public key whose fingerprint is 3A1C 0B22 D068 00FE 9941 70F0 95F8 9F53 5142 1685

To claim this, I am signing this object:

# Description:
# Submit time query to www.timeapi.org
#
# Commands:
# hubot time - Current time in UTC
# hubot time <timezone> - Current time in timezone
# hubot time <timezone> <query> - Time in timezone based on query
module.exports = (robot) ->
postgres@vagrant-ubuntu-precise-64:/home/vagrant/www.gittip.com$ make run
./env/bin/honcho -e defaults.env,local.env run ./env/bin/aspen \
--www_root=www/ \
--project_root=. \
--show_tracebacks=yes \
--changes_reload=yes \
--network_address=:8537
pid-2555 thread-47360263048960 (MainThread) Reading configuration from defaults, environment, and command line.
pid-2555 thread-47360263048960 (MainThread) changes_reload False default
pid-2555 thread-47360263048960 (MainThread) changes_reload True command line option --changes_reload=yes
@patcon
patcon / id_rsa.pub
Created January 9, 2014 19:04
patcon's SSH key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC+ujPWbxkhvkjv6EW9MwNHgjyGtAUFTtCnLsE7CEukzfeaL1NMyivCYwrdQ2TBaUTPkxKDKtuR0/729T+rXKpb2Aeua4WhPccOETb7ZOdJTxLu6nzDe2M/ri94umlvWMbH5Gf64zt/E7SYv398kRxABMOPFP4Kd2DcuCyItWp1GquGPB5DlWFwJ57kBmTsuarkWrz3WntG/htQI0woEBdPlBQ08aVWr8TQnn3/fclcgLyjtD6B7MRXHuwrK45l/VIK/ZI7OOnciHVxSVbJZjHII/gqmoGeu4KYdPy9DbVllKyBMI5hW/G2Dnqu0Xo+ISaC56Hcr2mIVvXx5teWcpxeSFuCQI8TqdxDK8/3TRn7EfGADUlvTbf9pCOMYD01Ifam11WqtaO6MsvAv/aWRFUTBxmCESyiN4E1y0LdKiIobo/fLMpcFgLt/kCtXs4Uok9M+8RYH25w6eQeLWs+hwswPVnB1Rt3TzmPW0TvuEjS1hHQk22KTsB5YXqlSApvY9bxtYZo+6k6UXur06w95luK3cL5FB7wbAQxYCPsX3a7Oz0nHNnkk7Dm4KAM6pCmayA2beV85o3mvp9pTZ6hvsqOng8qYMgo93tlgALOi+Ly1IdWirzC+WC6DNC3zpzHC+ShUvE4gP7l0g1Ve6/6k0putzVlUb6nBw3Gim8T4KBPow== patcon@myplanet-macbook