Skip to content

Instantly share code, notes, and snippets.

View dotysan's full-sized avatar

Curtis Doty dotysan

View GitHub Profile
@dotysan
dotysan / CAHOLD.thinkscript
Last active May 1, 2026 23:15
CAHOLD ThinkScript
#
# This is a refactorted ThinkScript for identifying:
# - close above high of a low day (CAHOLD)
#
# Original: https://tos.mx/3Kykh6C
# - has inconsistent lookback/high references; retained here only for provenance
#
# Notes:
# - Uses daily aggregation explicitly.
# - priorLowestLow is the lowest low among the prior 3 completed daily candles.
@dotysan
dotysan / rawk-test.sh
Created April 17, 2026 23:30
The Rust AWK (rawk) fails to dedupe in some cases.
#! /usr/bin/env bash
#
# The Rust AWK (rawk) fails to dedupe in some cases.
# https://github.com/stefanalfbo/rawk/issues/19
#
INPUT=$(< test-input.txt)
PROG='
$1 !=prev {
print
@dotysan
dotysan / !Install static pv using docker.md
Last active April 15, 2026 21:42
build static pv in a docker container & install in user home

build static pv in a docker container & install in user home

This installs minimalist Pipe Viewer.

Installation

  • ./install-pv.sh
@dotysan
dotysan / perkeep-build.sh
Created March 20, 2026 15:04
Install perkeep (client utils) on a Go-less system using Go in Docker
#! /usr/bin/env bash
#
# Install perkeep (client utils) on a Go-less system using Go in Docker.
#
set -e
set -u
set -x
main() {
# latest stable release
@dotysan
dotysan / all-my-gists.sh
Last active March 7, 2026 21:18
Backup all my gists
#! /usr/bin/env bash
#
# Backup all my gists.
#
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace
printf -v TODAY '%(%F)T'
@dotysan
dotysan / fclones-build.sh
Last active March 7, 2026 00:55
Install fclones on a Rust-less system using Rust in Docker
#! /usr/bin/env bash
#
# Install fclones on a Rust-less system using Rust in Docker.
#
set -e
set -u
set -x
# latest stable release
FC_TAG=v0.35.0
@dotysan
dotysan / get-stores.sh
Last active March 1, 2026 22:09
Harvest all stores from wp-store-locator and generate GeoJSON for Google Earth
#! /usr/bin/env bash
# shellcheck disable=SC1112
#
# Harvest all stores from wp-store-locator and generate GeoJSON for Google Earth.
#
# Assumes continental US: latitude range 23° to 50° North and longitude range 67° to 126° West.
#
set -o errexit
set -o errtrace
set -o pipefail
@dotysan
dotysan / find-mc-libcomerr-bug.sh
Last active October 7, 2025 19:08
Scan *all* debian image tags from Docker Hub and report which ones result in `ldd /usr/bin/mc` showing a broken libcom_err.so.2 after installing mc.
#!/usr/bin/env bash
#
# find-mc-libcomerr-bug.sh
# Scan *all* debian image tags from Docker Hub and report
# which ones result in `ldd /usr/bin/mc` showing a broken libcom_err.so.2
# after installing mc.
IMAGE_REPO='library/debian'
PAGE_SIZE=100 # API max page size
REPO_API='https://registry.hub.docker.com/v2/repositories'
@dotysan
dotysan / !Install static libheif using docker.md
Last active September 14, 2025 16:59
build static libheic in a docker container & install in user home

build static libheic in a docker container & install in user home

This installs minimalist heif-info & heif-convert that can only decode HEIC and encode JPEG.

Installation

  • ./install-heic.sh
@dotysan
dotysan / !VS Code on older Linux.md
Last active February 12, 2026 06:22
Allow VS Code Server to run on older Linux