Skip to content

Instantly share code, notes, and snippets.

View dacr's full-sized avatar
🕷️

Crosson David dacr

🕷️
View GitHub Profile
@dacr
dacr / 1.jpg
Created December 15, 2025 17:29
show photo / published by https://github.com/dacr/code-examples-manager #cea531f9-791b-4fb8-b34a-ebcdd5cea6a7/48377da3fb79be7ae778e41dd9dd9bf71fdbc546
����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
Created December 15, 2025 17:29
Draws several photos / published by https://github.com/dacr/code-examples-manager #f2731de7-9004-4ec6-b11a-7a95721b9dde/19105cbca5023e8c3ecbe89b50417215d1be8ce8
����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
Created December 15, 2025 17:29
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/483b12d17643b0835f7d0d1bf0aed75291389d92
## 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 NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## 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
Created December 15, 2025 17:29
dummy java mcp server / published by https://github.com/dacr/code-examples-manager #f6ab2228-9d0c-48e3-8d3a-b11c46152484/e92bd567900ce32d8879b37b26fad3d9bfb02101
// summary : dummy java mcp server
// keywords : artificial-intelligence, generative-ai, llm, ai, mcp, mcp-server, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// 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
Created December 15, 2025 17:29
hello mcp server / published by https://github.com/dacr/code-examples-manager #dccd5b3c-b53d-4c0b-8f91-b9889c3203f7/a993f011a8447a5f4162fd1cd13cf6b3db9f42c
// summary : hello mcp server
// keywords : artificial-intelligence, generative-ai, llm, ai, mcp, mcp-server, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// 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
Created December 15, 2025 17:29
Convert iphone HEIC photo to PNG / published by https://github.com/dacr/code-examples-manager #533ad129-77f7-4664-9871-67f96c0bcea2/d523556f5b1e1663ddc4f313cfc878f12f1d0c89
## summary : Convert iphone HEIC photo to PNG
## keywords : bash, iphone, HEIC, PNG, convert
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## 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
Created December 15, 2025 17:29
dummy mcp server / published by https://github.com/dacr/code-examples-manager #dd4efaa5-f30c-4bb2-98bd-df2ace4601c1/195a9ae363b1731a0f365c23b9596c1fe8c461c
// summary : dummy mcp server
// keywords : artificial-intelligence, generative-ai, llm, ai, mcp, mcp-server, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// 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
Created December 15, 2025 17:29
tapir with pekko http / published by https://github.com/dacr/code-examples-manager #2f3b6ce0-298d-4863-aa6a-753ee40829d2/34000e06537782ae4972156d40bfaf1005da20e9
// summary : tapir with pekko http
// keywords : scala, pekko, tapir, @testable, @exclusive
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// 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
Created December 15, 2025 17:29
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/de043dcf55b5da39b9bcdf372bd04a429456e1b0
// 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 NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// 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 :
@dacr
dacr / exif-current-directory-fix-date-and-autoinc.sh
Created December 15, 2025 17:29
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/3ca1fff89f66b14630eecdc790e7b2b92ad278bc
## 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 NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## 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