Skip to content

Instantly share code, notes, and snippets.

@mwthink
mwthink / bitcoind.yaml
Created September 1, 2023 16:41
bitcoind on Kubernetes
apiVersion: v1
kind: Secret
metadata:
name: bitcoind-rpc
namespace: default
labels:
app: bitcoind
stringData:
# You probably wanna change this
username: btcrpc
@mwthink
mwthink / README.md
Last active December 8, 2021 07:26
synology + k8s + cert-manager

I like my Synology NAS. I do not like its LetsEncrypt integration. I like to issue my certs with cert-manager running on Kubernetes.

To accomplish this, we will create some Kubernetes resources that:

  • Create/maintain the certificate as a Secret
  • Create a robot account with permissions to read the Secret

Then we will configure a script that runs weekly on the NAS. This script will download the certificate via curl, load it into DSM and restart the web server.

This was written for DSM 7. If you are using DSM 6 this will not work as certificates are managed differently.

@mwthink
mwthink / repo-cleaner.sh
Last active July 28, 2020 00:12
Github Repo Deletion Script
#!/bin/bash
# Use this to delete github repos easily
# Be extremely careful, you can make big mistakes easily with this!
# https://github.com/settings/tokens
ACCESS_TOKEN=""
# List repos
GIT_REPOS=$(curl -s \
-H "Authorization: token ${ACCESS_TOKEN}" \
apiVersion: apps/v1
kind: Deployment
metadata:
name: plex
spec:
replicas: 1
selector:
matchLabels:
app: plex
template:

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: