Skip to content

Instantly share code, notes, and snippets.

@dejl
dejl / jdk_download.sh
Last active April 21, 2016 01:04 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
@dejl
dejl / test.rb
Created September 6, 2012 05:14
#!/usr/bin/env ruby -wKU
require 'yaml'
class Test
def initialize name
@name = name
File.dirname __FILE__