Skip to content

Instantly share code, notes, and snippets.

View leesheppard's full-sized avatar

Lee Sheppard leesheppard

View GitHub Profile
@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:

@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 / 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
/* normal flexbox */
.flexbox .flex-container {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: flex;
}
.flexbox .flex-container.vertical {
display: -webkit-flex;
display: -moz-flex;
@leesheppard
leesheppard / gist:950f325269f2dcd9c812c2118f9e9a5b
Created November 1, 2017 23:56
https://localhost - A set of really simple commands to enable https over localhost for Mac
Reference : https://paulbrowne.xyz/https-localhost
Enter in terminal:
$ cd; mkdir .ssl
$ openssl req -newkey rsa:2048 -x509 -nodes -keyout .ssl/localhost.key -new -out .ssl/localhost.crt -subj /CN=localhost -reqexts SAN -extensions SAN -config <(cat /System/Library/OpenSSL/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:localhost')) -sha256 -days 3650
$ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain .ssl/localhost.crt
@leesheppard
leesheppard / .gemrc
Created May 18, 2018 01:42
example .gemrc file
# http://guides.rubygems.org/command-reference/#gem-environment
# <gem_command>: A string containing arguments for the specified gem command
# -N, --no-document - Disable documentation generation
# --[no-]document [TYPES] - Generate documentation for installed gems List the
# documentation types you wish to generate. For example: rdoc,ri
# --[no-]suggestions - Suggest alternates when gems are not found
gem: --no-ri --no-rdoc --no-document --suggestions
# The paths in which to look for gems
@leesheppard
leesheppard / Coding Exercise websites
Last active August 9, 2019 06:28
Coding Exercise websites
https://www.hackerrank.com
https://exercism.io
https://www.codewars.com
https://devskiller.com/coding-tests-skill/ruby-on-rails
http://rubykoans.com
@leesheppard
leesheppard / Alphasights_technical_challenge.md
Created March 15, 2019 12:30 — forked from tadast/Alphasights_technical_challenge.md
A technical challenge we give to our Ruby on Rails applicants in order to evaluate their coding proficiency. Job description: http://www.alphasights.com/positions/ruby-developer-london or http://www.alphasights.com/positions/ruby-developer-new-york

Alphasights Technical Challenge

Using Ruby on Rails we would like you to create a simple expert search tool. The application should fulfill the requirements below. The source code must be placed in a public repo on GitHub. The application should be deployable on Heroku.

  • I enter a name and a personal website address and a member is created.
  • When a member is created, all the heading (h1-h3) values are pulled in from the website to that members profile.
  • The website url is shortened (e.g. using http://goo.gl)
  • After the member has been added, I can define their friendships with other existing members. Friendships are bi-directional i.e. If David is a friend of Oliver, Oliver is always a friend of David as well.
  • The interface should list all members with their name, short url and the number of friends e.g. Alan http://goo.gl/3io1P (3)
@leesheppard
leesheppard / Online Integrated Development Environments (IDE)
Last active March 15, 2019 12:59
Online Integrated Development Environments (IDE)
Full Environments
https://stackblitz.com
https://aws.amazon.com/cloud9
Frontend Development Environments
https://codepen.io
https://codesandbox.io
@leesheppard
leesheppard / Engineering blogs for Developers
Created March 20, 2019 00:56
Engineering blogs for Developers
https://code.qantas.com/
https://engineering.linkedin.com/