Skip to content

Instantly share code, notes, and snippets.

Marcus Robinson marrobi

Block or report user

Report or block marrobi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View solr-installer-v01.sh
#!/usr/bin/env bash
installAndStartSolr() {
echo "Adding Solr's Upstart configuration"
useradd -r solruser
chown -R solruser:solruser /usr/hdp/current/solr/
if [ -z "$ZKHOSTS" ]; then
echo "[ERROR] ZKHOSTS is empty. Exiting..."
exit 1
View catalina opencga.xml
<Context>
<Resources>
<PostResources className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/WEB-INF/classes" base="${OPENCGA_INSTALLATION_DIR}/conf/hadoop" />
</Resources>
</Context>
@marrobi
marrobi / script.sh
Last active Dec 2, 2018
OpenCGA_InstallOpenCGA
View script.sh
RELEASE_URL=${1}
HD_INSIGHTS_SSH_DNS=${2}
HD_INSIGHTS_SSH_USER=${3}
HD_INSIGHTS_SSH_PASS=${4}
#setting up opencga VM
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install software-properties-common -y
@marrobi
marrobi / azuredeploy.json
Created Aug 15, 2017
CF to Arm Template
View azuredeploy.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"VmSize": {
"type": "string",
"defaultValue": "Standard_A1",
"allowedValues": [
"Standard_A1",
@marrobi
marrobi / azdeploy.sh
Created Aug 15, 2017
az group deployment create
View azdeploy.sh
az group deployment create \
--resource-group tmpCFtoARM \
--template-file azuredeploy.json \
--parameters @azuredeploy.parameters.json
View azuredeploy.parameters.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"SSHPublicKey": {
"reference": {
"keyVault": {
"id": "/subscriptions/802df257-6032-4b50-884c-XXXXX/resourceGroups/KeyVault/providers/Microsoft.KeyVault/vaults/MarcusKeyVaultWE"
},
"secretName": "MarcusSSHPublicKey"
@marrobi
marrobi / publicdns.json
Created Aug 11, 2017
CloudFormation Public DNS Output
View publicdns.json
"PublicDNS": {
"Description": "Public DNSName of the newly created EC2 instance",
"Value": { "Fn::GetAtt": [ "EC2Instance", "PublicDnsName" ] }
},
View fqdnoutput.json
"outputs": {
"PublicDNS ": {
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',variables('VMNicPIPName'))).dnsSettings.fqdn]",
"type": "string"
}
}
}
@marrobi
marrobi / cfpublicip.json
Created Aug 11, 2017
CloudFormation Public IP Output
View cfpublicip.json
"PublicIP": {
"Description": "Public IP address of the newly created EC2 instance",
"Value": { "Fn::GetAtt": [ "EC2Instance", "PublicIp" ] }
}
}
View networkprofile.json
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces', 'VMNic')]"
}
]
}
You can’t perform that action at this time.