Skip to content

Instantly share code, notes, and snippets.

View marfarma's full-sized avatar

Pauli Price marfarma

View GitHub Profile
[
{
"scope": "https://accounts.google.com:443",
"method": "POST",
"path": "/o/oauth2/token",
"body": "client_id=630524341769-18r7lv3t75ius04f7f9na9b4a72bdq08.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8100&code=4%2Fr2SHUKHwsXND1KO9IvSj7M2SiV5BOrOtsnEaX-d8-j4&grant_type=authorization_code&client_secret=gP5ZLXauDGiHdXPOhwCn-4bs",
"status": "200",
"response": {
"access_token": "ya29.GwKcl1wguJnuut-9ndPNlwuIKp86jwkGjutndMacgEDZaS2xb-kAlFvUV6Dqglc16bdT",
"token_type": "Bearer",
# Brewfile for https://github.com/Homebrew/homebrew-bundle
# Generated via `brew bundle dump`
# See old Caskfile (below) for categorized list of some stuff you may wish to install
tap 'caskroom/cask'
tap 'homebrew/bundle'
tap 'homebrew/dupes'
tap 'homebrew/fuse'
tap 'homebrew/versions'
tap 'thoughtbot/formulae'
@marfarma
marfarma / goals.md
Last active October 30, 2015 23:55
Notes for RC

Things I want to learn

@marfarma
marfarma / server.js
Last active October 30, 2015 22:20
Database server
All code has been moved to: https://github.com/marfarma/pairing-server
@marfarma
marfarma / monit.conf
Created June 8, 2012 18:15 — forked from shapeshed/monit.conf
Upstart script for monit on Ubuntu 10.04
# This is an event.d (upstart) script to keep monit running.
# To install disable the old way of doing things:
#
# /etc/init.d/monit stop && update-rc.d -f monit remove
#
# then put this script here:
#
# /etc/init/monit.conf
#
# and reload upstart configuration:
@marfarma
marfarma / deploy.rb
Created January 5, 2012 22:49 — forked from tomislav/deploy.rb
Capistrano recipe for Wordpress
default_run_options[:pty] = true
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
require 'capistrano'
require 'rubygems'
require 'railsless-deploy'
set :application, "vault42.org"
set :deploy_to, "/usr/local/www/#{application}"
set :backup_dir, "/home/tomislav/backup"
set :use_sudo, false
@marfarma
marfarma / gist:1083360
Created July 14, 2011 20:28
live headers from a download that lost it's filename = FF 4.0.1 on Mac OS X 10.5 (filename on disk: 444)
http://medialoot.com/main/freebie/444/
GET /main/freebie/444/ HTTP/1.1
Host: medialoot.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
# You can override these if you want in environment initializers:
COUCHDB_HOST = 'http://127.0.0.1:5984' unless defined?(COUCHDB_HOST)
COUCHDB_DB_NAME = "learnhub_#{Rails.env}" unless defined?(COUCHDB_DB_NAME)
# This stuff should stay here:
COUCHDB_SERVER = CouchRest.new(COUCHDB_HOST)
COUCHDB_DATABASE = COUCHDB_SERVER.database!(COUCHDB_DB_NAME)
CouchRest::Model.default_database = COUCHDB_DATABASE
Added
log = File.new("name_of_my_test.log", "w")
STDOUT.reopen(log)
STDERR.reopen(log)
at the top of features/support/env.rb and got the following. Need to figure out where to put it to actually get the error message, as stderr & stdout seems to have been 'swallowed' by rake.
$ rake features --trace
(in /home/deploy/www/www.example.com/app/ccc)