Skip to content

Instantly share code, notes, and snippets.

kraftboy /
Created December 31, 2020 02:22
wsl bash script to renew let's encrypt cert, create pfx, import to windows certstore and register with netsh
# sudo certbot renew
if [ `id -u` -ne 0 ]
then echo "pls run as sudo .."
echo "If certbot fails, you may need to enable port forwarding on port 80 ..."
kraftboy / mbutil.cs
Created December 29, 2020 02:13
quick and dirty enumeration of USB devices, endpoint polling, and setting windows default audio playback device
using LibUsbDotNet.Info;
using LibUsbDotNet.LibUsb;
using LibUsbDotNet.Main;
using System;
using System.Collections.ObjectModel;
using System.Linq;
using AudioEndPoint;
namespace Examples