# -*- coding: utf-8 -*- import datetime import random from twilio import TwilioRestException from twilio.rest import TwilioRestClient from hackerutils import get_dotenv, get_log_path, sh dotenv = get_dotenv() TWILIO_ACCOUNT_SID = dotenv['TWILIO_ACCOUNT_SID'] TWILIO_AUTH_TOKEN = dotenv['TWILIO_AUTH_TOKEN'] LOG_FILE_PATH = get_log_path('hangover.txt') def main(): # Skip on weekends. if datetime.date.today().weekday() in ( 0, 6, ): return # Exit early if any session with my_username is found. if any(s.startswith(b'my_username ') for s in sh('who').split(b'\n')): return client = TwilioRestClient(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN)
# -*- coding: utf-8 -*- import datetime import random from twilio import TwilioRestException from twilio.rest import TwilioRestClient from hackerutils import get_dotenv, get_log_path, sh dotenv = get_dotenv() TWILIO_ACCOUNT_SID = dotenv['TWILIO_ACCOUNT_SID'] TWILIO_AUTH_TOKEN = dotenv['TWILIO_AUTH_TOKEN'] LOG_FILE_PATH = get_log_path('hangover.txt') def main(): # Skip on weekends. if datetime.date.today().weekday() in (0, 6,): return # Exit early if any session with my_username is found. if any(s.startswith(b'my_username ') for s in sh('who').split(b'\n')): return client = TwilioRestClient(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN) # Phone numbers. my_number = '+xxx'
# -*- coding: utf-8 -*- import datetime import random from twilio import TwilioRestException from twilio.rest import TwilioRestClient from hackerutils import get_dotenv, get_log_path, sh dotenv = get_dotenv() TWILIO_ACCOUNT_SID = dotenv['TWILIO_ACCOUNT_SID'] TWILIO_AUTH_TOKEN = dotenv['TWILIO_AUTH_TOKEN'] LOG_FILE_PATH = get_log_path('smack_my_bitch_up.txt') def main(): # Skip on weekends. if datetime.date.today().weekday() in ( 0, 6, ): return # Exit early if no sessions with my_username are found. if not any(s.startswith(b'my_username ') for s in sh('who').split(b'\n')): return client = TwilioRestClient(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN)
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import random from twilio import TwilioRestException from twilio.rest import TwilioRestClient from hackerutils import get_dotenv, get_log_path, sh dotenv = get_dotenv() TWILIO_ACCOUNT_SID = dotenv['TWILIO_ACCOUNT_SID'] TWILIO_AUTH_TOKEN = dotenv['TWILIO_AUTH_TOKEN'] LOG_FILE_PATH = get_log_path('text_my_wife.txt') def main(): # Exit early if no sessions with my_username are found. if not any(s.startswith(b'my_username ') for s in sh('who').split(b'\n')): return client = TwilioRestClient(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN) # Phone numbers. my_number = '+xxx' her_number = '+xxx' reasons = [ 'Working hard',
# -*- coding: utf-8 -*- import datetime import random from twilio import TwilioRestException from twilio.rest import TwilioRestClient from hackerutils import get_dotenv, get_log_path, sh dotenv = get_dotenv() TWILIO_ACCOUNT_SID = dotenv["TWILIO_ACCOUNT_SID"] TWILIO_AUTH_TOKEN = dotenv["TWILIO_AUTH_TOKEN"] LOG_FILE_PATH = get_log_path("smack_my_bitch_up.txt") def main(): # Skip on weekends. if datetime.date.today().weekday() in (0, 6): return # Exit early if no sessions with my_username are found. if not any(s.startswith(b"my_username ") for s in sh("who").split(b"\n")): return client = TwilioRestClient(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN) # Phone numbers. my_number = "+xxx"
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import random from twilio import TwilioRestException from twilio.rest import TwilioRestClient from hackerutils import get_dotenv, get_log_path, sh dotenv = get_dotenv() TWILIO_ACCOUNT_SID = dotenv["TWILIO_ACCOUNT_SID"] TWILIO_AUTH_TOKEN = dotenv["TWILIO_AUTH_TOKEN"] LOG_FILE_PATH = get_log_path("notify_spouse.txt") def main(): # Exit early if no sessions with my_username are found. if not any(s.startswith(b"my_username ") for s in sh("who").split(b"\n")): return client = TwilioRestClient(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN) # Phone numbers. my_number = "+xxx" her_number = "+xxx" reasons = ["Working hard", "Gotta ship this feature", "Someone broke the system again"]