Skip to content

Instantly share code, notes, and snippets.

View anoduck's full-sized avatar
🦆
Quackity, Quack!

Anoduck, The Anonymous Duck anoduck

🦆
Quackity, Quack!
View GitHub Profile
@anoduck
anoduck / 1-zig-cheatsheet
Created November 21, 2024 21:47 — forked from jdmichaud/1-zig-cheatsheet
Zig cheatsheet
https://ziglang.org/documentation/master/#Pointers
*T - single-item pointer to exactly one item.
Supports deref syntax: ptr.*
[*]T - pointer to unknown number of items. (eq. of *T in C)
Supports index syntax: ptr[i]
Supports slice syntax: ptr[start..end]
Supports pointer arithmetic: ptr + x, ptr - x
@anoduck
anoduck / bash_logging.md
Created November 23, 2025 09:30 — forked from GingerGraham/bash_logging.md
Bash Logging

Bash Logging Module

A flexible, reusable logging module for Bash scripts that provides standardized logging functionality with various configuration options.

Features

  • Standard syslog log levels (DEBUG, INFO, WARN, ERROR, CRITICAL, etc.)
  • Console output with color-coding by severity
  • Optional file output
  • Optional systemd journal logging
@anoduck
anoduck / Makefile
Last active January 3, 2026 21:40 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.