This file contains 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
$url = 'http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-windows-x64.exe' | |
$filename = $url.Substring($url.LastIndexOf("/") + 1); | |
$client = new-object System.Net.WebClient; | |
$client.Headers.Add("Cookie", "oraclelicense=accept-securebackup-cookie"); | |
$client.DownloadFile( $url, $filename ); | |
$result = (Start-Process -FilePath $filename -ArgumentList "/quiet /qn /norestart /l* jdk6_install.log" -Wait -Passthru).ExitCode; | |
echo $result; | |
Get-WmiObject -Class Win32_Product -Filter "Name LIKE '%java%SE Development Kit 6%'"; | |
#IdentifyingNumber : {64A3A4F4-B792-11D6-A78A-00B0D0160450} |
This file contains 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
$url = 'http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-windows-x64.exe' | |
$filename = $url.Substring($url.LastIndexOf("/") + 1); | |
$client = new-object System.Net.WebClient; | |
$client.Headers.Add("Cookie", "oraclelicense=accept-securebackup-cookie"); | |
$client.DownloadFile( $url, $filename ); | |
$result = (Start-Process -FilePath $filename -ArgumentList "/quiet /qn /norestart /l* jdk7_install.log" -Wait -Passthru).ExitCode; | |
echo $result; | |
Get-WmiObject -Class Win32_Product -Filter "Name LIKE '%java%SE Development Kit 7%'"; | |
# IdentifyingNumber : {64A3A4F4-B792-11D6-A78A-00B0D0170600} |
This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<AutomatedInstallation langpack="eng"> | |
<com.izforge.izpack.panels.HTMLLicencePanel id="HTMLLicencePanel"/> | |
<com.izforge.izpack.panels.TargetPanel id="DirectoryPanel"> | |
<installpath>C:\Program Files\RedHat</installpath> | |
</com.izforge.izpack.panels.TargetPanel> | |
<com.izforge.izpack.panels.TreePacksPanel id="TreePacksPanel"> | |
<pack index="0" name="Red Hat JBoss Enterprise Application Platform" selected="true"/> | |
<pack index="1" name="AppClient" selected="true"/> | |
<pack index="2" name="Bin" selected="true"/> |
This file contains 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
var XMLUtil = function () { | |
// nothing | |
} | |
XMLUtil.parsePlistDict = function (dictNode) { | |
var result = {}, keyNodes = dictNode.getElementsByTagName("key"); | |
for (var i = 0; i < keyNodes.length; i++){ | |
//var key = keyNodes[i].firstChild.nodeValue; | |
var key = keyNodes[i].textContent; | |
var val = XMLUtil.parsePlistValue(keyNodes[i].nextElementSibling); |
This file contains 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
#!/bin/bash | |
sudo yum -y install curl | |
sudo amazon-linux-extras install -y docker | |
sudo service docker start | |
sudo usermod -a -G docker ec2-user | |
sudo chkconfig docker on | |
sudo curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
cd /usr/local/ | |
sudo wget https://storage.googleapis.com/golang/go1.11.4.linux-amd64.tar.gz |