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 / SabNZBd.desktop
Created June 20, 2024 02:14
Desktop file for Pythonized SabNZBd
[Desktop Entry]
Name[en_CA]=SabNZBd
Name[en_GB]=SabNZBd
Name=SabNZBd
Comment=SabNZBd
Keywords=shell;prompt;command;commandline;cmd;
TryExec=/home/lmaly/Projects/sabnzbd/START.sh
Exec=/usr/bin/zsh -c "cd /home/lmaly/Projects/sabnzbd ; ./START.sh"
Icon=/home/lmaly/Projects/sabnzbd/interfaces/Config/templates/staticcfg/ico/android-192x192.png
Type=Application
@luckylittle
luckylittle / at_1658_close_vbox_machine.sh
Created June 20, 2024 01:17
Gracefully shut down the Virtualbox machine at a specific time
#!/bin/zsh
at 16:58 <<END
/usr/lib/virtualbox/VBoxManage controlvm "{10a78d46-53a7-4483-a602-183436c6bcc2}" acpipowerbutton
noti -t "at_1658_close_vbox_machine.sh" -m "Windows10Ent has been shut down\!" -o
END
@luckylittle
luckylittle / k4mobidedrm.py
Last active June 4, 2024 04:33
Patched k4mobidedrm/kfxdedrm
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# k4mobidedrm.py
# Copyright © 2008-2020 by Apprentice Harper et al.
__license__ = 'GPL v3'
__version__ = '6.0'
# Engine to remove drm from Kindle and Mobipocket ebooks
@luckylittle
luckylittle / [email protected]
Last active March 20, 2025 23:36
Bash script to backup the main settings & filters from autobrr (until proper db backup exists)
[Unit]
Description=autobrr service for %i
After=syslog.target network-online.target
[Service]
Type=simple
User=%i
Group=%i
ExecStart=/usr/local/bin/autobrr --config=/home/%i/.config/autobrr/
@luckylittle
luckylittle / oc_neat.zsh
Last active April 4, 2024 01:49
Clean up unnecessary metadata from Openshift YAML files
# wget https://github.com/itaysk/kubectl-neat/releases/download/v2.0.3/kubectl-neat_linux_amd64.tar.gz
# tar xvzf kubectl-neat_linux_amd64.tar.gz
# sudo mv -v kubectl-neat /usr/local/bin/
cat << EOF | oc neat [2024-04-04 | 12:46:23]
apiVersion: v1
kind: Pod
metadata:
annotations:
openshift.io/scc: anyuid
@luckylittle
luckylittle / wav_to_flac.zsh
Created February 21, 2024 00:28
WAV to FLAC in all subdirectories
#!/bin/zsh
find . -type f -iname "*.wav" -execdir sh -c 'flac --compression-level-8 --verify "{}"' \;
@luckylittle
luckylittle / create-container-radarr.sh
Created October 19, 2023 23:44
Run radarr and sonarr inside Podman
#!/bin/bash
podman run -d \
--conmon-pidfile=/home/lmaly/radarr.pid \
--name=radarr \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Australia/Sydney \
-p 7878:7878 \
-v /home/lmaly/radarr:/config \
--restart unless-stopped \
@luckylittle
luckylittle / Dropbox_lucky.sh
Created October 19, 2023 03:46
Run multiple DropboxD on one Linux machine
#!/bin/zsh
HOME=$HOME/.dropbox_lucky; ~/.dropbox-dist/dropboxd
@luckylittle
luckylittle / Splunk_Certified_Cybersecurity_Defense_Analyst.md
Last active March 29, 2026 20:37
Splunk Certified Cybersecurity Defense Analyst [SPLK-5001] - Notes

Splunk Certified Cybersecurity Defense Analyst [SPLK-5001]

1.0 The Cyber Landscape, Frameworks, and Standards (*10%*)
  1.1 Summarize the organization of a typical SOC and the tasks belonging to Analyst, Engineer and Architect roles.
  1.2 Recognize common cyber industry controls, standards and frameworks and how Splunk incorporates those frameworks.
  1.3 Describe key security concepts surrounding information assurance including confidentiality, integrity and availability and basic risk management.

2.0 Threat and Attack Types, Motivations, and Tactics (*20%*)
  2.1 Recognize common types of attacks and attack vectors.
@luckylittle
luckylittle / alert_actions.conf
Last active September 21, 2023 03:34
Examples of all Splunk Configuration files (v9.1.0.2)
# Version 9.1.0.2
#
# This is an example alert_actions.conf. Use this file to configure alert
# actions for saved searches.
#
# To use one or more of these configurations, copy the configuration block into
# alert_actions.conf in $SPLUNK_HOME/etc/system/local/. You must restart
# Splunk to enable configurations.
#
# To learn more about configuration files (including precedence) please see the