Skip to content

Instantly share code, notes, and snippets.

View brettchalupa's full-sized avatar

Brett Chalupa brettchalupa

View GitHub Profile
@brettchalupa
brettchalupa / gist:e9245a1d9e5f0cdeda4c
Created January 14, 2016 18:22 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@brettchalupa
brettchalupa / instructions.md
Last active January 13, 2017 03:23 — forked from wrburgess/gist:5528649
Backup Heroku Postgres database and restore to local database

How To Use Heroku Postgresql Database Locally

https://devcenter.heroku.com/articles/heroku-postgres-import-export

or

  1. Create a new database backup - heroku pg:backups capture
  2. Request and copy the URL - heroku pg:backups public-url
  3. Download the database backup - curl "[the url]" > tmp/db.dump
  4. Restore the backup - pg_restore --verbose --clean --no-acl --no-owner -h localhost -d [db_name] tmp/db.dump
class X
attr_accessor :i
def initialize
@i = 0
end
def work(e)
@i += e
end

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brettchalupa
brettchalupa / independent_contractor_agreement.md
Last active April 3, 2018 20:49 — forked from malarkey/Contract Killer 3.md
Independent contractor agreement based off of the Contract Killer 3.

Independent Contractor Agreement

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfill your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

So in short;