Skip to content

Instantly share code, notes, and snippets.

View luckylittle's full-sized avatar
:octocat:
Working for @RedHatOfficial

Lucian Maly luckylittle

:octocat:
Working for @RedHatOfficial
View GitHub Profile
@luckylittle
luckylittle / whentostream.py
Last active October 14, 2025 01:20
AutoBrr List that contains release schedule from the website whentostream.com
#!/bin/python
import datetime
import requests
from bs4 import BeautifulSoup
def get_movie_titles(url):
"""
Fetches a webpage and extracts movie titles from whentostream.com
@luckylittle
luckylittle / dvdsreleasedates-digital.py
Last active October 13, 2025 01:10
AutoBrr List that contains release schedule from the website dvdsreleasedates.com/digital-releases/
#!/bin/python
import requests
from bs4 import BeautifulSoup
def extract_dvd_titles():
"""
Extracts DVD/Blu-ray titles from dvdsreleasedates.com for the current month
"""
url = "https://www.dvdsreleasedates.com/digital-releases/"
@luckylittle
luckylittle / dvdsreleasedates.py
Last active October 11, 2025 02:04
AutoBrr List that contains release schedule from the website dvdsreleasedates.com
#!/bin/python
import requests
from bs4 import BeautifulSoup
def extract_dvd_titles():
"""
Extracts DVD/Blu-ray titles from dvdsreleasedates.com for the current month
"""
url = "https://www.dvdsreleasedates.com"
@luckylittle
luckylittle / firstshowing.py
Last active October 11, 2025 01:15
AutoBrr List that contains release schedule from the website firstshowing.net
#!/bin/python
import requests
from bs4 import BeautifulSoup
def extract_movie_titles_from_url(url):
"""
Fetches and parses an HTML page to extract movie titles from firstshowing.net
Args:
@luckylittle
luckylittle / inventory
Last active August 25, 2025 02:22
Test inventory
[all]
ssh.ocpv08.rhdp.net:30265
nonexistent.host.com
@luckylittle
luckylittle / finished.sh
Created July 31, 2025 08:54
Transmission v4.0.5 completion script - notification to Pushover
#!/bin/zsh
# Enable "Call script when done downloading"
noti -t "Transmission finished download" -m "ID:${TR_TORRENT_ID}, NAME:${TR_TORRENT_NAME}, PATH:${TR_TORRENT_DIR}" -o
@luckylittle
luckylittle / user-data-mount-separate-home-folder.b64
Created June 30, 2025 01:21
User data script to automatically mount the additional vomue as home folder on AWS EC2
IyEvYmluL2Jhc2gKCiMgTG9nIGFsbCBvdXRwdXQgZm9yIGRlYnVnZ2luZwpleGVjID4gPih0ZWUg
L3Zhci9sb2cvdXNlci1kYXRhLmxvZykgMj4mMQoKZWNobyAiU3RhcnRpbmcgdXNlciBkYXRhIHNj
cmlwdCBhdCAkKGRhdGUpIgoKIyBXYWl0IGZvciB0aGUgRUJTIHZvbHVtZSB0byBiZSBhdmFpbGFi
bGUKZWNobyAiV2FpdGluZyBmb3IgRUJTIHZvbHVtZSB0byBiZSBhdmFpbGFibGUuLi4iCndoaWxl
IFsgISAtZSAvZGV2L252bWUxbjEgXTsgZG8KICBlY2hvICJXYWl0aW5nIGZvciAvZGV2L252bWUx
bjEuLi4iCiAgc2xlZXAgNQpkb25lCgplY2hvICJFQlMgdm9sdW1lIC9kZXYvbnZtZTFuMSBpcyBh
dmFpbGFibGUiCgojIENyZWF0ZSBwYXJ0aXRpb24gb24gdGhlIEVCUyB2b2x1bWUKZWNobyAiQ3Jl
YXRpbmcgcGFydGl0aW9uIG9uIC9kZXYvbnZtZTFuMS4uLiIKKAplY2hvIG4gIyBBZGQgYSBuZXcg
cGFydGl0aW9uCmVjaG8gcCAjIFByaW1hcnkgcGFydGl0aW9uCmVjaG8gMSAjIFBhcnRpdGlvbiBu
dW1iZXIKZWNobyAgICMgRmlyc3Qgc2VjdG9yIChBY2NlcHQgZGVmYXVsdDogMSkKZWNobyAgICMg
@luckylittle
luckylittle / rename_torr.py
Created June 12, 2025 11:12
Python script, uses mkbrr to rename files from .session folder
import os
import subprocess
import re
from collections import defaultdict
# Directory containing the .torrent files like 534DB1275682C6F5CFC5EE0C10D414B84CB84BC4.torrent
torrent_dir = "~/Downloads"
# Map to track name collisions
name_counts = defaultdict(int)
@luckylittle
luckylittle / catalog_bluray.zsh
Created January 10, 2025 10:46
Simple process how to create INI file for each of your BluRay discs
#!/bin/zsh
# Parameters
DISC_LABEL=$(isoinfo -d -i /dev/sr0 | grep 'Volume id: ' | sed 's|Volume id: ||')
MOUNT_POINT="/mnt/bluray"
CATALOG_FILE="/home/$USER/Temp/Catalogs/bdr_catalog.txt"
# Ensure the catalog file exists
touch $CATALOG_FILE
@luckylittle
luckylittle / pbtech.sh
Created January 9, 2025 21:29
Price checker for PBTech
#!/bin/bash
CURRENT_PRICE=$(curl -k https://www.pbtech.com/au/product/DVBVER1863710/Verbatim-97284-Blu-Ray-BD-R-DL-50GB-25Pk-Spindle-W | grep '"price":' | sed 's|<script type="application/ld+json">||' | sed 's|</script>||' | jq '.[] | select(.offers) | .offers[].price')
LAST_KNOWN_PRICE=$(cat /home/$USER/pbtech.txt)
if [ "$CURRENT_PRICE" = "$LAST_KNOWN_PRICE" ];
then
:
else