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
@brettchalupa
brettchalupa / golang_notes.md
Created August 6, 2015 02:28
Go(lang) Notes

Notes While Learning Go(lang)

Useful Commands

  • godoc -http=:8000 - serve Go docs locally
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
@brettchalupa
brettchalupa / curry.md
Created January 30, 2014 17:22
Curry checks that committers in a GitHub Pull Request have signed Chef's CLA in Super Market.

Curry

Curry checks that committers in a GitHub Pull Request have signed Chef's CLA in Super Market.

Intro

The general goal of curry is to verify that committer(s) opening a pull request in a Chef Inc. repo have signed a CLA. If they have signed a CLA, Super Market will leave a comment letting Chef Inc. know that the user has signed a CLA. If they have not, Super Market will leave a comment letting Chef Inc. and the committer(s) know they have not signed a CLA, while instructing the committer(s) to sign a CLA. When the Pull Request is opened, a ticket is opened in the ticket tracking system being used (in Chef's case, JIRA).

Major parts of Curry include:

Better security practices:

  • unique and strong passwords
  • unassociate credit cards with online vendors (Amazon, PayPal, etc.)
  • enable two factor auth wherever possible
  • delete old and unused accounts
@brettchalupa
brettchalupa / technologies_to_watch.md
Created January 30, 2014 01:32
Interesting technologies to watch.
@brettchalupa
brettchalupa / Preferences.sublime-settings
Last active January 4, 2016 07:19
My Sublime Text configuration.
{
"font_face": "Monaco",
"font_size": 14,
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme",
"tab_size": 2,
"translate_tabs_to_spaces": true,
"wrap_width": 80,
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
"draw_white_space": "all",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.