This file contains 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 | |
set -euo pipefail | |
IFS=$'\n\t' | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
# 2018-01-30T11:53:46.000Z | |
RESTORE_BEFORE="$1" | |
BUCKET="k8s.example.com" | |
PREFIX="eu-central-1.k8s.example.com" |
This file contains 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 | |
set -euo pipefail | |
IFS=$'\n\t' | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
php "$DIR/console.php" "$@" |
This file contains 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
kind: Service | |
apiVersion: v1 | |
metadata: | |
namespace: kube-system | |
name: default-http-backend | |
labels: | |
spec: | |
ports: | |
- port: 80 | |
targetPort: http |
This file contains 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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_INFLUXDB-DATASOURCE", | |
"label": "influxdb-datasource", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "influxdb", | |
"pluginName": "InfluxDB" | |
} |
This file contains 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
$ sudo apt-get install lirc | |
$ sudo nano /etc/modules | |
lirc_dev | |
lirc_rpi gpio_out_pin=22 | |
$ sudo nano /etc/lirc/hardware.conf | |
LIRCD_ARGS="--uinput" | |
LOAD_MODULES=true | |
DRIVER="default" | |
DEVICE="/dev/lirc0" | |
MODULES="lirc_rpi" |
This file contains 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 | |
set -euo pipefail | |
IFS=$'\n\t' | |
if [[ $# -ne 2 && $# -ne 3 ]]; then | |
echo "Usage: $0 namespace pattern [container]" | |
exit 1 | |
fi | |
NS_PATTERN="$1" |
This file contains 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
curl 'https://ip-ranges.amazonaws.com/ip-ranges.json' | jq -r '.prefixes[] | select(.service=="AMAZON") | select(.region=="eu-central-1") | .ip_prefix' |
This file contains 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
IMAGE = mangoweb/golang-build | |
TAG = latest | |
all: build publish | |
build: Dockerfile | |
docker build -t "${IMAGE}" . | |
publish: Dockerfile | |
docker tag "${IMAGE}" "${IMAGE}:${TAG}" |
This file contains 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
MOUNT_IN_JENKINS="/var/jenkins_home/workspace" | |
CONTAINER_ID="$(docker ps --filter "volume=$MOUNT_IN_JENKINS" --format '{{.ID}}')" | |
HOST_DIR="$(docker inspect "$CONTAINER_ID" | jq --raw-output '.[0].Mounts[] | select(.Destination=="'"$MOUNT_IN_JENKINS"'").Source')" |
