Skip to content

Instantly share code, notes, and snippets.

View TechCiel's full-sized avatar

Ciel TechCiel

View GitHub Profile
#!/usr/bin/env python3
import os
import logging as log
from serial import Serial
from evdev import InputDevice, ecodes, KeyEvent
def tv_com(cmd):
cmd = (cmd.encode('utf-8')+b' '*8)[:8]+b'\r'
@TechCiel
TechCiel / recert.sh
Created December 21, 2023 02:13
Propagate Renewed Certificate between Servers
#!/bin/bash
# ./recert.sh [host] [certificate file] [private key file] [reload command]
tmp=$(mktemp)
log () {
echo $(date) "$@"
if [[ "$@" == *! ]]; then
rm $tmp
exit

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: