Skip to content

Instantly share code, notes, and snippets.

View kergoth's full-sized avatar

Christopher Larson kergoth

  • Siemens Digital Industries Software
  • X @kergoth
View GitHub Profile

Notes from review of Debian Developer Documentation

Policy Manual

A native source package is one that does not distinguish between Debian packaging releases and upstream releases. A native source package contains a single tar file of source material, and the versioning does not have a Debian-specific component. Native packages are normally (but not exclusively) used for software that has no independent existence outside of Debian, such as software written specifically to be a Debian package.

Source packages should specify the most recent version number of this policy document with which your package complied when it was last updated.

The version is specified in the Standards-Version control field. The format of the Standards-Version field is described in Standards-Version.

kergoth /
Last active October 31, 2023 16:57
Industrial OS On-Boarding

Progress on on-boarding to Industrial OS

My actions

Ongoing / In progress

  • Reading of the available Industrial OS pages in confluence, found via search, unstructured.
  • Brushing up on isar in general, re-reading its user manual, etc.
  • Setting up a debian container and industrial OS workspace using the current 'all.xml' manifest to kick off a build as a baseline for development and get a feel for the product build.
kergoth /
Created November 22, 2012 22:05
Quick prototype of a variable filtered bitbake -e

bitbake-env: improved version of bitbake -e

To install

The script may be run from anywhere, as long as 'bitbake' can be found in your PATH.

Suggestion: alias bbe=bitbake-env

kergoth /
Last active June 22, 2023 16:33
Experimental verbose set -e handler for both bash and non-bash cases, with example use of BASH_ARG & BASH_ARGV. I realize enabling extdebug for an exceptional case isn't efficient, but I wanted sane example usage of those variables, so here it is.
. $(dirname "$0")/
set -e
foo () {
bar "$@" alpha beta
#!/usr/bin/env bash
set -euo pipefail
msg() {
if [ $# -gt 1 ]; then
# shellcheck disable=SC2059
def memoize(d, varname, func):
"""Calculate the result of func once, replacing the value in the metadata.
This will run the function once rather than every time it's used, but unlike
immediate expansion, this initial expansion occurs the first time it's used.
Example Usage:
TESTVAR = "${@memoize(d, 'TESTVAR', lambda: myfunction(d) or '')}"
TESTVAR[vardepvalue] = "${TESTVAR}"
## Projects by Authors ## {{{1
# Freeware Software by Bálint Tóth (ex Bali's Calculator)
./Authors/Bálint Tóth/ wayback tothb.ehc.hu_IA/
# Dave Dunfield's "widgets" for DOS
./Authors/Dave Dunfield/ wget
# ecm's projects
./Authors/ecm/ wget
kergoth / .envrc
Last active December 29, 2022 18:49
devbox test
if [ -x ./devbox ]; then
devbox () {
./devbox "$@"
use_devbox() {
watch_file devbox.json
eval $(devbox shell --print-env)
diff --git i/home.nix w/home.nix
index aedec3b..84c5bc4 100644
--- i/home.nix
+++ w/home.nix
@@ -10,6 +10,8 @@
home.stateVersion = "22.05";
+ nixpkgs.config.allowUnfree = true;
scriptdir="$(cd "$(dirname "$0")" && pwd -P)"
set -euo pipefail
mkdir -p "$bindir"