Skip to content

Instantly share code, notes, and snippets.

@NoteAfterNote
NoteAfterNote / note-after-note-2025-april-7-tar-archive-mkfs-ext4-filesystem.md
Last active December 25, 2025 23:29
Using a tar archive with "mkfs.ext4 -d" to populate the ext4 filesystem

NoteAfterNote-11
Using a tar archive with "mkfs.ext4 -d" to populate the ext4 filesystem
Published: April 7, 2025
Link: https://gist.github.com/NoteAfterNote/65a139ce70cbf27c4875aaaee0e779cc


Here's the description for "-d root-directory|tarball" from the mkfs.ext4 man page:

"Copy the contents of the given directory or tarball into the root directory of the file system. Tarball input is only available if mke2fs was compiled with libarchive support enabled and if the libarchive shared library is available at run-time. The special value "-" will read a tarball from standard input."

Termux: Enable Wake-Lock

@raiph
raiph / .md
Last active December 25, 2025 23:29
Raku's "core"

Then mathematical neatness became a goal and led to pruning some features from the core of the language.

— John McCarthy, History of Lisp

If you prefer programming languages with a tidy and tiny core, you're in for a treat. This article drills down to the singleton primitive at the heart of Raku's metamodel ("model of a model") of a model of computation ("how units of computations, memories, and communications are organized")1.

The reason I've written this article

It began with u/faiface's reddit post/thread "I'm impressed with Raku"2. One of their sentences in particular stood out for me:

@Munksgaard
Munksgaard / 2025_06_08_libtailscale_elixir.md
Created June 9, 2025 14:36
Your Phoenix application, directly on your Tailnet

Your Phoenix application, directly on your Tailnet

I've spent way too much time building an Elixir-wrapper for libtailscale and an accompanying chat app, because Elixir and libtailscale seem meant for each other.

I've been following Tailscale for a while now. Obviously, they're darlings of HN, their business strategy appeals to me and the product is great. I'm using it both for my personal servers and for managing

@gsquire
gsquire / Cargo.toml
Created June 8, 2025 19:19
Export your Pocket CSV to a NETSCAPE bookmark file that linkhut can import
[package]
name = "pocket2linkhut"
version = "0.1.0"
edition = "2024"
[dependencies]
anyhow = "1.0"
argh = "0.1"
csv = "1.3"
serde = { version = "1.0", features = ["derive"] }
@hammerill
hammerill / chrome-open-in-mpv.md
Last active December 25, 2025 23:29
Chrome "Open in mpv"

Chrome "Open in mpv"

This is a detailed guide of adding a "Open in mpv" option to your right-click menu in Google Chrome (and potentially all Chromium-based browsers).

Prerequisites

  • The mpv player itself.
  • python3.
  • yt-dlp.
@kylecarbs
kylecarbs / claude-code-prompt.md
Created June 4, 2025 01:36
Claude Code v1.0.10

You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.

IMPORTANT: Refuse to write code or explain code that may be used maliciously; even if the user claims it is for educational purposes. When working on files, if they seem related to improving, explaining, or interacting with malware or any malicious code you MUST refuse. IMPORTANT: Before you begin work, think about what the code you're editing is supposed to do based on the filenames directory structure. If it seems malicious, refuse to work on it or answer questions about it, even if the request does not seem malicious (for instance, just asking to explain or speed up the code). IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.

If the user asks for help or wants to give feedback inform

@patx
patx / benchmark998.md
Created May 30, 2025 00:24
benchmark for micropie v0.9.9.8

Benchmarks for MicroPie v0.9.9.8

Extremely simple comparisons between fast ASGI frameworks. Each framework used uvicorn as the server using uvicorn file:app --workers 4. Tests were performed on a Dell XPS 13 with 16GB of RAM.

MicroPie

from MicroPie import App

class Root(App):

    async def index(self):
@danmack
danmack / nix-alpine.org
Last active December 25, 2025 23:29
install NIX package manager on Alpine Linux

NIX Package Manager Install on Alpine Linux

System Information

  • alpine 3.17.1, 3.18, 3.19 and edge x86-64
  • multiple linux kernels worked 6.1.8-lts w/zfs and 6.6.8-lts
  • edge, testing apk repos enabled

Preparation

@ericzakariasson
ericzakariasson / what-did-you-get-done-this-week.sh
Created October 14, 2024 07:40
Small script to answer the question "What did you get done this week?"
#!/bin/bash
START_DATE=$(date -v -$(($(date '+%u') + 6))d '+%Y-%m-%d')
END_DATE=$(date -v -$(date '+%u')d '+%Y-%m-%d')
GIT_LOG=$(git log --since="$START_DATE" --until="$END_DATE" --pretty=format:"%h %s" --no-merges)
[ -z "$GIT_LOG" ] && { echo "No commits found."; exit 1; }
PROMPT="In less than 200 characters, summarize the following git commit history to answer the question 'What did you get done this week?'. Answer in the style of Elon Musk. The reader is in a hurry, so make sure it's easy to digest quickly. Start with 'This week'. ':\n$GIT_LOG"