Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
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
#!/bin/bash | |
set -eu | |
set -o pipefail | |
dns_server=172.24.100.250 | |
client_ip=$1 | |
psk=$(wg genpsk) | |
client_privkey=$(wg genkey) | |
client_pubkey=$(wg pubkey <<<"$client_privkey") |
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
{ | |
"Name": "Azure k8s Cloud Provider", | |
"IsCustom": true, | |
"Description": "Everything needed by the k8s 1.11 Azure cloud provider (not including ACR, addons, etc)", | |
"Actions": [ | |
"Microsoft.Compute/disks/delete", | |
"Microsoft.Compute/disks/read", | |
"Microsoft.Compute/disks/write", | |
"Microsoft.Compute/virtualMachineScaleSets/manualUpgrade/action", | |
"Microsoft.Compute/virtualMachineScaleSets/read", |
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
apiVersion: extensions/v1beta1 | |
kind: PodSecurityPolicy | |
metadata: | |
name: restricted | |
annotations: | |
seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default' | |
apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default' | |
seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default' | |
apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default' | |
spec: |
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
global: | |
evaluation_interval: 15s | |
rule_files: | |
- smokeping.rules | |
scrape_configs: | |
- job_name: 'blackbox_icmp' | |
metrics_path: /probe | |
params: | |
module: [icmp] | |
scrape_interval: 1s |
This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
- Lilly Ryan @attacus_au
This workshop is distributed under a CC BY-SA 4.0 license.
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 -e | |
# | |
# Written by Thomas Kerpe <toke@toke.de> - Public Domain | |
# | |
# Small helper script for usage with ansible-vault and ansible-playbook | |
# together with [pass](https://www.passwordstore.org/) | |
# | |
# Say you have stored the vault-password for the current ansible playbook in pass |
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
@Grab(group='org.eclipse.paho', module='mqtt-client', version='0.4.0') | |
import org.eclipse.paho.client.mqttv3.* | |
import org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence | |
String tmpDir = System.getProperty("java.io.tmpdir") | |
MqttDefaultFilePersistence dataStore = new MqttDefaultFilePersistence("${tmpDir}/mqtt") | |
//org | |
String org = 'myOrg' |
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
#!/bin/bash | |
function usage() { | |
echo "usage: $0 <volume (0-100)> <say args...>" | |
echo | |
echo "Unmutes and sets the system volume to volume%, passing the remaining" | |
echo "arguments to the OSX \`say' command, restoring volume / mute setting" | |
echo "to previous values after the speech has completed." | |
exit 1 | |
} |
NewerOlder