Skip to content

Instantly share code, notes, and snippets.

James Mulholland mulholio

View GitHub Profile
@mulholio
mulholio / delete-postmaster.sh
Created Feb 27, 2019
Removes Postgres' `postmaster.pid` file for when you computer shuts down incorrectly (e.g. battery failure) and Postgres won't start
View delete-postmaster.sh
# run this in your terminal
rm ~/Library/Application \Support/Postgres/var-10/postmaster.pid
@mulholio
mulholio / db.sh
Created Feb 12, 2019
Update your development Rails database with the latest copy of your production Heroku database
View db.sh
output="$PWD/db.dump"
dropDB() {
# set db username (might not be $USER in your case)
local username="$USER"
local dbname="YOUR_DATABASE_NAME" # your sushi_app_development
rake db:drop DISABLE_DATABASE_ENVIRONMENT_CHECK=1
rake db:create
# you might need a password in here for your machine
@mulholio
mulholio / git-commit-branch-prefixes
Last active Nov 8, 2018 — forked from indexzero/git-commit-prefixes
Short list of Git commit and branch prefixes
View git-commit-branch-prefixes
## Prefixes
[del]: Delete code
[dist]: Changes to submodules, version bumps, updates to package.json
[doc]: Updates to documentation
[feat]: New feature
[fix]: Bug fixes
[infra]: Infrastructure changes
[merge]: Resolved git merge from upstream or otherwise
[nit]: Small changes: syntax, typos
[refact]: Refactor
You can’t perform that action at this time.