Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash -e
#based on: https://stackoverflow.com/a/27332476/2777965
#get highest tag number
VERSION=`git describe --abbrev=0 --tags`
#replace . with space so can split into an array
VERSION_BITS=(${VERSION//./ })
#!/bin/bash
set -e
USERNAME=$1
PROJECTNAME=$2
CII_PROJECT_ID=$3
if [[ -z "${PROJECTNAME}" || -z "${USERNAME}" || -z "${CII_PROJECT_ID}" ]]; then
echo "ProjectName, CII project ID and/or Username should not be empty"
@030
030 / Makefile
Created May 17, 2019 10:01 — forked from h4cc/Makefile
Ubuntu 18.04 Bionic Beaver - Basic packages i usually install
#
# Ubuntu 18.04 (Bionic Beaver)
#
# Basic packages i usually install.
#
# Author: Julius Beckmann <github@h4cc.de>
#
# Upgraded Script from 17.04: https://gist.github.com/h4cc/09b7fe843bb737c8039ac62d831f244e
# Upgraded Script from 16.04: https://gist.github.com/h4cc/fe48ed9d85bfff3008704919062f5c9b
#!/usr/bin/env bash
set -e
readonly ARTIFACT_NAME=$1
formatting() {
echo "Go formatting..."
diff -u <(echo -n) <(gofmt -d ./)
}