Skip to content

Instantly share code, notes, and snippets.

Avatar

Carl carlcantprogram

View GitHub Profile
@carlcantprogram
carlcantprogram / setup-for-hyperledger.sh
Last active Jul 14, 2019
Hyperledger Dependencies AWS Linux2
View setup-for-hyperledger.sh
#!/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
@carlcantprogram
carlcantprogram / plistParser
Created Oct 18, 2014
Apple pList parser in javascript
View plistParser
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);
@carlcantprogram
carlcantprogram / EAP_INSTALL
Created Oct 15, 2014
JBoss EAP 6.3 Answer File
View EAP_INSTALL
<?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"/>
@carlcantprogram
carlcantprogram / gist:42fbecb399af7e8ce4c0
Last active Jun 29, 2018
Oracle JDK7 Download Install powershell
View gist:42fbecb399af7e8ce4c0
$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}
@carlcantprogram
carlcantprogram / gist:5ef2365c10bc0176df21
Last active Aug 29, 2015
Oracle JDK6 Download Install Powershell
View gist:5ef2365c10bc0176df21
$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}