Skip to content

Instantly share code, notes, and snippets.

View wassup-'s full-sized avatar

Tom Knapen wassup-

View GitHub Profile
@wassup-
wassup- / ha_stats_fix_mysql.py
Last active December 25, 2022 09:33
Home Assistant Stats Fix using MySQL Connector (based on https://gist.github.com/rklomp/231c5cb0c7780019d544f77edc6878e5)
#!/usr/bin/env python3
import argparse
import sys
import mysql.connector
def main(arguments):
parser = argparse.ArgumentParser()
parser.add_argument(
@wassup-
wassup- / create-vpn-client.sh
Created May 6, 2022 08:11
Create a new WireGuard VPN client
#!/usr/bin/env bash
# usage: create-vpn-client name
#
# stores client configurations in /etc/wireguard/clients/
# will expose server LAN to clients
#
# assumes the wireguard configuration directory is /etc/wireguard/
# assumed the wireguard interface is wg0
# assumes qrencode is installed

Keybase proof

I hereby claim:

  • I am wassup- on github.
  • I am knapen (https://keybase.io/knapen) on keybase.
  • I have a public key ASDMzXu4zLDA-XXv8pqjgGagD4MO341EvXBUkMqS9ogGzwo

To claim this, I am signing this object: