Skip to content

Instantly share code, notes, and snippets.

View dacr's full-sized avatar
🕷️

Crosson David dacr

🕷️
View GitHub Profile
@dacr
dacr / exif-current-directory-fix-date-and-autoinc.sh
Last active February 3, 2026 20:26
Fix photo exif camera shoot date time for all files within the current directory / published by https://github.com/dacr/code-examples-manager #16b49052-c908-4e54-ad2c-0c6d09703b66/c8d48a66e79c392d667c35f83b65976722a3ad4d
## summary : Fix photo exif camera shoot date time for all files within the current directory
## keywords : bash, exiftool, timestamp,
## publish : gist
## authors : David Crosson
## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
## id : 16b49052-c908-4e54-ad2c-0c6d09703b66
## created-on : 2025-08-06T07:07:56+02:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : sh $file
@dacr
dacr / canon5d-mov-to-mp4.sh
Last active February 3, 2026 20:21
Converts CANON 5D mark IV 4K mov (yuvj422p) files in the current directory to MP4 (yuv420p) / published by https://github.com/dacr/code-examples-manager #2da6b78e-ae05-4460-853a-e4abf0e245dd/799e19961e49a5377619bad2d18db7be78b56df7
## summary : Converts CANON 5D mark IV 4K mov (yuvj422p) files in the current directory to MP4 (yuv420p)
## keywords : bash, ffmpeg, canon, 5DMarkIV, yuvj422p
## publish : gist
## authors : David Crosson
## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
## id : 2da6b78e-ae05-4460-853a-e4abf0e245dd
## created-on : 2025-05-11T10:08:56+02:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : sh $file
@dacr
dacr / jing-repl.sh
Last active February 3, 2026 20:24
JING enabled scala-cli REPL / published by https://github.com/dacr/code-examples-manager #eb66e944-968e-49d0-94fe-315110a1b9cd/67de50c073ba8e4f6ada7321a8ebbefe29e54335
#!/usr/bin/env bash
## summary : JING enabled scala-cli REPL
## keywords : bash, jing, repl, scala-cli
## publish : gist
## authors : David Crosson
## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
## id : eb66e944-968e-49d0-94fe-315110a1b9cd
## created-on : 2025-05-06T15:52:24+02:00
## managed-by : https://github.com/dacr/code-examples-manager
@dacr
dacr / x-api-posts-list.sc
Last active February 3, 2026 20:22
X API tweets list / published by https://github.com/dacr/code-examples-manager #47b77580-a424-456d-a453-c57caf17ecd1/32c8ccd4875134593fa544cbb0c258fad4b05566
// summary : X API tweets list
// keywords : scala, zio, sttp, x-api
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 47b77580-a424-456d-a453-c57caf17ecd1
// created-on : 2025-04-07T23:28:49+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / catsparse-hello-1.sc
Last active February 3, 2026 20:22
cats-parse graph query language experiment - hello world 1 / published by https://github.com/dacr/code-examples-manager #0d961a8d-0863-4c3f-92d5-793e6f86ff7a/f43eda0d7f0d565e5c20b665f65e44ea04cd8cb7
// summary : cats-parse graph query language experiment - hello world 1
// keywords : scala, typelevel, cats-parse, hello-world, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 0d961a8d-0863-4c3f-92d5-793e6f86ff7a
// created-on : 2025-03-13T14:02:18+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / closures.go
Last active February 3, 2026 20:22
go closures / published by https://github.com/dacr/code-examples-manager #0fe71bda-9959-438c-adf7-4b53c50fea24/a4db48d4d227551ef41eaf6d5d7488892353f831
/*?sr/bin/true; exec /usr/bin/env nix-shell -p go --run "go run $0" #*/
// summary : go closures
// keywords : go, closures, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 0fe71bda-9959-438c-adf7-4b53c50fea24
// created-on : 2025-03-27T10:08:08+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : nix-shell -p go --run "go run $file"
@dacr
dacr / generics.go
Last active February 3, 2026 20:22
go generics / published by https://github.com/dacr/code-examples-manager #34fb816b-0528-47fe-91b5-0173ffa670a5/3dfdf8636f815015b1cf33fefb44b430f0d6ad9c
/*?sr/bin/true; exec /usr/bin/env nix-shell -p go --run "go run $0" #*/
// summary : go generics
// keywords : go, generics, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 34fb816b-0528-47fe-91b5-0173ffa670a5
// created-on : 2025-03-27T09:36:13+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : nix-shell -p go --run "go run $file"
@dacr
dacr / concurrency-singleton.go
Last active February 3, 2026 20:26
go routines singleton / published by https://github.com/dacr/code-examples-manager #bf57f6e8-ddad-427b-99bd-e5027c56e9db/be93b781be2717ad9c5b6419c9875b9eca182fd6
/*?sr/bin/true; exec /usr/bin/env nix-shell -p go --run "go run $0" #*/
// summary : go routines singleton
// keywords : go, goroutines, singleton, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : bf57f6e8-ddad-427b-99bd-e5027c56e9db
// created-on : 2025-03-27T14:28:34+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : nix-shell -p go --run "go run $file"
@dacr
dacr / defer-trap.go
Last active February 3, 2026 20:19
go defer trap / published by https://github.com/dacr/code-examples-manager #613fc74b-18b9-4df3-a193-a8752921526c/10188c3b5470f735fbe140bce957db66b901d74f
/*?sr/bin/true; exec /usr/bin/env nix-shell -p go --run "go run $0" #*/
// summary : go defer trap
// keywords : go, defer, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 613fc74b-18b9-4df3-a193-a8752921526c
// created-on : 2025-03-27T10:06:35+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : nix-shell -p go --run "go run $file"
@dacr
dacr / concurrency-goroutines-atomics.go
Last active February 3, 2026 20:18
go routines atomics / published by https://github.com/dacr/code-examples-manager #21f820ec-141e-4ca2-808d-3dfde9948b0c/8e93dbe6d1a03f38b56978664df44c11d68c8ac9
/*?sr/bin/true; exec /usr/bin/env nix-shell -p go --run "go run $0" #*/
// summary : go routines atomics
// keywords : go, goroutines, atomics, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 21f820ec-141e-4ca2-808d-3dfde9948b0c
// created-on : 2025-03-27T15:36:24+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : nix-shell -p go --run "go run $file"