Skip to content

Instantly share code, notes, and snippets.

View luisadha's full-sized avatar
🇵🇸
Free Palestine

Luis Adha luisadha

🇵🇸
Free Palestine
View GitHub Profile
@luisadha
luisadha / nix-env-packages.txt
Created May 10, 2025 17:33
cat nix-env-packages.txt #nix-env #-q
age-1.0.0 alsa-lib-1.2.6.1 alsa-utils-1.2.6 angband-4.2.4 bastet-0.43.2 bc-1.07.1 boxes-1.3 busybox-1.35.0 cmake-3.22.3 coreutils-9.0 crunch-3.6 curl-7.83.1 curseofwar-1.3.0 dialog-1.3-20211214 direnv-2.31.0 expect-5.45.4 fff-2.2 findutils-4.9.0 fira-code-6.2 fishplugin-pure-4.1.1 fortune-mod-3.14.0 gawk-5.1.1 gdb-12.1 getconf-glibc-2.34-210 gh-2.10.1
{
"categories": [
{
"id": "013d3b3d-b8bf-402e-bee8-022c6a925983",
"layoutType": "wide_grid",
"name": "API",
"sections": [
{
"id": "adcdd760-09a4-4331-bb75-5ba3c8aefec9",
"name": "Developer \u003e API \u003e Services"
@luisadha
luisadha / cigarettes-after-sex-prompt
Last active July 18, 2025 09:24
prompt minimal with bash-preexec
get_beat_time() {
local epoch=$(date +%s)
# Offset to BMT (UTC+1)
local bmt=$((epoch + 3600))
# Took secs since midnight (BMT)
local sec_since_midnight=$(( bmt % 86400 ))
local beat=$(( sec_since_midnight * 1000 / 86400 ))
printf "%03d\n" "$beat"
}
cigarettesAfterSex() {