Skip to content

Instantly share code, notes, and snippets.

View wagnermarques's full-sized avatar

Wagner Marques wagnermarques

View GitHub Profile
@wagnermarques
wagnermarques / install-java-8.sh
Created January 27, 2017 14:41 — forked from voor/install-java-8.sh
Install Oracle Java 8 RPM
## You need to sudo this script, as it will install RPMs and run alternatives.
## You must accept the Oracle Binary Code License Agreement for Java SE to download this software.
## Read more here: http://www.oracle.com/technetwork/java/javase/terms/license/index.html
curl -L -H "Cookie: gpw_e24=xxx; oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-x64.rpm -o /tmp/jdk-8-linux-x64.rpm && \
yum install -y /tmp/jdk-8-linux-x64.rpm && \
rm -rf /tmp/jdk-8-linux-x64.rpm
## OpenJDK started using 18000XX as their priority, so kick it up to 2 million to surpass them.
## java ##
@wagnermarques
wagnermarques / oracledownload
Created January 27, 2017 15:05 — forked from hgomez/oracledownload
Oracle JVM download using curl/wget
# Downloading Oracle JVM without browser
Oracle requires you to accept its licence agreement before downloading its JVM.
It's a pain for those of us who do automation, native packages, Jenkins JVM deployment on slave...
I used Firefox and Firebug to sniff network exchanges.
## HTTP Request :
GET /otn-pub/java/jdk/6u39-b04/jdk-6u39-linux-i586.bin?AuthParam=1359814101_9685f919f8b3113a89574ec4570d47b2 HTTP/1.1