Skip to content

Instantly share code, notes, and snippets.

View Nitive's full-sized avatar

Maxim Samoilov Nitive

  • Georgia, Tbilisi
  • 11:38 (UTC +04:00)
View GitHub Profile
@ityonemo
ityonemo / test.md
Last active January 26, 2026 14:48
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@mrgrain
mrgrain / pinentry-1password.sh
Last active January 1, 2026 12:41
1Password CLI pinentry for gpg-agent
#!/bin/sh
COMMAND="op read $OP_PIN_ITEM"
echo "OK"
while read cmd rest; do
echo "cmd=$cmd rest=$rest" >&2
echo "cmd=$cmd rest=$rest" >> $LOG
case "$cmd" in
\#*)