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 / sysctl.conf
Created October 29, 2025 07:09
Optimized for media streaming: buffer settings, network throughput, and I/O scheduling
# Optimized sysctl.conf for Media Streaming Server
# Hardware: 4 cores / 8 threads, 16GB RAM, 1000Mb/s NIC, HDD (not SSD/NVMe)
# Last rev: v1.5.8/26092025
#
# For Debian-based systems:
# 1. Save this file to /etc/sysctl.conf
# 2. Apply immediately with: sudo sysctl -p
#
# For RHEL-based systems:
# 1. Save this file to /etc/sysctl.d/99-custom.conf
@luckylittle
luckylittle / sysctl.conf
Created October 29, 2025 07:08
NFS/RPC slot tuning and high file descriptor limits for storage
# Generated by https://www.enginyring.com/tools/sysctl.php
# Optimized sysctl.conf for File Server
# Hardware: 4 cores / 8 threads, 16GB RAM, 1000Mb/s NIC, HDD (not SSD/NVMe)
# Last rev: v1.5.8/26092025
#
# For Debian-based systems:
# 1. Save this file to /etc/sysctl.conf
# 2. Apply immediately with: sudo sysctl -p
#
# For RHEL-based systems:
@luckylittle
luckylittle / whentostream.py
Last active October 29, 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 30, 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 31, 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)