Skip to content

Instantly share code, notes, and snippets.

View gvnnn's full-sized avatar

Gianluca Stella gvnnn

View GitHub Profile
@gvnnn
gvnnn / 80-klipper.rules
Created October 5, 2025 12:03
Restart Klipper when the Ender 3 V2 is plugged in
SUBSYSTEM=="tty", ATTRS{idProduct}=="7523", ATTRS{idVendor}=="1a86", ACTION=="add", RUN+="/usr/bin/systemctl restart klipper.service"
@gvnnn
gvnnn / wg-clientgen.sh
Created September 11, 2024 18:24
Generate WireGuard client private/public keys as well as a simple configuration file
#!/bin/bash
# quick script to generate simple WireGuard client configuration files.
# The script accepts the name of the client config as well as an optional
# comma-separated list of addresses that it can use.
#
# A commented example Peer section is included; Replace its values and uncomment
# it to use it.
#
# The generated client public key is printed.