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 / debug-pod.yaml
Last active January 13, 2026 23:29
An example of what the pod looks like when you do `oc debug node/ocp-worker-0`
---
kind: Pod
apiVersion: v1
metadata:
name: debug-pod
namespace: default
annotations:
debug.openshift.io/source-container: container-00
openshift.io/required-scc: privileged
spec:
@luckylittle
luckylittle / README-setup-tunnel-as-systemd-service.md
Last active January 6, 2026 20:49 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

Setup a secure (SSH) tunnel as a systemd service

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@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 January 22, 2026 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 January 21, 2026 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 January 17, 2026 01:05
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 January 22, 2026 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