Skip to content

Instantly share code, notes, and snippets.

@caseyavila
caseyavila / minecraft_login.py
Created Dec 26, 2021
Simple Minecraft login script for Mojang accounts
View minecraft_login.py
#!/usr/bin/env python3
import requests
login_url = "https://authserver.mojang.com/authenticate"
payload = {
"agent": {
"name": "Minecraft",
"version": 1
},
@caseyavila
caseyavila / userContent.css
Created Nov 13, 2020
Firefox about:newtab background image
View userContent.css
/*
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;
@caseyavila
caseyavila / hdhr-listings-to-m3u.py
Last active Apr 29, 2022 — forked from aaearon/hdhr-listings-to-m3u.py
Convert HDHomeRun Prime Listings to M3U Format
View hdhr-listings-to-m3u.py
#!/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 / mla.mom
Last active Sep 11, 2021
MLA Template for groff_mom
View mla.mom
.TITLE "This Is a Nice Title"
.PRINTSTYLE TYPESET
.
.FAMILY T
.PT_SIZE 12
.INDENT_FIRST_PARAS
.AUTOLEAD 16
.
.HEADERS OFF
.FOOTERS OFF