Skip to content

Instantly share code, notes, and snippets.

View dacr's full-sized avatar
🕷️

Crosson David dacr

🕷️
View GitHub Profile
@dacr
dacr / zio-lmdb-basic-transaction.sc
Last active February 3, 2026 20:23
ZIO LMDB simple transaction example / published by https://github.com/dacr/code-examples-manager #a763b457-5b4c-4cdb-897c-23bb321ec2f9/a8e64022131ec339134c2ed4ef5665fefadddb77
// summary : ZIO LMDB simple transaction example
// keywords : scala, zio, lmdb, transaction, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : a763b457-5b4c-4cdb-897c-23bb321ec2f9
// created-on : 2026-02-03T08:55:25+01:00
// managed-by : https://github.com/dacr/code-people-manager
// run-with : scala-cli $file
@dacr
dacr / 1.jpg
Last active February 3, 2026 20:26
show photo / published by https://github.com/dacr/code-examples-manager #cea531f9-791b-4fb8-b34a-ebcdd5cea6a7/801f9a146853546f90f4689e3beb02b593dfebb4
����JFIF,,���ExifII*bj(1 r2�i��,,GIMP 2.10.342023:08:13 14:49:51��� �http://ns.adobe.com/xap/1.0/<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:GIMP="http://www.gimp.org/xmp/" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmpMM:DocumentID="gimp:docid:gimp:9e79d5d1-1e22-4cf5-b275-243a53066d26" xmpMM:InstanceID="xmp.iid:35b82595-b60e-4c7b-9e15-336b466457df" xmpMM:OriginalDocumentID="xmp.did:6783601a-acf9-4595-8886-e1fc40e6c52a" dc:Format="image/jpeg" GIMP:API="2.0" GIMP:Platform="Linux" GIMP:TimeStamp="1691930996630716" GIMP:Version="2.10.34" xmp:CreatorTool="GIMP
@dacr
dacr / 1.jpg
Last active February 3, 2026 20:25
Draws several photos / published by https://github.com/dacr/code-examples-manager #f2731de7-9004-4ec6-b11a-7a95721b9dde/38a474bfe6eb0baa914a257df3262e4f39a87fce
����JFIF,,���ExifII*bj(1 r2�i��,,GIMP 2.10.342023:08:13 14:49:51��� �http://ns.adobe.com/xap/1.0/<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:GIMP="http://www.gimp.org/xmp/" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmpMM:DocumentID="gimp:docid:gimp:9e79d5d1-1e22-4cf5-b275-243a53066d26" xmpMM:InstanceID="xmp.iid:35b82595-b60e-4c7b-9e15-336b466457df" xmpMM:OriginalDocumentID="xmp.did:6783601a-acf9-4595-8886-e1fc40e6c52a" dc:Format="image/jpeg" GIMP:API="2.0" GIMP:Platform="Linux" GIMP:TimeStamp="1691930996630716" GIMP:Version="2.10.34" xmp:CreatorTool="GIMP
@dacr
dacr / dji-mp4-optimize.sh
Last active February 3, 2026 20:26
Optimize DJI drone videos to reduce file size while maintaining acceptable quality / published by https://github.com/dacr/code-examples-manager #dd1484da-3678-4dd1-8c4a-6706dfd83b88/c6447a418e172246293cc8cccb5da2faa02f816e
## summary : Optimize DJI drone videos to reduce file size while maintaining acceptable quality
## keywords : bash, ffmpeg, dji, dji-air, dji-air-3s, air, ai3s
## publish : gist
## authors : David Crosson
## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
## id : dd1484da-3678-4dd1-8c4a-6706dfd83b88
## created-on : 2025-07-07T19:18:17+02:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : sh $file
@dacr
dacr / mcp-hello-mcp-server.sc
Last active February 3, 2026 20:25
dummy java mcp server / published by https://github.com/dacr/code-examples-manager #f6ab2228-9d0c-48e3-8d3a-b11c46152484/33abcedaefc9c34c7f63fc076d8b17a174a7cc82
// summary : dummy java mcp server
// keywords : artificial-intelligence, generative-ai, llm, ai, mcp, mcp-server, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : f6ab2228-9d0c-48e3-8d3a-b11c46152484
// created-on : 2025-07-18T15:24:45+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / fastmcp-dummy-mcp-server.sc
Last active February 3, 2026 20:18
hello mcp server / published by https://github.com/dacr/code-examples-manager #dccd5b3c-b53d-4c0b-8f91-b9889c3203f7/ce8973fc0526fc5a09bfc991eb163f248c375d3c
// summary : hello mcp server
// keywords : artificial-intelligence, generative-ai, llm, ai, mcp, mcp-server, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : dccd5b3c-b53d-4c0b-8f91-b9889c3203f7
// created-on : 2025-07-01T14:23:09+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / iphone-heic-to-png.sh
Last active February 3, 2026 20:24
Convert iphone HEIC photo to PNG / published by https://github.com/dacr/code-examples-manager #533ad129-77f7-4664-9871-67f96c0bcea2/34c7d0f65f0f2ead35f28fe3d72fcda00203875e
## summary : Convert iphone HEIC photo to PNG
## keywords : bash, iphone, HEIC, PNG, convert
## publish : gist
## authors : David Crosson
## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
## id : 533ad129-77f7-4664-9871-67f96c0bcea2
## created-on : 2025-08-24T17:39:02+02:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : sh $file
@dacr
dacr / fastmcp-hello-mcp-server.sc
Last active February 3, 2026 20:19
dummy mcp server / published by https://github.com/dacr/code-examples-manager #dd4efaa5-f30c-4bb2-98bd-df2ace4601c1/d40b8baf304b3c0e54701a77793c2bc2db018f63
// summary : dummy mcp server
// keywords : artificial-intelligence, generative-ai, llm, ai, mcp, mcp-server, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : dd4efaa5-f30c-4bb2-98bd-df2ace4601c1
// created-on : 2025-07-18T14:52:24+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@dacr
dacr / tapir-pekko-http.sc
Last active February 3, 2026 20:21
tapir with pekko http / published by https://github.com/dacr/code-examples-manager #2f3b6ce0-298d-4863-aa6a-753ee40829d2/94127c41139d080515f14bc5ced9b5461394ddad
// summary : tapir with pekko http
// keywords : scala, pekko, tapir, @testable, @exclusive
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 2f3b6ce0-298d-4863-aa6a-753ee40829d2
// created-on : 2025-02-14T21:51:30+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
// test-with : curl -L http://127.0.0.1:8080/hello/david
@dacr
dacr / opensearch-reindex.sc
Last active February 3, 2026 20:20
Reindex user indices as required by opensearch 3 which no longer support opensearch 1.x indices / published by https://github.com/dacr/code-examples-manager #87e7c0d1-55da-4133-9f0e-da6ab7ac64fe/7dbfa69c0050593f6e1183474928fe074e036c68
// summary : Reindex user indices as required by opensearch 3 which no longer support opensearch 1.x indices
// keywords : scala, opensearch, migration, reindex, upgrade
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 87e7c0d1-55da-4133-9f0e-da6ab7ac64fe
// created-on : 2025-05-26T00:04:05+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
// attachments :