- Dependency - Fragile lib is fragile
- Automation - Is time spend automating worth it?
- The History of Unicode - Unicode is emojis
- tar - cheat is great
- Standards - Adding standards to make it standard
- Git Commit - Git self-discipline
- Git - Git commands are many
- Supported Features - Features or useful features?
- Wisdom of the Ancients - Sometimes Stack Overflow does not help
- ISO 8601 - YYYY-MM-DD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /usr/src/linux || { echo 'Failed to switch to /usr/src/linux' >&2; exit 1; } | |
chrt -i 0 ionice -c 3 make -j "$(nproc)" || \ | |
{ echo 'Failed to compile the kernel' >&2; exit 1; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sensors: | |
# thinkpad_acpi | |
- tpacpi: /proc/acpi/ibm/thermal | |
indices: [0] | |
fans: | |
# thinkpad_acpi to allow disengaged and automatic modes | |
- tpacpi: /proc/acpi/ibm/fan | |
levels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Increase watchers count | |
fs.inotify.max_user_watches=524288 | |
# Increase count of FDs | |
fs.file-max=262144 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove the evil Docker 'non-CE' packages | |
sudo apt remove docker docker-engine docker.io containerd runc | |
sudo apt update | |
# Make sure all the requirements are present | |
sudo apt install --no-install-recommends apt-transport-https ca-certificates curl gnupg2 | |
# Add Docker package repo | |
source /etc/os-release | |
curl -fsSL "https://download.docker.com/linux/${ID}/gpg" | sudo apt-key add - | |
echo "deb [arch=amd64] https://download.docker.com/linux/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gsettings set org.gnome.desktop.sound event-sounds false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[local] | |
priority = 60 | |
location = /var/db/repos/local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $# -lt 1 ]]; then | |
echo "Usage: ${0##*/} <version>" | |
echo "Example: ${0##*/} 3.6.15" | |
exit 1 | |
fi | |
VERSION="$1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
{ grub-install --target=x86_64-efi /dev/sda && grub-mkconfig -o /boot/grub/grub.cfg } || { echo "*** ERROR ***" >&2; exit 1; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Extract TLS pre-master secret to decrypt captured TLS stream in Wireshark | |
# | |
# Java TLS implementation can be configured to dump information on TLS stream, | |
# making it possible to extracting TLS key for decrypting the stream for debug | |
# purposes. | |
# | |
# This script is originally by Timothy Basanov | |
# https://timothybasanov.com/2016/05/26/java-pre-master-secret.html |