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.

1
0
1
0
0
1

A large fraction of my family is Texan, and one of the things that implies is: belt buckles.

I found this fantastic one, which I don't think has been worn since probably 1983.

(Unfortunately, since one of the other things implied by a large Texan family is aggressive enforcement of gender roles and masculinity, I'm pretty sure my dad stopped wearing it after other guys made fun of it.)

A comically oversized pewter belt buckle in the shape of a stylized 1970s green screen terminal.
0
1
1
1
1
1
1
1

This morning I converted two setups from "jail in jail" back to jail on VM. They worked well enough, but the advantages probably didn’t justify the changes needed to upgrade to FreeBSD 15.0, so for now they’re back in VMs.
Still, I’m keeping everything ready and I’m not ruling anything out. In the end, it’s just a matter of a ZFS send and receive.

0
0
0
0
0
1

I just started using @deltaDelta Chat and it's just great!
Quick and straigthforward sign-up process, very cool features, no ads, no AI crap, allows text, image and voice messages, groups, multiple accounts. And free! (based on donations).
Everything is end to end encrypted, can be synced across devices and zero personal data is required whatsoever to create an account (no phone number, no email). Using standard yet powerful chatmail relays.

My daughter needs to communicate with a correspondent in another country, she has no phone but can use a laptop, so this is perfect. Also we can create a family group 😊

Kudos to the team behind this amazing project.

0
0
0
0
0
0
1
1
2
0
1
0
0
0

僕の使っているコマンドラインツールの 12月5日分はrsyncです。コピー元のディレクトリとコピー先のディレクトリを指定すると更新のある分だけコピーしてくれる便利なコマンドで、僕はおもに家サーバでの日ごとのバックアップに利用しています。リモートへのコピーにも利用できます。

rsyncでのコピー元やコピー先の指定は、最後の / の有無で動作が変わります。注意。

下記は家サーバ(まだcronが動いてる)の/etc/cron.daily/backup-localスクリプトの一部です(このままでは走らないかも)。システム側のディレクトリに含まれるファイルのうち失くしたくないものを/home/backup以下にコピーして、/home全体を/backup以下にコピーしています。

extraopt=
dst=/home/backup
for dir in /etc /usr/local /var/spool/cron; do
dstdir=$dst/$dir
mkdir -p $dstdir
chmod og-rwx $dstdir
rsync -a --delete $extraopt $dir/ $dstdir
done
rsync -a --delete $extraopt /home/ /backup

この後、/backup1に外付けのハードディスクがマウントしてあればそこにコピーして、

if mount | grep -q /backup1 ; then
mkdir -p /backup1/Backup/home
rsync -a --delete $extraopt /home/ /backup1/Backup/home

さらに/bacup2に外付けのハードディスクがマウントしてあれば読み書き可能にリマウントしてBackupとArchive以下をコピーします

if mount | grep -q /backup2 ; then
mount -o remount,rw /backup2 && rsync -a $extraopt /backup1/ /backup2
mount -o remount,ro /backup2
fi

extraopt='-v --dry-run'などとすると試験走行できます。

僕の使っているコマンドラインツールの 12月6日分はscreenです。端末が止まっても止まらない端末のやつ。ナウなヤングはscreenではなくByobuやtmuxを利用するらしいです。

何日かコマンドを走らせ続けておきたい時や、端末での作業内容を同僚(いたんだ)やリモートの自分などと共有したい時に使います。

$ screen

デフォルトではC-aがscreenを操作するためのホットキーとなりますが、僕は行頭に移動するC-aを多用するので、~/.screenrcでC-]に設定しています。続く2行では最初の画面とビジュアルベルを無効にしています。

escape ^]^]
startup_message off
vbell off

screenをデタッチする時は、C-]のあとdをタイプします。screen -list でデタッチされたまま稼動を続けているscreenのリストが表示されるので、

$ screen -x 12345.pts-0.localhost

などとしてアタッチしなおすことができます。デタッチされたscreenがひとつだけの場合はアタッチするscreenを指定する必要はありません。

screen内でシェルを終了させるとscreenも終了します。

0
0
1
0
0

Ugh just had to switch Intelligent Octopus off..

I just came back from a long trip down to 10% and plugged in as I normally would. Octopus selected a 10 hour charge - 4 hours at peak rate with no option to reduce it. Nice little earner for them.. Luckily I saw the news on social media.. many customers wouldn't.

So I've had to switch it off and set manual schedules overnight as I just can't trust it, or indeed even begin to calculate what it cost me if I let Octopus control it.

0
0
1
1
1

なにかボタンを押してしまったらしくSafewayのセルフレジが突然スペイン語を話しだしてびっくりだよ。だいたいボタンの位置を覚えてたっぽくてそのまま決済まで進めましたw

0
0
0

The haunting melody of the ferry MV Puyallup, recorded at midnight last night as the chill air of Puget Sound blasted the railings. I met a crewman who shared my fascination with the sound... He described how small holes drilled to add clamps to the railings caught the air like flutes. The long pipes of the railings act as resonators, reverberating through the windward hull.
en.wikipedia.org/wiki/MV_Puyal

0
1
1
0
0