I hereby claim:
- I am willis7 on github.
- I am willis7 (https://keybase.io/willis7) on keybase.
- I have a public key whose fingerprint is 7599 8310 8F23 EC25 7C04 E092 F6FE BE4A 81C7 CC30
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| FROM openjdk:8-jre-alpine | |
| VOLUME /tmp | |
| ADD build/libs/sdp-spring-boot*.jar app.jar | |
| ADD .env .env | |
| ENTRYPOINT [ "sh", "-c", "source .env && java -jar app.jar" ] |
| RESOURCE_GROUP_NAME=devops_tfstate | |
| STORAGE_ACCOUNT_NAME=devops_tfstate$RANDOM | |
| CONTAINER_NAME=github_tfstate | |
| # Create resource group | |
| az group create --name $RESOURCE_GROUP_NAME --location southuk | |
| # Create storage account | |
| az storage account create --resource-group $RESOURCE_GROUP_NAME --name $STORAGE_ACCOUNT_NAME --sku Standard_LRS --encryption-services blob |
| for repo in $(cat repos.txt); | |
| do git clone $repo --mirror; | |
| slug=$(echo $repo | sed -n 's/.*\/\(.*\).git/\1/p'); | |
| cd $slug.git; | |
| git remote add your_remote [email protected]:your_organization/your_project/$slug.git; | |
| git push your_remote --mirror; | |
| cd -; | |
| done |
| #!/usr/bin/env perl | |
| # Finds duplicate adjacent words. | |
| use strict ; | |
| my $DupCount = 0 ; | |
| if (!@ARGV) { | |
| print "usage: dups <file> ...\n" ; |
| #!/bin/bash | |
| irregulars="awoken|\ | |
| been|born|beat|\ | |
| become|begun|bent|\ | |
| beset|bet|bid|\ | |
| bidden|bound|bitten|\ | |
| bled|blown|broken|\ | |
| bred|brought|broadcast|\ | |
| built|burnt|burst|\ |
| #!/bin/bash | |
| weasels="many|various|very|fairly|several|extremely\ | |
| |exceedingly|quite|remarkably|few|surprisingly\ | |
| |mostly|largely|huge|tiny|((are|is) a number)\ | |
| |excellent|interestingly|significantly\ | |
| |substantially|clearly|vast|relatively|completely" | |
| wordfile="" | |
| #!/bin/bash | |
| set -euo pipefail | |
| cf login -a "$CF_API" -u "$CF_USER" -p "$CF_PASSWORD" -o "$CF_ORG" -s "$CF_SPACE" | |
| APP_NAME_TMP="${APP_NAME}-venerable" | |
| # Deploy a new application if doesn't exist and do blue-green otherwise | |
| if [[ $(cf app "$APP_NAME" --guid 2>&1 1>/dev/null) == "App $APP_NAME not found" ]]; then | |
| cf push | |
| else |
| import jenkins.model.* | |
| import hudson.plugins.sonar.* | |
| import hudson.tools.* | |
| def inst = Jenkins.getInstance() | |
| def desc = inst.getDescriptor("hudson.plugins.sonar.SonarRunnerInstallation") | |
| def installer = new SonarRunnerInstaller("[sonar runner version]") | |
| def prop = new InstallSourceProperty([installer]) |
| import jenkins.model.* | |
| import hudson.plugins.sonar.* | |
| import hudson.plugins.sonar.model.* | |
| def inst = Jenkins.getInstance() | |
| def desc = inst.getDescriptor("hudson.plugins.sonar.SonarPublisher") | |
| def sinst = new SonarInstallation( | |
| "[name of the sonar installation - I use the host name]", |