Skip to content

Instantly share code, notes, and snippets.

View shreddedbacon's full-sized avatar

Ben Jackson shreddedbacon

View GitHub Profile
@shreddedbacon
shreddedbacon / README.md
Last active December 12, 2023 05:44
set up queues

docker-compose -p lagoon exec broker sh

@shreddedbacon
shreddedbacon / lagoon-build-shxxsg.log
Created August 8, 2022 00:53
Reduced verbosity build log
========================================
Logs on pod lagoon-build-shxxsg
========================================
Agent pid 28
Identity added: /home/.ssh/key (/home/.ssh/key)
##############################################
+ set -eo pipefail
+ set -o noglob
+ set +x
build-deploy-tool 0.13.6 go version go1.18.4 linux/amd64 (built: 2022-07-20T03:01:49Z / 45220a0)
@shreddedbacon
shreddedbacon / hits.py
Created December 2, 2019 01:54
Light visualisation
#!/usr/bin/env python3
# NeoPixel library strandtest example
# Author: Chris Davis (cdchris12@gmail.com)
#
# Showcases various animations on a strip of NeoPixels.
import time
from rpi_ws281x import Adafruit_NeoPixel, Color
# from collections import OrderedDict
import argparse
@shreddedbacon
shreddedbacon / migrate-route.sh
Created October 24, 2019 22:17
A script to migrate a route between namespaces
#!/bin/bash
# use oc
OC=oc
usage() {
echo "Usage: ./migrate-route.sh -s nginx-ns1 -d nginx-ns2 -r my.route.example"
echo "Options:"
echo " -s <SOURCE_NAMESPACE> #required"
echo " -d <DEST_NAMESPACE> #required"
@shreddedbacon
shreddedbacon / README.md
Created August 10, 2019 06:26 — forked from shawnsi/README.md
Ansible Vault Environment Variable

Ansible Vault Environment Variable

Per http://docs.ansible.com/ansible/playbooks_vault.html you can set an environment variable to use a password file for vault access. We can use this to create an environment variable to hold the password.

Password Script

Copy vault-env from this project to ~/bin. Then add this to your ~/.bashrc:

export ANSIBLE_VAULT_PASSWORD_FILE=~/bin/vault-env
@shreddedbacon
shreddedbacon / docker-compose.yml
Last active August 28, 2023 09:49
Omada controller with nginx reverse proxy
version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx-proxy
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./omada.crt:/etc/ssl/certs/omada.crt
- ./omada.key:/etc/ssl/certs/omada.key
restart: always
@shreddedbacon
shreddedbacon / synology-network.md
Created February 10, 2019 05:26
add a vlan tag to bond on synology no restart
cat /etc/sysconfig/network-scripts/ifcfg-bond0.100 > /etc/sysconfig/network-scripts/ifcfg-bond0.200
vi /etc/sysconfig/network-scripts/ifcfg-bond0.200
ip link add link bond0 name bond0.200 type vlan id 200
ip link set bond0.200 up
@shreddedbacon
shreddedbacon / etc-nut-upsstats-single.html
Last active January 20, 2019 08:45
NUT UPS Better Visualisations
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Starter Template for Bootstrap</title>
<!-- Bootstrap core CSS -->
@shreddedbacon
shreddedbacon / cmdlist.md
Created December 10, 2018 11:31
decrypt fixed key backups from shield
go get golang.org/x/crypto/pbkdf2
go run pbkdf.go
#OUTPUT---
KEY=...
IV=...
#---OUTPUT
FILEIN=2018-12-10-094956-65761430-a301-4203-b3b9-3cff284dac86
FILEOUT=094956-65761430-a301-4203-b3b9-3cff284dac86
openssl enc -d -aes-256-ctr -in $FILEIN -nosalt -p -K $KEY -iv $IV -out $FILEOUT.bz2
@shreddedbacon
shreddedbacon / keybase.md
Created November 28, 2018 08:33
keybase.md

Keybase proof

I hereby claim:

  • I am shreddedbacon on github.
  • I am shreddedbacon (https://keybase.io/shreddedbacon) on keybase.
  • I have a public key ASCko2Ann_oJeH0twctpyUOXqRxeUTzwePXPwCAXezWW5Ao

To claim this, I am signing this object: