Skip to content

Instantly share code, notes, and snippets.

View cjtheham's full-sized avatar
🐛
perpetually bug hunting

CJ Pokowitz cjtheham

🐛
perpetually bug hunting
View GitHub Profile
@cjtheham
cjtheham / timesheet.sh
Last active December 31, 2025 20:58
A bash script for tracking my working hours for contract employment.
#!/bin/bash
# Check if timew is installed, otherwise rest of program fails.
# from: https://stackoverflow.com/questions/592620/how-can-i-check-if-a-program-exists-from-a-bash-script
if ! [ -x "$(command -v timew)" ]; then
echo 'Error: timewarrior (timew) is not installed.'
echo 'Go to https://timewarrior.net/releases/ to install'
exit 1
fi
@cjtheham
cjtheham / Dockerfile
Last active July 17, 2025 00:31
Keysight ADS on Fedora 42 (or other Linux OS) with Podman
FROM ubuntu:20.04
ENV DISPLAY=$DISPLAY
ENV HPEESOF_DIR=/opt/ads
ENV LD_LIBRARY_PATH=/opt/ads/lib/linux_x86_64:$LD_LIBRARY_PATH
ENV PATH=/opt/ads/bin:$PATH
ENV ADS_LICENSE_FILE=<TODO: PATH TO YOUR LICENSE FILE HERE>
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
echo "Etc/UTC" > /etc/timezone

Keybase proof

I hereby claim:

  • I am cjtheham on github.
  • I am ww0cj (https://keybase.io/ww0cj) on keybase.
  • I have a public key ASC6jkkIdjXlc6pRx7-ZKkikcuVrh2U9nDBOG91P_DHDhwo

To claim this, I am signing this object:

@cjtheham
cjtheham / adif-splitter.js
Last active August 5, 2023 04:04
RHR ADIF File Splitter (Split by Location) by K4BEN
/**
* @file RemoteHamRadio ADIF File Splitter Command Line Tool
* @copyright Ben Eastwood K4BEN 2022 (@k4ben on Github)
*/
const fs = require('fs');
const USAGE = "usage: node adif-splitter.js <file>\n\n" +
"split an RHR ADIF file by the \"APP_RHR_STATION_NAME\" field.\n";