Skip to content

Instantly share code, notes, and snippets.

@sephraim
sephraim / docker-pry-rails.md
Created May 7, 2019 20:23 — forked from briankung/docker-pry-rails.md
Using pry-rails with Docker

First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails

gem 'pry-rails', group: :development

Then you'll want to rebuild your Docker container to install the gems

@sephraim
sephraim / install_java.sh
Last active April 15, 2019 20:23
Use Homebrew / jEnv to manage Java 8 and Java 12+
#!/usr/bin/env bash
set -e
# Uninstall Java 9 off the bat, so we can fix our local installation
if brew cask ls --versions "java" &>/dev/null; then
echo "Uninstalling Java"
brew cask uninstall java
fi
# Install jenv, java8 and java9
brew install jenv
brew cask install caskroom/versions/java8
@sephraim
sephraim / 0_reuse_code.js
Created November 10, 2016 21:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console