What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

@mwl@io.mwl.ioMichael Lucas :flan_set_fire:’s post made me revisit RCS in a very small role: a safety net for individual files.
Paired with nvi, a tiny wrapper lets me snapshot configs before risky edits. Simple, local, no magic.

Example wrapper I’m using:

#!/bin/sh
#
# safeedit — RCS-backed safe editing with nvi
#

set -e

if [ $# -ne 1 ]; then
echo "usage: safeedit <file>" >&2
exit 1
fi

FILE="$1"

if [ ! -f "$FILE" ]; then
echo "safeedit: file not found: $FILE" >&2
exit 1
fi

DIR=$(dirname "$FILE")
BASE=$(basename "$FILE")
RCS_DIR="$DIR/RCS"
RCS_FILE="$RCS_DIR/$BASE,v"

mkdir -p "$RCS_DIR"
chmod 700 "$RCS_DIR"

if [ ! -f "$RCS_FILE" ]; then
ci -l "$FILE"
else
ci -u "$FILE" || true
co -l "$FILE"
fi

exec nvi "$FILE"
nvi protects the session; RCS protects the decision.

Original post by @mwl@snac.bsd.cafe: https://io.mwl.io/@mwl/115814245521209100


0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
20
0
0
0
0
0
0
0
1
1
0
0
0
3
0
0
0
0
0
0
0
0
0
0
0
1
0
0

If anyone needs a last 2025 tax receipt, World Central Kitchen has a benefactor doubling all donations for their Gaza aid mission, up to $2million USD, ending tonight.

If you recall, 7 WCK aid volunteers were murdered when the IDF bombed their clearly marked convoy on an approved, demilitarized route in April, 2024.

I think it speaks volumes about the commitment of WCK and Chef Andres that they just laced up more boots and got them back on the ground in Gaza.

donate.wck.org/campaign/747111

0
0

, lesson 1: Get yourself a decent starter set.

You'll want some good turning tools. My favorites are the red/white/blue set from Red Team Tools for a few reasons: they're a good range of thicknesses, they're color-coded, they're smooth, and the short ends are slimmed down for top of the keyway tensioning or for smaller locks. Turning tools are the most important part of your kit.

You'll want a couple good hooks. I recommend a thin-shank short hook, and a sturdy short/medium hook. The thin one will be your friend in tight keyways and for small locks. The sturdy one will let you bully most other locks.

Finally, you'll want a couple wave rakes. My favorites are the triple-peak w-shape and m-shape (in that order). They're easy to work with, don't get hung up on the keyway, and can be maneuvered to more precisely hit specific pins.

Oh, and you'll need some locks to practice on. Clear locks are great *for your first day*, but you'll run into trouble if you start to rely on seeing the pins. Grab some cheap Master No.3, Master No.140, and/or Brinks padlocks. They're satisfying to open, and they'll teach you the basics. Beware dollar store locks—the manufacturing is usually shit and some have plastic cores, which feel like garbage to pick, and break easily.

Everything else is icing on the cake.

Most starter sets will include a "city rake" or "L rake", and several other mostly useless picks. Ignore them. They're filler and you'll spend days just trying to find a valid reason to carry them—because they *have* to be good for *something*, right? ...right?

Here's the kit I currently recommend: redteamtools.com/learn-about-l (with the book) It's $125, but it's solid, no fluff, and well made. I love the book, the turning tools are part of my everyday carry, and I use the picks whenever I teach lockpicking in person.

Disclaimer: @deviantollam (Red Team Tools' founder) is a friend of mine, but I don't recommend anything that I don't personally use.

Red Team Tools' red, white, and blue turning tool set. They're different thicknesses. They have a long end and a narrower short end.A couple hook lockpicks. The top one is Sparrows' version of the Peterson Gem—a sturdy, medium hook with am angled approach on the tip. The bottom one is a short hook from Red Team Tools' starter set. It's slimmer, shorter, and comes to a finer tip than the top one. It's also slightly sway-backed from teaching new pickers with it. Remember, gentle is the key.Two triple-humped wave rakes from the Sparrows Dark Shift set. The top is what I call a w-shaped rake, and the bottom is what I call an m-shaped rake. The "w" has pointier peaks and swoopier valleys. The "m" has more rounded peaks and slopey valleys.
0
0
0
0
0
0
0
0
1
0
0
0
0
1