Skip to content

Instantly share code, notes, and snippets.

View Si-Richards's full-sized avatar

Simon Si-Richards

  • United Kingdom
View GitHub Profile
@Si-Richards
Si-Richards / ovs-cheat.md
Created October 7, 2024 16:30 — forked from djoreilly/ovs-cheat.md
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl list interface vxlan-ac000344
ovs-vsctl --columns=options list interface vxlan-ac000344
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl -f csv --no-heading --columns=_uuid list controller
ovs-vsctl -f csv --no-heading -d bare --columns=other_config list port
@Si-Richards
Si-Richards / ovs-cheat.md
Created October 7, 2024 16:30 — forked from djoreilly/ovs-cheat.md
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl list interface vxlan-ac000344
ovs-vsctl --columns=options list interface vxlan-ac000344
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl -f csv --no-heading --columns=_uuid list controller
ovs-vsctl -f csv --no-heading -d bare --columns=other_config list port
@Si-Richards
Si-Richards / le-sub.example.com-renewal.sh
Created March 2, 2020 14:42 — forked from antillean/le-sub.example.com-renewal.sh
Let's Encrypt renewal script for VSFTPD, mumble-server (and possibly other things)
#!/bin/sh
## Some notes:
## 1. This should be run as root!
## 2. This assumes that /etc/letsencrypt/cli.ini is sensibly specified.
## 3. /usr/local/sbin/le-sub.example.com-renewal.sh is a sensible place to put this.
## 4. A sensible crontab entry for this: 15 2 * * 1 /usr/local/sbin/le-sub.example.com-renewal.sh >> /var/log/le-sub.example.com-renewal.log
exp_limit=15;
le_path='/opt/letsencrypt';
@Si-Richards
Si-Richards / deployment.yml
Created February 7, 2019 11:25
Cachet on Google Cloud
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cachet-status-page
spec:
replicas: 1
template:
metadata:
labels:
app: cachet-status-page