Skip to content

Instantly share code, notes, and snippets.

@timstegeman
timstegeman / gist:2efc5d794c915ca8cfd6b17c2302e00e
Created April 18, 2026 13:26
Convert CLion CMake project to West project
sed -i "s/CMakePlainProjectFlavor/CMakeWestFlavor/" .idea/workspace.xml
@timstegeman
timstegeman / ncs_environment.sh
Created March 16, 2025 09:07
Simple script to source with CLion to setup NCS Environment
#!/bin/bash
NCS_VER="v2.9.1"
NRFUTIL=$(which nrfutil)
if [ -z "${NRFUTIL}" ]; then
echo "nrfutil not installed"
exit 1
fi
@timstegeman
timstegeman / linuxrc
Created October 15, 2023 08:01
linuxrc overlayfs
#!/bin/sh
on_exit()
{
mountpoint -q /proc && umount /proc
exec /sbin/init $*
}
trap on_exit 0
mount -t proc proc /proc || exit
@timstegeman
timstegeman / tds2k_capture.py
Created September 17, 2022 13:08
Simple script to capture the screen of a Tektronix TDS 2022B
#!/usr/bin/python3
# Simple script to capture the screen of a Tektronix TDS 2022B
from PIL import Image
from io import BytesIO
import sys
if len(sys.argv) != 2:
print("Usage: %s OUTPUT_FILE" % sys.argv[0])
@timstegeman
timstegeman / tds2k_capture.py
Created January 30, 2022 18:44
TDS2022B Screen capture script
#!/usr/bin/python3
# Simple script to capture the screen of a Tektronix TDS 2022B
from PIL import Image
from io import BytesIO
import sys
if len(sys.argv) != 2:
print("Usage: %s OUTPUT_FILE" % sys.argv[0])