Skip to content

Instantly share code, notes, and snippets.

View kammoh's full-sized avatar
:octocat:

Kamyar Mohajerani kammoh

:octocat:
View GitHub Profile
@alyssarosenzweig
alyssarosenzweig / demo.m
Created September 25, 2021 02:09
AppleJPEGDriver decode routine for the Apple M1
/*
* Copyright (C) 2021 Alyssa Rosenzweig <alyssa@rosenzweig.io>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
@jn0
jn0 / macos_lsusb.py
Created December 20, 2018 09:30
sorta lsusb for MacOS
#!/usr/bin/env python3
'''
lsusb for MacOS after https://github.com/jlhonora/lsusb
MacBook-Pro-apple-2:~ jno$ system_profiler SPUSBDataType
2018-12-19 15:14:49.583 system_profiler[96589:1580584] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe00002be
USB:
USB 3.0 Bus: