Last update: Tue Jan 14 23:15:49 UTC 2020 by @luckylittle
- Understand, identify, and work with containerization features
- Deploy a preconfigured application and identify crucial features such as namespaces, SELinux labels, and cgroups
#!/bin/bash | |
echo 'Cleaning up the working directories...' | |
rm -rvf ${bamboo.build.working.directory}/* | |
rm -rvf ~/* | |
echo 'Installing required software...' | |
yum -y install rpm-build git | |
echo 'Checking versions of the required software...' |
Last update: Tue Jan 14 23:15:49 UTC 2020 by @luckylittle
Last update: Mon Nov 18 05:32:46 UTC 2019 by @luckylittle
# USING YUM TO MANAGE SECURITY ERRATA:
#!/bin/bash | |
# Requires: mkvmerge | |
for RH in *; do mkvmerge ${RH} -o $(basename -s .mp4 ${RH}).mkv; done; echo 'Done!' | |
# rm *.mp4 |
#!/bin/bash | |
# 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 | |
# ADD EXTENSION: |
#!/usr/bin/env python | |
# MIT License | |
# Copyright (c) 2019 Lucian Maly, <[email protected]> | |
# Tested on Python v3.7.3 (default, Jun 14 2019, 13:46:58) and Python v2.7.5 (default, Mar 26 2019, 22:13:06) | |
# Usage: stress_test.py <AMOUNT_OF_MEMORY_YOU_WANT_TO_CONSUME_IN_GB> | |
# Example: /usr/local/bin/python3.7 stress_test.py 10 | |
# ------------------------- | |
# Filling up 10GB of memory... | |
# Running load on CPUs... |
% Contents of listings-setup.tex | |
% Example: pandoc -f markdown_github --listings -H listings-setup.tex -V geometry:margin=0.3in RH342.md -o RH342.pdf | |
\usepackage{xcolor} | |
\lstset{ | |
basicstyle=\ttfamily, | |
keywordstyle=\color[rgb]{0.13,0.29,0.53}\bfseries, | |
stringstyle=\color[rgb]{0.31,0.60,0.02}, | |
commentstyle=\color[rgb]{0.56,0.35,0.01}\itshape, | |
backgroundcolor=\color[RGB]{248,248,248}, |
Last update: Fri Jul 26 08:23:20 UTC 2019 by @luckylittle
Find the right syntax for your YAML multiline strings:
There are two types of formats that YAML supports for strings: block scalar and flow scalar formats. (Scalars are what YAML calls basic values like numbers or strings, as opposed to complex types like arrays or objects.) Block scalars have more control over how they are interpreted, whereas flow scalars have more limited escaping support.
|
). If instead you want them to be replaced by spaces, use the folded style, indicated by a right angle bracket (>
). (To get a newline using the folded style, leave a blank line by putting two newlines in. Lines with extra indentation are also not folded.)# Sometimes there are moments, when you construct JSON in a really dirty way by just appending key/value pairs and adding comma at the end. | |
# You will end up with something like this: | |
# { | |
# "big_key": { | |
# "small_key1": "small_value1", | |
# "small_key2": "small_value2", | |
# "small_key3": "small_value3", | |
# And then to make this valid JSON, you need to replace the last comma with curly braces. |