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
| # Raspberry Pi Pico Probe: idVendor=2e8a, idProduct=0004 | |
| ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0004", MODE="664", GROUP="plugdev" |
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
| // Quick and Dirty PWM tool in Golang to pulse Pin 18 (PWM) on Raspberry PI at a set frequency, and duty cycle | |
| // Usage: ./pwm <frequency> <duty> <period> | |
| // e.g. For 32kHz with a duty cycle of 1/4: | |
| // sudo ./pwm 32000 1 4 | |
| // Must run as root for now, I haven't had time to write a udev rule for /dev/mem | |
| package main | |
| import ( | |
| "fmt" | |
| "log" |
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
| apiVersion: cert-manager.io/v1alpha2 | |
| kind: ClusterIssuer | |
| metadata: | |
| name: vault-issuer | |
| namespace: cert-manager | |
| spec: | |
| vault: | |
| server: https://<vault address>:8200 | |
| caBundle: <ca bundle> | |
| path: pki/sign/<role> |
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 | |
| # Batch hue rotation script using ImageMagick's 'convert' | |
| INPUT_DIR=$(pwd)/input | |
| OUTPUT_DIR=$(pwd)/output-$1 | |
| if [ -z "$1" ] || [ "$1" -lt 100 ] || [ "$1" -gt 300 ]; | |
| then | |
| echo "Specify a hue rotation value between 100 and 300. 100 is 'no rotation' and 300 is 'full rotation'" | |
| echo "Usage: $0 <value>" |
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
| # WARNING: This is a simple example with no security for production, don't run Minio without TLS | |
| # Using Docker 17.05.0-ce, install the plugin | |
| $ docker plugin install minio/minfs:edge | |
| # Start Minio instance on storage server, the following will mount minio's data storage into /mnt/data on the host. | |
| $ docker run -p 9000:9000 --name minio1 -v /mnt/data:/data -v /mnt/config:/root/.minio minio/minio server /data | |
| # Create a minfs volume on the client that will mount the Minio bucket as a volume to its Docker containers. | |
| $ docker volume create -d minio/minfs:edge --name <volume name> -o endpoint=http://<minio endpoint>:9000 -o access-key=<access key> -o secret-key=<secret key> -o bucket=<new bucket name> -o opts=cache=/tmp/teststore |
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 | |
| # Example: otpauth://Example:user%40example.com?secret=32W3536K725L5UAN&issuer=Example | |
| qrencode -t UTF8 "otpauth://totp/<issuer>:<name>%40<location>?secret=<BASE32 ENCODED SECRET>&issuer=<issuer>" |