Skip to content

Instantly share code, notes, and snippets.

@dbluhm
dbluhm / README.md
Created April 23, 2025 19:59
zk zsh completion

zk zsh Completion

This gist contains a zsh completion script for the zk (Zettelkasten) CLI, plus instructions for installation and customization.


Installation

  1. Create a completion directory (if you haven’t already):
@dbluhm
dbluhm / Dockerfile
Last active August 1, 2024 07:50
Askar DB Provision Behavior test
FROM python:3.9-slim
WORKDIR /app
RUN pip install aries-askar
CMD ["python", "main.py"]
@dbluhm
dbluhm / Dockerfile.anoncreds-test
Last active July 10, 2023 15:08
Testing anoncreds changes
FROM python:3.9-slim
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y git
RUN pip install git+https://github.com/Indicio-tech/acapy-minimal-example.git
ADD anoncreds_test.py .
CMD ["python", "anoncreds_test.py"]
@dbluhm
dbluhm / Person.java
Last active June 22, 2020 21:05
Eclipse ICE @dataelement Generation Example
package org.eclipse.ice.renderer;
import org.eclipse.ice.dev.annotations.IDataElement;
/**
* This interface satisfies the dependencies of the @DataElement Annotation and
* was auto-generated by the ICE Framework.
*/
public interface Person extends IDataElement<Person> {
@dbluhm
dbluhm / links.rb
Created March 22, 2018 20:18
Ruby vs. Rust - roughly equivalent linking programs
@dbluhm
dbluhm / semantics_of_transform.md
Last active March 23, 2018 21:35
Semantics of if-simplification transform

if-goto transformation

An if-else-if-else statement in C is written as follows:

if (/* cond1 */) {
    /* cond1 true branch */
} else if (/* cond2 */) {
    /* cond2 true branch */
} else {
 /* false branch */
<?php
namespace Fsl\FastRoute;
class NamedRouteCollector extends \FastRoute\RouteCollector {
/** @var array */
private $lookup;
/**
* Constructs a route collector.
@dbluhm
dbluhm / telebot.md
Last active November 14, 2022 00:37
Planning document for `telebot` project

Telegram Bot

GistID: 9d5356c1ec9e7543e08684caa71006b1

Goals

  1. Written in Rust
  2. Unit Testable
  3. Easy to add commands and keyboards
    • Encoded as TOML