Skip to content

Instantly share code, notes, and snippets.

@ikirigin
ikirigin / devs.py
Created September 14, 2024 23:46
MacOS python print USB devices
import subprocess
import plistlib
# generated with claude. Buyer beware
def list_usb_devices():
# Run system_profiler command to get USB device information
cmd = ['system_profiler', 'SPUSBDataType', '-xml']
result = subprocess.run(cmd, capture_output=True, text=True)
"""
Local settings file
"""
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Database
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
DATABASES = {

Popular Friends of my friends whom I don't follow

@username name uid number of friends who follow
@reidhoffman Reid Hoffman 10078 111
@ev Evan Williams 20 99
@sacca Chris Sacca 586 83
@davemorin Dave Morin 3475 81
@rabois Keith Rabois 20263710 81
@om Om Malik 989 79