Skip to content

Instantly share code, notes, and snippets.

View theriley106's full-sized avatar

Chris Lambert theriley106

View GitHub Profile
@theriley106
theriley106 / lambda_function.py
Created March 9, 2023 04:25
Twilio WhatsApp Rain Water Collection Bot
from __future__ import print_function
import os
from twilio.rest import Client
from datetime import datetime
from urllib import parse
import requests
import base64
import re
import pymongo
try:
@theriley106
theriley106 / main.py
Created April 11, 2020 04:35
Script to Check Amazon Delivery Slot Availability
import bs4
from selenium import webdriver
import sys
import time
import random
import os
def makeNoise():
@theriley106
theriley106 / main.py
Last active January 21, 2020 00:32
Robinhood Debit Card Script
import os
import time
import random
def swipe_application_drawer():
os.system("adb shell input swipe 780 1725 550 50")
time.sleep(.5)
def tap(coordTuple):
x, y, sleepTime = coordTuple
@theriley106
theriley106 / main.py
Created November 6, 2019 05:59
CSV to DTA
import test
@theriley106
theriley106 / app.py
Created February 16, 2019 00:17
Web Socket Example
# Copy of http://stackoverflow.com/a/20104705
from flask import Flask, render_template
from flask_sockets import Sockets
import datetime
import time
app = Flask(__name__)
sockets = Sockets(app)
@theriley106
theriley106 / main.py
Last active November 4, 2023 12:06
Windows Python Text-To-Speech
import os
# Be sure to import os into your script
'''
If you run the following command in the terminal, it will speak the words "testing to see if this works properly"
PowerShell -Command "Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('testing to see if this works properly');"
This python script generates this command with whatever text is passed to the speak function
'''
document.write("This grabbed a remote script")
@theriley106
theriley106 / arial.ttf
Last active May 4, 2019 17:19
/r/Teenagers Lil Pump Message Generator
import sys
# sys.setdefaultencoding() does not exist, here!
reload(sys) # Reload does the trick!
sys.setdefaultencoding('UTF8')
import requests
import threading
import json
#import sqlite3
def sanitize(value, is_value=True):
import sys
# sys.setdefaultencoding() does not exist, here!
reload(sys) # Reload does the trick!
sys.setdefaultencoding('UTF8')
import requests
import threading
import json
#import sqlite3
def sanitize(value, is_value=True):