Skip to content

Instantly share code, notes, and snippets.

View pawisoon's full-sized avatar

pawisoon pawisoon

  • PL | IE | NL
View GitHub Profile

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write

@PaulFurtado
PaulFurtado / usb_reset.py
Last active June 22, 2024 22:44
Reset USB device from python
"""
Example code for resetting the USB port that a Teensy microcontroller is
attached to. There are a lot of situations where a Teensy or Arduino can
end up in a bad state and need resetting, this code is useful for
"""
import os
import fcntl
import subprocess
@vova
vova / gist:3879753
Created October 12, 2012 15:25
MacOS: read Mail.app UUID
defaults read /Applications/Mail.app/Contents/Info PluginCompatibilityUUID