Skip to content

Instantly share code, notes, and snippets.

View kmpm's full-sized avatar

Peter Magnusson kmpm

View GitHub Profile
@artizirk
artizirk / debug.md
Last active November 29, 2024 00:21
Debug WireGuard Linux kernel module
@ianfinch
ianfinch / rpi4-usb.sh
Last active July 7, 2024 01:54
Raspberry Pi 4 USB Gadget
#!/bin/bash
# Set up a Raspberry Pi 4 as a USB-C Ethernet Gadget
# Based on:
# - https://www.hardill.me.uk/wordpress/2019/11/02/pi4-usb-c-gadget/
# - https://pastebin.com/VtAusEmf
if ! $(grep -q dtoverlay=dwc2 /boot/config.txt) ; then
echo "Add the line dtoverlay=dwc2 to /boot/config.txt"
exit
fi
@dale3h
dale3h / hassio_rpi3bp
Last active June 12, 2019 18:52
Hass.io Installer for Raspberry Pi 3 B+
#!/bin/bash
###########################################################
###########################################################
## ##
## THIS SCRIPT SHOULD ONLY BE RUN ON A RASPBERRY PI 3 B+ ##
## ##
###########################################################
###########################################################
@mkoertgen
mkoertgen / Doc2Pdf
Last active August 15, 2024 14:43
A powershell automating Word to generate Pdf
A powershell automating Word to generate Pdf