Skip to content

Instantly share code, notes, and snippets.

Working for @RedHatOfficial

Lucian Maly luckylittle

Working for @RedHatOfficial
Block or report user

Report or block luckylittle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
luckylittle /
Created Aug 23, 2019
Checks if all the subfolders contain *.SFV file. Reports the ones which don't have it.
# Checks if all the subfolders contain *.SFV file. Reports the ones which don't have it.
for x in *;
ls ${x}/*.sfv >/dev/null
if [ $RESULT -eq 1 ]; then
echo 'NO SFV IN ${x}'
luckylittle /
Last active Aug 14, 2019 — forked from kingkool68/
Bash script to generate a markdown change log of GitHub pull requests between tagged releases
# Generate a Markdown change log of pull requests from commits between two tags
# Author: Russell Heimlich
# Original URL:
# Modified for Atlassian Stash and older Git version by author: Lucian Maly <>
# URL:
# Copy this script to a directory under Git version control
# Make the script executable i.e. chmod +x
luckylittle /
Last active Aug 19, 2019
Team Social Contract example

/!\ This is a living document and will most likely change throughout the time /!\

(/) Prime directive:

Regardless of what we discover, we understand and truly believe that everyone did the best job they could, given what they know at the time, their skills and abilities, the resources available, and the situation at hand.

(/) I suggest we use this template for all pull requests:

#### What is the relevant ticket?
luckylittle / Makefile
Last active Aug 19, 2019
Makefile versioning example based on
View Makefile
# Current tags:
CURRENT_FULLTAG = $(shell git describe --tags --abbrev=0 | awk -F. '{ printf $$0 }')
CURRENT_YAML = $(shell grep '^version' YAML.yml | awk -F' ' '{ print $$2 }')
CURRENT_MAJORTAG = $(shell git describe --tags --abbrev=0 | awk -F. '{ printf $$1 }')
CURRENT_MINORTAG = $(shell git describe --tags --abbrev=0 | awk -F. '{ printf $$2 }')
CURRENT_PATCHTAG = $(shell git describe --tags --abbrev=0 | awk -F. '{ printf $$3 }')
# New tags:
luckylittle / 01-default.conf
Last active Aug 5, 2019
Red Hat OpenShift 3 Disconnected Installation (Lab)
View 01-default.conf
# Verify Proxied RPM Repository
# /etc/httpd/conf.d/default.conf
<VirtualHost *:*>
ProxyPreserveHost On
ProxyPass /
ProxyPassReverse /
ServerName isolated1.b88e.internal
luckylittle /
Last active Aug 22, 2019
Building RPM out of the Git repository inspec-cis-profile in Bamboo
echo 'Cleaning up the working directories...'
rm -rvf ${}/*
rm -rvf ~/*
echo 'Installing required software...'
yum -y install rpm-build git
echo 'Checking versions of the required software...'
luckylittle /
Created Jul 4, 2019
Red Hat DO425 Notes

Red Hat Security: Securing Containers & OpenShift (DO425)

Last update: xxx xxx x xx:xx:xx AEST xxxx by @luckylittle

1. Describing Host Security Technologies

luckylittle /
Last active Aug 15, 2019
Red Hat RH415 Notes

Red Hat Security: Linux in Physical, Virtual and Cloud (RH415)

Last update: Thu Aug 15 05:19:13 UTC 2019 by @luckylittle

1. Managing Security & Risk

luckylittle /
Created Jul 3, 2019
Convert all MP4s in a folder to MKVs using MKVMerge
# Requires: mkvmerge
for RH in *; do mkvmerge ${RH} -o $(basename -s .mp4 ${RH}).mkv; done; echo 'Done!'
# rm *.mp4
luckylittle /
Last active Jun 28, 2019
Add / Remove extension to multiple files in Linux
# ls -1
# Dark.Money.2018.DVDRip.x264-WiDE
# Golden.State.Killer.Main.Suspect.2018.INTERNAL.WEB.x264-UNDERBELLY
# Shazam.2019.BDRip.x264-SPARKS
# The.Best.of.Enemies.2019.BDRip.x264-DRONES
# The.Kindergarten.Teacher.2018.BDRip.X264-AMIABLE
You can’t perform that action at this time.