Skip to content

Instantly share code, notes, and snippets.

View culli's full-sized avatar

Jim Cullison culli

View GitHub Profile
@culli
culli / reset-usb.sh
Last active January 11, 2024 22:12
Ivanky usb hub restart ethernet without unplugging or rebooting. https://xkcd.com/1205/
View reset-usb.sh
#! /bin/bash
# Good day to the one other random person that might find this!
# This one trick can save you literal __minutes__ in your week. Minutes I say!
#
# My Ivanky hub's ethernet stops working (probably when the machine sleeps)
# and shows as disconnected in System/Network. I often have to reset its power,
# unplug its usb from the mac, or even restart the mac.
#
# So far the solution here is working by just running this script. Ivanky does