Hasty Briefsbeta

A terminal command that tells you if your USB-C cable is bad

2 days ago
  • #scripting
  • #AI
  • #USB
  • Apple altered the system command for Tahoe.
  • Different USB cables have varying charging and data transfer speeds.
  • Android Studio warns about slow USB cables when connected to a phone.
  • A script named 'usbi' was created to check USB connections via command line.
  • The script parses macOS's system_profiler SPUSBHostDataType command for cleaner output.
  • Initial version was a messy bash script, difficult to maintain.
  • Rewritten in Go for better structure, maintainability, and cross-platform compatibility.
  • AI significantly reduced the time and effort needed for script creation and rewriting.
  • AI has lowered the friction for creating small utility scripts, changing what's worth our time.