Here is the cheatsheet for block size tuning of NVME drives, LUKS encryption, filesystem, and partitions.
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
# You need the following entry in the control file: | |
XS-Go-Import-Path: github.com/linux4life798/cmpconflash |
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
# This is an example ddclient configuration that uses fetch-nest-wan-ipv4.sh | |
# and Cloudflare. | |
# The fetch-nest-wan-ipv4.sh script must be in whatever working directory ddclient | |
# is run from, or change the below path to the command to be absolute. | |
###################################################################### | |
## | |
## Define default global variables with lines like: | |
## var=value [, var=value]* | |
## These values will be used for each following host unless overridden |
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
FROM debian:latest | |
ENV USER me | |
RUN useradd --create-home --user-group "${USER}" | |
# HOME will be set already within the container, after setting user, but we | |
# set it here to be usable from within this Dockerfile. | |
ENV HOME "/home/${USER}" | |
WORKDIR "${HOME}" | |
RUN pwd |
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 | |
# Craig Hesling | |
# | |
# Find a change in Git's vast dangling blob/commmit archive. | |
# | |
# Usage: find-change.bash <grep-pattern1> [<grep-patter2> [grep-patterns...]] | |
mapfile -t LOST < <(git fsck --lost-found) | |
PATTERNS=( "$@" ) |
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
#include <atomic> | |
#include <chrono> | |
#include <iostream> | |
#include <semaphore> | |
#include <thread> | |
/* | |
* g++ -std=c++20 context-switch-vs-spin-wait.cc && ./a.out | |
*/ |
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
# This is an example ddclient configuration that uses fetch-nest-wan-ipv4.sh | |
# and Cloudflare. | |
# The fetch-nest-wan-ipv4.sh script must be in whatever working directory ddclient | |
# is run from, or change the below path to the command to be absolute. | |
###################################################################### | |
## | |
## Define default global variables with lines like: | |
## var=value [, var=value]* | |
## These values will be used for each following host unless overridden |
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
/* | |
* sample_noise.c | |
* | |
* Created on: Sep 10, 2018 | |
* Author: Craig Hesling | |
*/ | |
#include <xdc/runtime/System.h> | |
#include <ti/sysbios/BIOS.h> // BIOS_WAIT_FOREVER | |
#include <ti/sysbios/knl/Event.h> |