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
// get past Newspapers of New England paywall | |
var background = document.getElementById("ta_background"); | |
background.remove(); | |
var modal = document.getElementById("ta_paywall"); | |
modal.remove(); |
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
# ytpod.py // jeffehobbs@gmail.com | |
# version 1.1.0 | |
# | |
# goal: create XML feed + links to m4a versions of YT videos in specific playlist | |
# | |
# steps/done: | |
# 1. parse YT playlist(s), get id + metadata of each video | |
# 2. download m4a file for each video, save to s3 | |
# 3. create XML file representing overview of feed, save to s3 |
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
PARTS LIST FOR KICKASS HOME ASSISTANT BUILD | |
--- | |
Raspberry Pi 4 (4GB) ($75) | |
https://www.canakit.com/raspberry-pi-4-8gb.html?cid=usd&src=raspberrypi | |
--- | |
RPi 4 Power Supply ($12.50) |
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
# bulk screenshotter // May 2021 // jeffehobbs@gmail.com | |
import os, subprocess | |
from pysubparser import parser | |
videos_dir = 'Videos/' | |
screenshot_dir = 'Screenshots/' | |
season = 'Season 1/' | |
video_file_extension = '.mp4' | |
subtitle_file_extension = '.eng.srt' |
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 requests, json | |
from datetime import datetime, timedelta | |
from flask import Flask, request, jsonify | |
# pip install requests, flask, zappa | |
# modify 'USER' and 'API_KEY' to fit | |
USER = 'YOUR_USER_NAME' | |
API_KEY = 'YOUR_API_KEY' |
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
# meetgrinderMA.py | jeffehobbs@gmail.com | June 2020 | |
# detect meetings, tweet 'em out | |
import json, requests, feedparser, tweepy, time | |
from bs4 import BeautifulSoup | |
# globals | |
FEED = 'https://www.northamptonma.gov/RSSFeed.aspx?ModID=65&CID=City-Council-95' | |
DOMAIN = 'https://northamptonma.gov' |
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
[ | |
"Adams", | |
"Addison", | |
"Afton", | |
"Alabama", | |
"Albany", | |
"Albion", | |
"Alden", | |
"Alexander", | |
"Alexandria", |
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
[ | |
"Adair Village", | |
"Adams", | |
"Adrian", | |
"Albany", | |
"Amity", | |
"Antelope", | |
"Arlington", | |
"Ashland", | |
"Astoria", |
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
[ | |
"Aliquippa", | |
"Allentown", | |
"Altoona", | |
"Arnold", | |
"Beaver Falls", | |
"Bethlehem", | |
"Bloomsburg", | |
"Bradford", | |
"Butler", |
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
[ | |
"Aberdeen", | |
"Absecon", | |
"Alexandria", | |
"Allamuchy", | |
"Allendale", | |
"Allenhurst", | |
"Allentown", | |
"Alloway", | |
"Alpha", |