Skip to content

Instantly share code, notes, and snippets.

@headius
headius / pickjdk.sh
Last active August 30, 2015 13:15 — forked from nicksieger/pickjdk.sh
JDK picker for OS X.
#!/bin/bash
#
# Provides a function that allows you to choose a JDK. Just set the environment
# variable JDKS_ROOT to the directory containing multiple versions of the JDK
# and the function will prompt you to select one. JAVA_HOME and PATH will be cleaned
# up and set appropriately.
# Usage:
# Include in .profile or .bashrc or source at login to get 'pickjdk' command.
# 'pickjdk' alone to bring up a menu of installed JDKs on OS X. Select one.
@bigcurl
bigcurl / app.rb
Created April 8, 2009 14:35
Bringing up a Sinatra app. Thanks to Ola Bini for the split script.
require 'rubygems'
require 'sinatra'
get '/' do
"Hello from Sinatra running on Java!"
end