Skip to content

Instantly share code, notes, and snippets.

View thoughtchad's full-sized avatar

Chad Lancour thoughtchad

View GitHub Profile
@thoughtchad
thoughtchad / workspace.sh
Last active March 23, 2017 16:34 — forked from scottsb/casesafe.sh
Create and manage a case-sensitive disk-image on macOS (OS X).
#!/bin/bash
# take ~/bin && curl https://gist.githubusercontent.com/thoughtchad/6b6f198fcc23ac219306b61ad03c29e2/raw/beb33c03078d9594386d611b31fc5a7209b232cb/workspace.sh > workspace && chmod +x workspace
# ---------------------------------------------------------
# Customizable Settings
# ---------------------------------------------------------
MOUNT_POINT="${CASE_SAFE_MOUNT_POINT:-${HOME}/dev}"
VOLUME_PATH="${CASE_SAFE_VOLUME_PATH:-${HOME}/.workspace-dev.dmg.sparseimage}"
VOLUME_NAME="${CASE_SAFE_VOLUME_NAME:-dev}"
@thoughtchad
thoughtchad / git_clone_shallow.txt
Last active November 7, 2016 20:04
git clone shallow interact with branches
$ git clone --depth 1 https://github.com/dogescript/dogescript.git
$ git remote set-branches origin 'remote_branch_name'
$ git fetch --depth 1 origin remote_branch_name
$ git checkout remote_branch_name
@thoughtchad
thoughtchad / 0_reuse_code.js
Created November 7, 2016 20:02
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
@thoughtchad
thoughtchad / cloudSettings
Last active November 21, 2016 19:05
Visual Studio Code Sync Settings GIST
{"lastUpload":"2016-11-21T19:05:14.751Z"}
@thoughtchad
thoughtchad / jdk8_jruby_rails_startup.txt
Last active August 29, 2015 13:57
java 8, jruby 1.7.11, rails 4, startup times, jvm options
JAVA 8
export JRUBY_OPTS=--2.0
export JAVA_OPTS=
time bundle exec rake environment
157.76s user 13.05s system 270% cpu 1:03.15 total
export JRUBY_OPTS=--2.0
export JAVA_OPTS="-XX:TieredStopAtLevel=1 -XX:CICompilerCount=3 -Djruby.jit.threshold=500 -XX:+TieredCompilation -noverify -XX:+UseG1GC -XX:ReservedCodeCacheSize=256m -Xss2048k -Xms2048m -Xmx2048m"
time bundle exec rake environment
43.18s user 8.15s system 132% cpu 38.839 total