This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -L -b "oraclelicense=a" http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jre-8u101-linux-i586.rpm -O |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| autoload -U add-zsh-hook | |
| auto-sdk-switch() { | |
| if [[ -f application.properties || -f gradle.properties ]]; then | |
| sdk switch | |
| fi | |
| } | |
| add-zsh-hook chpwd auto-sdk-switch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env groovy | |
| @Grab(group = 'org.codehaus.groovy.modules.http-builder', module = 'http-builder', version = '0.5.2') | |
| import groovyx.net.http.HTTPBuilder | |
| bgg = new HTTPBuilder('http://www.boardgamegeek.com/xmlapi2/collection') | |
| dontEverBring = [3320, 2448, 1923, 5425, 1298, 181, 320, 2407, 5258, 3385, 11182, 1515] | |
| mine = downloadGameList(bgg, 'atreides322').findAll { !dontEverBring.contains(it.id) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Based on http://blog.mypapit.net/2006/02/how-to-use-apt-get-behind-proxy-server-ubuntudebian.html#comment-2435 | |
| # Adapted for zsh | |
| function proxy(){ | |
| echo -n "Password: " | |
| read -s password | |
| export http_proxy="http://username:[email protected]:8080" | |
| echo -e "\nProxy environment variable set." | |
| } |