Skip to content

Instantly share code, notes, and snippets.

View nickmerwin's full-sized avatar

Nick Merwin nickmerwin

View GitHub Profile
@nickmerwin
nickmerwin / backup.rake
Created October 8, 2009 20:38
Task to backup your heroku db to S3
# Heroku S3 Database backup task
# by Nick Merwin (Lemur Heavy Industries) 10.08.09
# * dumps db to yaml, gzip's and sends to S3
#
# Setup:
# 1) replace APP_NAME and BACKUP_BUCKET with your info
# 2) add config/s3.yml like so (same as Paperclip's):
# production:
# access_key_id: ...
# secret_access_key: ...
@nickmerwin
nickmerwin / sunspot_session_proxy.rb
Created September 13, 2011 23:16
Tandemstock.com Sunspot Session Proxy
module Sunspot
module SessionProxy
class TandemSessionProxy < AbstractSessionProxy
attr_reader :search_session
delegate :new_search, :search, :config,
:new_more_like_this, :more_like_this,
:delete_dirty, :delete_dirty?,
:to => :search_session
@nickmerwin
nickmerwin / keybase.md
Created February 25, 2014 21:02
keybase.md

Keybase proof

I hereby claim:

  • I am nickmerwin on github.
  • I am mer (https://keybase.io/mer) on keybase.
  • I have a public key whose fingerprint is 24AE 1631 875E 8746 1B75 23D7 449A B548 4E59 8A2B

To claim this, I am signing this object:

@nickmerwin
nickmerwin / out
Created July 25, 2015 16:59
nickmerwin @Nicks-MacBook-Pro.local : ssh -i tmp/coveralls_backup.pem ubuntu@52.2.26.93
yo yo yo yo\n yo yo yo
@nickmerwin
nickmerwin / Dockerfile
Created June 30, 2016 02:18
Softcover.io publishing system Docker installation
FROM phusion/baseimage:0.9.11
# https://github.com/phusion/baseimage-docker
MAINTAINER Nick Merwin <nick@softcover.io>
ENV HOME /root
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
CMD ["/sbin/my_init"]
# ==============================================================================
# install deps