Examples for how to create your own info panel, warning box and other decent looking notification in GitHub markdown.
All the boxes are single/two cell tables or two row tables.
❗ You have to read about this |
---|
Note
This guide was last updated on 27th June 2024
Many QNAP NAS devices only come with 1Gbe network interfaces. These devices can easily benefit from a simple network upgrade by connecting the ubiquitious 2.5Gbe USB NICs from Realtek. Unfortunately, some of the older QNAP NAS systems do not support the newer r8156 based 2.5Gbe NICs or r8157 based 5Gbe NICs as they run an older 4.x linux kernel and the r8152 source files included with the older linux kernel are based off an older codebase that predates the 8156/8157 series.
With some elbow grease however, we can build support for the 2.5 & 5 Gbe adapters and easily upgrade functionality.
Testing to confirm that mTLS works in Vector to Vector connections.
Alice and Bob are mutually authenticated using their own TLS self signed
certificates. A malicious attacker, Mallory, can not impersonate Alice, nor
can they impersonate Bob if both Alice and bob set
tls.verify_certificate = true
and set tls.ca_file
to the other's self signed
certificate.
A simple Packer + Vagrant install of Ubuntu 20.04 (Focal Fossa) LTS server for arm64, to run from my M1 Mac on Parallels Pro (17.1). Currently on MacOS Monterey.
Packer will run the ansible playbook.yml
before the machine is shutdown and exported.
The installation is automated by cloud-init (which reads user-data
). The file meta-data
just needs to be an empty text file (you need to create this - no blank files or folders allowed in gists).
ubuntu2004/
In JavaScript projects, I used to use dotenv so that I could put local environment variables in a .env
file for local development. But dotenv requires you to add code to your project.
With direnv, you can put local env vars in a .envrc file and those env vars are loaded automatically in the shell.
For these steps, it is assummed that you have installed Git Bash on Windows. I also use VSCode as my editor.
c:\tools
to put the direnv.exe
file and add it to the Windows PATH#Nexus Raw Artifact upload using cURL | |
curl --fail -u user:password --upload-file file.zip 'https:/nexus-repository.claudiosteuernagel.com/repository/my-raw-repo/my-directory/file.zip' |
import argparse | |
import warnings | |
class DeprecateAction(argparse.Action): | |
def __call__(self, parser, namespace, values, option_string=None): | |
warnings.warn("Argument %s is deprecated and is *ignored*." % self.option_strings) | |
delattr(namespace, self.dest) | |
#!/usr/bin/env sh | |
set -- $(locale LC_MESSAGES) | |
yesptrn="$1"; noptrn="$2"; yesword="$3"; noword="$4" | |
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) | |
input_sink=$(pacmd stat |grep -o -P "(?<=Default source name: ).*") | |
output_sink=$(pacmd stat |grep -o -P "(?<=Default sink name: ).*") | |
echo "Input:" $input_sink |