This file contains hidden or 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
#!/usr/bin/env bash | |
# Given a directory containing a Go module, converts it to a | |
# package in the format required to be hosted on standard HTTP server | |
#!/bin/bash | |
if [ $# -ne 6 ] | |
then | |
echo "Usage: $0 <source_directory> <output_directory> <slug> <package> <version> <S3_bucket_name" | |
echo "Eg: $0 my_code_pkg/ output_dir example.com mymodule \"1.0.0\" my-bucket" | |
exit 1 | |
fi |
This file contains hidden or 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 | |
# ====================================================================================================== | |
#Software packages installed using apt-get | |
apt_packages="terminator python2.7 python-pip wget curl vim vim-gnome vagrant build-essential krusader kdiff3" | |
# linux-image-extra-$(uname -r) linux-image-extra-virtual google-chrome-stable" # docker-engine" | |
#Uncomment the below line to install Virtualbox | |
vbox_images="virtualbox vde2 virtualbox-guest-additions-iso" | |
This file contains hidden or 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
/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/bin/java -Dmaven.multiModuleProjectDirectory=/home/dieter/data/sandbox/turfsport/turfsport-main/development/microservices/feeds/betgenius-splittermapper-node/feeds-bg-splitmap-main -Dmaven.home=/usr/share/java/maven -Dclassworlds.conf=/usr/share/java/maven/bin/m2.conf -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/dieter/idea-IC-163.11103.6/bin -Dfile.encoding=UTF-8 -classpath /usr/share/java/maven/boot/plexus-classworlds-2.5.2.jar:/home/dieter/idea-IC-163.11103.6/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.3.3 verify -P nexus | |
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for co.za.turfsport:feeds-bg-splitmap-main:jar:4.8.0-RELEASE | |
[WARNING] 'profiles.profile[create-release-version].plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.codehaus.mojo:versions-maven-plugin @ c |
This file contains hidden or 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
package co.za.turfsport.feeds.betgenius.splittermapper.MyTests; | |
import co.za.turfsport.feeds.betgenius.splittermapper.IntegrationTestCategory; | |
import io.fabric8.kubernetes.client.KubernetesClient; | |
import org.jboss.arquillian.junit.Arquillian; | |
import org.jboss.arquillian.test.api.ArquillianResource; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.junit.experimental.categories.Category; |
This file contains hidden or 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
#!/usr/bin/sh | |
if [[ $# -eq 0 ]]; then | |
echo "Usage: $0 <backup_dir>" | |
exit | |
fi | |
destination=$1 | |
if ! type "pv" > /dev/null; then | |
echo 'pv' command not found on your system, install it to get a nice progress indicator... | |
else |
This file contains hidden or 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
#Once this is deployed, you need to run: | |
#kubectl exec -ti letsencrypt-595800129-3v7qw ./fetch_certs.sh | |
#and then | |
#kubectl exec -ti letsencrypt-595800129-3v7qw ./save_certs.sh | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: letsencrypt | |
labels: | |
app: letsencrypt |