This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# Wrapper around Synology_HDD_db. | |
# | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
PS4func() { | |
local lineno="$1" | |
local i f='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# Standardized install of iperf. | |
# | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
PS4func() { | |
local lineno="$1" | |
local i f='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.env* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# Recreate a git repo from a bunch of PyPI releases. | |
# | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
#set -o xtrace | |
PACKAGE=arcgis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# Sets the file modification time to that of the filename from a | |
# Google Takeout export of Nest videos and images. | |
# | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
#set -o xtrace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env pwsh | |
<# | |
Notes as code for creating a minimal WSL image. | |
This is not docker! | |
#> | |
#Requires -Version 7.4 | |
Set-StrictMode -Version Latest | |
$ErrorActionPreference = 'Stop' | |
# TODO: parameterize all these hard-coded vars |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import geojson | |
from shapely.geometry import shape | |
o = { | |
"coordinates": [[[23.314208, 37.768469], [24.039306, 37.768469], [24.039306, 38.214372], [23.314208, 38.214372], [23.314208, 37.768469]]], | |
"type": "Polygon" | |
} | |
s = json.dumps(o) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL:= /usr/bin/env bash | |
PY:= python3.12 | |
NOW:= $(shell date -Is) | |
venv:= .venv | |
# TODO: prevent empty $(venv)!! or leading / from causing havoc in really-clean! | |
vb:= $(venv)/bin/ | |
vN:= $(venv).$(NOW) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# Install rclone on a Go-less system using Go in Docker. | |
# | |
set -ex | |
# latest stable release | |
RC_TAG=v1.64.2 | |
GO_VER=1-bookworm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# Install direnv on a Go-less system using Go in Docker. | |
# | |
set -ex | |
# latest stable release | |
#DIRENV_VER=v2.32.3 | |
# don't use above as much is fixed in master |
NewerOlder