Skip to content

Instantly share code, notes, and snippets.

@caseyavila
caseyavila / hdhr-listings-to-m3u.py
Last active December 8, 2023 03:13 — forked from aaearon/hdhr-listings-to-m3u.py
Convert HDHomeRun Prime Listings to M3U Format
#!/usr/bin/env python3
#
# this script will convert the hdhomerun listings (channels) to
# m3u format for use with external media players. before running
# this script, be sure to modify the <<config>> variable settings
# below.
#
# Suggested Usage: This script should be run on a cron to keep
# the channel lineup to date. Below is an example of how to execute this script:
# python /path/to/script/hdhomerun-prime-listings-to-m3u.py > /path/to/playlist.m3u
@caseyavila
caseyavila / minecraft_login.py
Created December 26, 2021 20:02
Simple Minecraft login script for Mojang accounts
#!/usr/bin/env python3
import requests
login_url = "https://authserver.mojang.com/authenticate"
payload = {
"agent": {
"name": "Minecraft",
"version": 1
},
@caseyavila
caseyavila / mla.mom
Last active September 11, 2021 00:40
MLA Template for groff_mom
.TITLE "This Is a Nice Title"
.PRINTSTYLE TYPESET
.
.FAMILY T
.PT_SIZE 12
.INDENT_FIRST_PARAS
.AUTOLEAD 16
.
.HEADERS OFF
.FOOTERS OFF
@caseyavila
caseyavila / userContent.css
Created November 13, 2020 06:38
Firefox about:newtab background image
/*
1. Set toolkit.legacyUserProfileCustomizations.stylesheets to true in about:config
2. Place this file (userContent.css) in the chrome directory of your firefox profile
3. Place an image *hello.jpg* in the same directory as this file
*/
@-moz-document url(about:home), url(about:newtab), url(about:privatebrowsing) {
body::before {
content: "";
z-index: -1;