Skip to content

Instantly share code, notes, and snippets.

View zakame's full-sized avatar

Zak B. Elep zakame

View GitHub Profile
@WitherOrNot
WitherOrNot / tmogged.cmd
Last active October 31, 2026 19:40
i'm sorry dave
<# :
:: I wonder who made Task Manager...
@setlocal DisableDelayedExpansion
@echo off
echo "%*" | find /i "-el" >nul && set _elev=1
set _PSarg="""%~f0""" -el
@RandalSchwartz
RandalSchwartz / 000 README.md
Last active November 12, 2026 17:14
Randal's Workflow (this week, anyway)

Randal's Preferred Ticket Resolution Workflow — Human Overview & Series Links

👋 Human Reader Note: The files below (SKILL.md, GLOBAL_RULES.md, and 01..10_*.md) are the compiled machine-code / prompt instruction set read directly by AI agents at runtime. They are intentionally written in dense, formal systems notation (Makefile DAGs, Smalltalk-80 StateGraph closures, and SCAR-* identifiers) because those tokens bind tightly to an LLM's pre-training weights. If you are a human reading this for the first time, start with the 30-Second Plain-English Overview right below!


🧭 30-Second Plain-English Overview: Who the Agents Are & What the Human Does

Instead of letting one long-running AI chat session write code, run tests, and review its own work until its context window fills up and it starts hallucinating, this workflow splits every ticket across 1 Supervisor + 4 specialized short-lived Worker Agents, separated by **4 Human Check

@deefdragon
deefdragon / migrate.configmap.yaml
Last active July 17, 2025 15:01
Migrating Kubernetes PVC/PVs from one storage class to another
apiVersion: v1
kind: ConfigMap
metadata:
# any name can be used; Velero uses the labels (below)
# to identify it rather than the name
name: change-storage-class-config
# must be in the velero namespace
namespace: velero
# the below labels should be used verbatim in your
# ConfigMap.
@ctrlcctrlv
ctrlcctrlv / rust-maintainer-perfectionism.md
Last active November 16, 2025 08:09
Rust maintainer perfectionism

Rust maintainer perfectionism, or, the tragedy of Alacritty

I did not submit this to Hacker News and did not intend that this post would have high circulation but have no real problem with it being there or with it having such. I have more recent comments below. This post is from January 2020 and predates the Modular Font Editor K (MFEK) project.

I have not worked on Rust projects in quite a while, and don't know if I ever will again. I feel many crate maintainers are way too perfectionist, for example, despite all the developer hours that went into this PR, it took the effort within years to be (halfway) merged.

There's always a reason not to merge, isn't there? It would be better done with a new nightly language feature, or the function signature should have a where clause, or the documentation is not perfect. There's always a new nit to pick in the world of Ru

@Ovid
Ovid / cor.md
Last active September 12, 2021 08:02
Cor—A minimal object system for the Perl core

NAME

Cor — A minimal OO proposal for the Perl core

VERSION

This is version 0.10 of this document.

AUTHOR

@jackrusher
jackrusher / gcloud-tramp.el
Created June 19, 2019 13:58
Tramping into GCloud instances from within emacs
;; make sure you've set your default project with:
;; gcloud config set project <project-name>
(require 'tramp)
(add-to-list 'tramp-methods
'("gcssh"
(tramp-login-program "gcloud compute ssh")
(tramp-login-args (("%h")))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
@krisleech
krisleech / renew-gpgkey.md
Last active November 16, 2026 20:01
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@mbbx6spp
mbbx6spp / .00readme.org
Last active May 26, 2024 22:53
A caching and persistent Nix shell with direnv

Cached and Persistent Nix shell with direnv integration

Problem being solved

  • the default direnv Nix integration from projects loads a Nix shell every new terminal or every time shell.nix and/or default.nix changes. On larger projects with a lot of Nix shell dependencies, that can cause the terminal to take more than 6 seconds to load, which significantly degrades the developer experience (DX).
  • when a developer garbage collects in their Nix store, often the Nix shell dependencies are deleted also which causes a slow start the next time the project’s Nix shell is requested, also degrading developer experience (DX).

Solution outline

  • on first Nix shell load, the Nix shell is evaluated fully such that direnv dumps the environment from the spawn Nix shell process
@peti
peti / README.md
Last active January 29, 2024 00:21
Make NixOS provide version-specific LOCALE_ARCHIVE environment variables

This NixOS code ensures that the system provide version-specific $LOCALE_ARCHIVE environment variables to mitigate the effects of NixOS/nixpkgs#38991.

To deploy it, copy the file into your /etc/nixos folder using a file name like multi-glibc-locale-paths.nix. Then edit your configuration.nix file to contain the attribute:

imports = [ ./multi-glibc-locale-paths.nix ];
@madumlao
madumlao / pi.py
Created April 21, 2018 02:25
Calculates and prints pi
from __future__ import print_function
def picount(n):
count = 2.0
i = 0
j = 1
for k in range(0,n):
if k % 2 == 0:
i += 2
else: