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 / radarr-unmonitor-downloaded.py
Created August 28, 2022 10:58
Python script to unmonitor already grabbed movies from Radarr v4.1.0.6175
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
import json
import requests
import sys
import datetime
APIKEY=''
URL='http://localhost:7878/api/v3'
@luckylittle
luckylittle / .tmux.conf
Last active October 7, 2023 16:42
Ultimate tmux.conf files
source ~/.tmux/.tmux.conf
source ~/.tmux/.tmux.conf.ui
@luckylittle
luckylittle / playbook-export.yml
Created July 29, 2022 05:36
Complete backup of Red Hat Ansible Automation Platform into YAML files ready to be used by redhat_cop.controller_configuration collection
---
- name: Playbook to Export all resources from the AAP into YAML files using awxkit
hosts: localhost
vars:
controller_configuration_path: "/home/lmaly/Projects/awxkit"
tasks:
- name: Export all users assets
awx.awx.export:
users: 'all'
register: "users"
@luckylittle
luckylittle / clean_logs_rhel.sh
Created June 20, 2022 06:00
Quickly empty all the major logs on RHEL
#!/bin/zsh
LOGS=(
/var/log/boot.log
/var/log/btmp
/var/log/cron
/var/log/dnf.librepo.log
/var/log/dnf.log
/var/log/dnf.rpm.log
/var/log/firewalld
@luckylittle
luckylittle / at_1640_stop_move_mouse.sh
Last active January 4, 2023 09:52
Move mouse for Linux Wayland (EVEMU)
#!/bin/zsh
at 16:40 <<END
pgrep evemu | xargs sudo kill -9
pgrep tiny_move_mouse | xargs sudo kill -9
END
@luckylittle
luckylittle / officeworks.py
Last active December 29, 2023 07:07
Officeworks price checker
import datetime
import smtplib
import time
import requests
import sys
import random
import json
from bs4 import BeautifulSoup
# chmod x officeworks.py
@luckylittle
luckylittle / colors.json
Last active September 15, 2025 21:41
Double Commander Configuration backup (/home/lmaly/.config/doublecmd/)
{
Styles : [
{
Name : "Light",
FilePanel : {
CursorBorderColor : -2147483635,
ForeColor : -2147483640,
BackColor : 12632256,
BackColor2 : 12632256,
MarkColor : 8421504,
@luckylittle
luckylittle / audible-last-3-manning.sh
Last active April 28, 2025 02:46
Script returns last three Audible products from a specific publisher
#!/bin/zsh
source /home/lmaly/Projects/audible-cli/venv/bin/activate
read -r -d '' -A LAST_THREE_MANNING_ASIN <<< "$(audible api /1.0/catalog/products -p publisher="Manning Publications" -p products_sort_by=-ReleaseDate -p num_results=3 | jq -r '.products[].asin')"
for ASIN in "${LAST_THREE_MANNING_ASIN[@]:0:$((${#LAST_THREE_MANNING_ASIN[@]}-1))}"
do
audible api -p response_groups=product_desc /1.0/catalog/products/${ASIN} | jq -r '.product.title'
done
#######
@luckylittle
luckylittle / predb.sh
Last active May 26, 2022 23:40
Wrapper for @crackhub-dev script predb-ovh-cli
#!/bin/zsh
################
## Add alias predb='/home/lmaly/Projects/predb-ovh-cli/THIS_SCRIPT.sh'
## Usage: predb <SEARCH QUERY>
## Example: predb wild territory
################
C=''
source /home/lmaly/Projects/predb-ovh-cli/venv/bin/activate
@luckylittle
luckylittle / epub_maker.sh
Created May 24, 2022 02:20
Simple workflow to create an EPUB file from the folder and check for EPUB errors
#!/bin/zsh
export EPUB=Lyssa_Adkins_-_Coaching_Agile_Teams
# No compression zip file, with `mimetype` being the first file in the archive
zip -0 -X ${EPUB}.zip mimetype
zip -0 -X -r ${EPUB}.zip META-INF OEBPS
# Rename .zip to .epub
mv -v ${EPUB}.{zip,epub}