Skip to content

Instantly share code, notes, and snippets.

View MattyBoy4444's full-sized avatar

MattyBoy MattyBoy4444

View GitHub Profile
#!/usr/bin/env python
import os
import sys
from subprocess import Popen, PIPE
import fcntl
instructions = '''
Usage: python reset_usb.py help : Show this help
sudo python reset_usb.py list : List all USB devices
sudo python reset_usb.py path /dev/bus/usb/XXX/YYY : Reset USB device using path /dev/bus/usb/XXX/YYY
@MattyBoy4444
MattyBoy4444 / OutlookDataObject.cs
Last active April 8, 2024 11:38
Fixed issue with exception attempting to access protected memory
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using System.Reflection;
using System.IO;
using System.Windows;