Skip to content

Instantly share code, notes, and snippets.

View jspiewak's full-sized avatar

Joshua Spiewak jspiewak

  • Posit
  • Boston, MA
View GitHub Profile
@andystanton
andystanton / Start up local Docker Machine on OSX automatically.md
Last active April 3, 2024 00:50
Start up local Docker Machine on OSX automatically.

Notice

This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine to administer the local Docker engine.

Requirements

  • Docker Machine + Docker
  • curl
  • A Virtualbox-driven Docker Machine called "default" docker-machine create --driver virtualbox default (this is the default with Docker toolkit).
@ishults
ishults / Grails_Groovy_Versions.txt
Last active June 14, 2024 08:39
List of Groovy versions for Grails
// Compiled by Igor Shults
// Last Updated: July 23, 2020
GRAILS GROOVY SOURCE
4.1.0 2.5.14 https://github.com/grails/grails-core/blob/v4.1.0/gradle.properties
4.0.4 2.5.6
4.0.3 2.5.6
4.0.2 2.5.6
4.0.1 2.5.6
4.0.0 2.5.6 https://github.com/grails/grails-core/blob/v4.0.0/build.gradle
@mschuerig
mschuerig / rake.sh
Created June 7, 2012 22:30
Better Bash Completion for Rake
case "$COMP_WORDBREAKS" in
*:*) : great ;;
*) COMP_WORDBREAKS="$COMP_WORDBREAKS:"
esac
__rakefile_path() {
(
while [ "$PWD" != / ]; do
if [ -f "Rakefile" ]; then
@christierney
christierney / gist:2286780
Created April 2, 2012 19:54
Generate an embedded JSON list with arbitrary transformations using JsonBuilder
import groovy.json.*
// A list of things we want to include in our json output.
// Here it's a list of maps, but this could be a list of beans.
things = [[id:2, name:'asdf'], [id:3, name:'foo'], [id:5, name:'bar']]
// JsonBuilder is pretty cool!
def json = new JsonBuilder()
json {