Skip to content

Instantly share code, notes, and snippets.

Tim Haines timhaines

Block or report user

Report or block timhaines

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
timhaines / lambda.js
Created Jan 11, 2019 — forked from luketheobscure/lambda.js
Percy Bitbucket AWS Lambda
View lambda.js
const https = require('https');
const AUTHORIZATION = ''; // base 64 of user:password
const BITBUCKET_USER = ''; // either the user or the org that owns the repo
const PERCY_USER = ''; // the name of your percy user or org
exports.handler = (event, context, callback) => {
We need to post to a URL like this:<user>/<repo>/commit/<hash>/statuses/build
timhaines / mirage.config.js
Last active Apr 16, 2017
Mirage Dev Boilerplate
View mirage.config.js
export default function() {
//window.server = this;
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
View gist:5109052


Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg
timhaines / resque_retry.rb
Created Sep 9, 2011 — forked from PatrickTulskie/resque_retry.rb
Retry failed Resque jobs in Ruby
View resque_retry.rb
# inspired by
# retry all failed Resque jobs except the ones that have already been retried
# This is, for instance, useful if you have already retried some jobs via the web interface.
Resque::Failure.count.times do |i|
Resque::Failure.requeue(i) unless Resque::Failure.all(i, 1)['retried_at'].present?
# retry all :)
Resque::Failure.count.times do |i|
View gist:547403
require "nestful"
require "roauth"
def upload(path_to_file)
twitpic_key = "my_twitpic_api_key"
oauth_url = ""
oauth = {
:access_key => "account_access_key",
:access_secret => "account_access_secret",
You can’t perform that action at this time.