Skip to content

Instantly share code, notes, and snippets.

View markus-wolf's full-sized avatar

markus-wolf

View GitHub Profile
@markus-wolf
markus-wolf / gist:b779f00c84d40eb8e87a3966664156ea
Created March 23, 2026 10:52
cli fix for AirDrop problem iPhone -> Mac
An annoying problem when you can't airdrop from your iPhone to your own Mac: you see the Mac as an Airdrop target but a transfer never succeeds.
- all the usual suspects are checked:
- visible to Everyone
- same Wifi, same iCloud account, BT on both
- Mac Firewall allows incoming connections fro system services and sharingd
- ....
run
sudo defaults write /Library/Preferences/com.apple.mDNSResponder.plist NoMulticastAdvertisements -bool false
@markus-wolf
markus-wolf / websafecolors.py
Last active August 2, 2020 06:22
Python list of RGB tuples for web safe colors
'''
https://www.color-hex.com/216-web-safe-colors/
just include in your Python code
list of RGB tuples
'''
webcolors = [(0, 0, 0), (0, 0, 51), (0, 0, 102), (0, 0, 153), (0, 0, 204), (0, 0, 255), (0, 51, 0), (0, 51, 51),
(0, 51, 102), (0, 51, 153), (0, 51, 204), (0, 51, 255), (0, 102, 0), (0, 102, 51), (0, 102, 102),
(0, 102, 153), (0, 102, 204), (0, 102, 255), (0, 153, 0), (0, 153, 51), (0, 153, 102), (0, 153, 153),
(0, 153, 204), (0, 153, 255), (0, 204, 0), (0, 204, 51), (0, 204, 102), (0, 204, 153), (0, 204, 204),