Skip to content

Instantly share code, notes, and snippets.

View leesheppard's full-sized avatar

Lee Sheppard leesheppard

View GitHub Profile
@leesheppard
leesheppard / README.md
Last active July 28, 2022 16:09
Homebrew Formula patching old ImageMagick release 6.9.7-10

Install

brew install https://gist.githubusercontent.com/leesheppard/69a283ee4af484e2029809a0f5e09932/raw/88bc116b515a456a2e1bad476b6124d28ce2f6f6/imagemagick.rb

Pin this version

To prevent upgrades you can pin this version.

brew pin imagemagick
@leesheppard
leesheppard / gist:0d2e4182f01d4f65b7579f5c5a22b63f
Created March 6, 2017 01:44
Rails db rake tasks and what they do
db:create Creates the database for the current RAILS_ENV environment. If RAILS_ENV is not specified it defaults to the development and test databases.
db:create:all Creates the database for all environments.
db:drop Drops the database for the current RAILS_ENV environment. If RAILS_ENV is not specified it defaults to the development and test databases.
db:drop:all Drops the database for all environments.
db:migrate Runs migrations for the current environment that have not run yet. By default it will run migrations only in the development environment.
db:migrate:redo Runs db:migrate:down and db:migrate:up or db:migrate:rollback and db:migrate:migrate depending on the specified migration. I usually run this after creating and running a new migration to ensure the migration is reversable.
db:migrate:up Runs the up for the given migration VERSION.
db:migrate:down Runs the down for the given migration VERSION.
@leesheppard
leesheppard / keybase.md
Created December 1, 2016 23:53
Keybase proof

Keybase proof

I hereby claim:

  • I am leesheppard on github.
  • I am leesheppard (https://keybase.io/leesheppard) on keybase.
  • I have a public key ASD-dyE98vEU8mAoDIRzwHzMf5Po8wIKzrAG1VMTUa8g_Qo

To claim this, I am signing this object: