Skip to content

Instantly share code, notes, and snippets.

@nickmerwin
nickmerwin / Dockerfile
Created Jun 30, 2016
Softcover.io publishing system Docker installation
View Dockerfile
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
@nickmerwin
nickmerwin / out
Created Jul 25, 2015
nickmerwin @Nicks-MacBook-Pro.local : ssh -i tmp/coveralls_backup.pem ubuntu@52.2.26.93
View out
yo yo yo yo\n yo yo yo
View 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 / sunspot_session_proxy.rb
Created Sep 13, 2011
Tandemstock.com Sunspot Session Proxy
View sunspot_session_proxy.rb
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 / backup.rake
Created Oct 8, 2009
Task to backup your heroku db to S3
View backup.rake
# 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: ...