Skip to content

Instantly share code, notes, and snippets.

View feocco's full-sized avatar
🕺
Learning, studying, growing.

Joe Feocco feocco

🕺
Learning, studying, growing.
  • Confluent, Inc
  • United States
View GitHub Profile
@feocco
feocco / smsReminder.py
Last active July 6, 2017 14:55
Quick script to schedule SMS and remind friends to keep practicing coding. First iteration, only checks codecademy.
import requests
from twilio.rest import Client
page = requests.get('https://www.codecademy.com/profileName')
# Twilio Data
twilioNum = '+11234563667'
twilioSID = 'SID_HERE'
twilioToken = 'TOKEN_HERE'
chrisNum = '+11234563667'
@feocco
feocco / unref.py
Last active July 15, 2016 16:41
Check for blob files files which are not referenced in XYF_BLOBS.STORAGE_FILENAME
# Define file locations:
## dir C:\bb_content\storage\ /b /a /s > storage.txt
storageFileLoc = r"C:\Users\jfeocco\Downloads\dupage\storage.txt"
## select concat('C:/bb_content/storage', STORAGE_FILENAME) from XYF_BLOBS; -- COPY/PASTE INTO dbStorage.txt
dbStorageFileLoc = r"C:\Users\jfeocco\Downloads\dupage\dbStorage.txt"
# Open storage files
stor = open(storageFileLoc, encoding='utf8')
dbStor = open(dbStorageFileLoc, encoding='utf8')