Skip to content

Instantly share code, notes, and snippets.

View dotemacs's full-sized avatar

Александар Симић dotemacs

View GitHub Profile
#!/usr/bin/env python3
"""
Extract Augment Chat data from VS Code workspace storage.
This script:
1. Takes a workspace directory path
2. Calculates the VS Code workspace storage hash using the correct algorithm
3. Finds the corresponding SQLite database
4. Extracts the Augment chat data
5. Formats it as readable Markdown
@dotemacs
dotemacs / changelog-96.txt
Created June 9, 2025 14:26
Changelog podcast episode #96 with Steve Yegge: https://changelog.com/friends/96
Changelog podcast episode #96 with Steve Yegge: https://changelog.com/friends/96
Welcome to Change Log and Friends, a weekly talk show about
babysitting AI agents. Thanks as always to our partners at Fly.io, the
public Cloud built for developers who ship. We love Fly. You might
too. Learn more at Fly.io.
Okay. Let's talk. Well, friends, Retul agents is here. Yes. Retul has
launched Retul agents.

Amp CLI, a bit overzealous?

When you run amp CLI in a "non standard" terminal, like the ones that are available in Emacs, like eat the terminal behaves strangely.

But if I run amp in eat it displays like so:

bash-5.2$ amp
Type \ followed by Enter to insert newlines, or use Shift+Enter in supported terminals.
Interrupt the agent with Ctrl+C, exit with Ctrl+D.
#!/bin/sh
version="0.0.1"
what_arch=`uname -m`
if [ ${what_arch} == "x86_64" ]
then
arch="amd64"
elif [ ${what_arch} == "arm64"]
then
$ ./tofu apply -auto-approve
OpenTofu used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
OpenTofu will perform the following actions:
# local_file.hello_local_file will be created
+ resource "local_file" "hello_local_file" {
+ content = "Hello terraform local!"
@dotemacs
dotemacs / opentofu-encryption-configuration.md
Created April 4, 2024 12:58
Encryption configuration, for Unix/Linux shell returns exit code 1
(defn update-user
([^js db user]
(update-user db user nil))
([^js db user prev-username]
(let [batch (.batch db)]
(update-user db batch user prev-username)
(.commit batch)))
([^js db batch-or-transaction user prev-username]
(defn update-user
([^js db user]
(update-user db user nil))
([^js db user prev-username]
(let [batch (.batch db)]
(update-user db user prev-username batch)
(.commit batch)))
([^js db user prev-username batch]
@dotemacs
dotemacs / antifennel.el
Created January 12, 2023 15:44
Rough first draft of antifennel.el, a way to call `antifennel` CLI from within Emacs buffers
;; antifennel.el --- Turn Lua code into Fennel code
(defgroup antifennel nil
"Tool to convert Lua code into Fennel code."
:group 'tools)
(defcustom antifennel-cli "antifennel"
"Path to the antifennel executable"
:type 'string
:group 'antifennel)
@dotemacs
dotemacs / test-run.log
Created April 30, 2021 11:01
Test run of the konserve project, node port
$ clojure -A:dev:test -M -m kaocha.runner "$@"
Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true
Downloading: cider/cider-nrepl/0.19.0/cider-nrepl-0.19.0.pom from clojars
Downloading: lambdaisland/kaocha/1.0.641/kaocha-1.0.641.pom from clojars
Downloading: org/clojure/tools.trace/0.7.10/tools.trace-0.7.10.pom from central
Downloading: fipp/fipp/0.6.14/fipp-0.6.14.pom from clojars
Downloading: cider/orchard/0.3.4/orchard-0.3.4.pom from clojars
Downloading: mvxcvi/puget/1.0.2/puget-1.0.2.pom from clojars
Downloading: compliment/compliment/0.3.8/compliment-0.3.8.pom from clojars
Downloading: cljfmt/cljfmt/0.6.1/cljfmt-0.6.1.pom from clojars