This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import signal | |
| import sys | |
| def _handle_interrupt(signum, _): | |
| signal.signal(signum, signal.SIG_IGN) | |
| # Any cleanup steps go here | |
| sys.exit(signal.SIGINT) | |
| signal.signal(signal.SIGINT, _handle_interrupt) | |
| # Rest of script... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| If you're viewing this on GitHub Gist, see a full guide, including React Router examples at: | |
| https://antrikshy.com/code/painless-partitioned-localstorage-with-namespaces-react-router | |
| */ | |
| export default class PersistenceHandler { | |
| constructor(prefix="Project-Name") { | |
| this.prefix = prefix; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Script to extract video files written by the BMW Drive Recorder in my 2024 model | |
| and rename them using the date and time in the directory names that it writes | |
| into USB storage. | |
| This is free and unencumbered software released into the public domain and comes | |
| with no warranties. | |
| Requirements: |
OlderNewer