Skip to content

Instantly share code, notes, and snippets.

@scrivy
scrivy / nightscout.bu
Last active January 3, 2024 07:37
Nightscout butane configuration for Fedora CoreOS
variant: fcos
version: 1.5.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-rsa CHANGEME
storage:
files:
- path: /etc/containers/systemd/mongodb.container
@scrivy
scrivy / deploy.sh
Last active January 3, 2024 07:38
Nightscout butane configuration for Fedora CoreOS with IFTTT and Dexcom modules enabled
#!/bin/bash
IGNITION_CONFIG="/srv/coreos/nightscout.ign"
IMAGE="/srv/coreos/fedora-coreos-38.qcow2"
VM_NAME="nightscout"
VCPUS="4"
RAM_MB="4000"
STREAM="stable"
DISK_GB="12"
@scrivy
scrivy / coreos.bu
Last active December 26, 2023 03:32
fedora coreos butane config for running a systemd managed ipv6 podman network and container generated by quadlet
variant: fcos
version: 1.5.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-rsa aoeu= aoeu@aoeu.aoeu
storage:
files:
# use the ipv6 capable podman backend netavark
@scrivy
scrivy / create cert.txt
Created July 17, 2016 07:17
self signed https localhost proxy with golang
copied from https://devcenter.heroku.com/articles/ssl-certificate-self
install go and openssl
mac os x: brew install go openssl
Generate private key and certificate signing request
openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
openssl rsa -passin pass:x -in server.pass.key -out server.key