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
View debian-notes.md

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
kergoth / PROGRESS.md
Last active October 31, 2023 16:57
Industrial OS On-Boarding
View PROGRESS.md

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
kergoth / README.md
Created November 22, 2012 22:05
Quick prototype of a variable filtered bitbake -e
View README.md

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
kergoth / trap-set-e-test.sh
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.
View trap-set-e-test.sh
#!/bin/sh
. $(dirname "$0")/trap.sh
set -e
foo () {
bar "$@" alpha beta
}
View functions.sh
#!/usr/bin/env bash
set -euo pipefail
msg() {
fmt="$1"
if [ $# -gt 1 ]; then
shift
fi
# shellcheck disable=SC2059
View memoize.bbclass
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}"
View sync.txt
## Projects by Authors ## {{{1
# Freeware Software by Bálint Tóth (ex Bali's Calculator)
./Authors/Bálint Tóth/ wayback http://tothb.ehc.hu/software/ tothb.ehc.hu_IA/
# Dave Dunfield's "widgets" for DOS
./Authors/Dave Dunfield/ wget http://dunfield.classiccmp.org/dos/index.htm
# ecm's projects
./Authors/ecm/ wget https://pushbx.org/ecm/download/
@kergoth
kergoth / .envrc
Last active December 29, 2022 18:49
devbox test
View .envrc
if [ -x ./devbox ]; then
devbox () {
./devbox "$@"
}
fi
use_devbox() {
watch_file devbox.json
eval $(devbox shell --print-env)
}
View gist:d7ad882d07e63811cd5773b4f8d0c4b8
diff --git i/home.nix w/home.nix
index aedec3b..84c5bc4 100644
--- i/home.nix
+++ w/home.nix
@@ -10,6 +10,8 @@
# https://rycee.gitlab.io/home-manager/options.html
home.stateVersion = "22.05";
+ nixpkgs.config.allowUnfree = true;
+
View homedir_install.sh
#!/bin/bash
proot_url=https://proot.gitlab.io/proot/bin/proot
bindir=${XDG_DATA_HOME:-$HOME/.local/share}/../bin
scriptdir="$(cd "$(dirname "$0")" && pwd -P)"
PATH=$bindir:$PATH
set -euo pipefail
mkdir -p "$bindir"