Skip to content

Instantly share code, notes, and snippets.

View BobNisco's full-sized avatar
🚀
LGTM

Bob Nisco BobNisco

🚀
LGTM
View GitHub Profile
@BobNisco
BobNisco / osx_sleeptimer.py
Last active January 16, 2020 02:40 — forked from samliu/osx_sleeptimer.py
A Python script to turn off your music and optionally put your computer to sleep after a period of time!
#!/usr/bin/env python
import os
import sys
import time
from datetime import datetime, timedelta
def main():
if len(sys.argv) >= 3:
music_service = str(sys.argv[1])
minutes_to_wait = float(sys.argv[2])