Recent Posts

AutoFS: Automatically mount S3 using goofyfs or s3fs

About

In Linux basically everything can be turned into a mount helper.

(TBD) UPDATE: This article hardly needs a rewrite. I still keep it online until then.

Scripts

Save this as mount.autofs:

#!/bin/bash

##
# AutoFS user-folder indirect Automounter for S3 using either FUSE goofyfs or s3fs
#
# Requirements
# - AWS CLI installed
# - JQ installed
# - Either FUSE goofyfs or s3fs installed
#
# Usage
#  - place config to $S3FS_CONFIG directory using s3fs config format (ACCESS_KEY:ACCESS_SECRET)
#  - place this file to /etc/auto.s3 and make it executable
#  - add to /etc/auto.master: /home/<user>/Remote/S3 /etc/auto.s3 --timeout=3000
#  - choose backend by config section in this file (NOTE: goofyfs needs )
#  - cd <mountpoint>/<aws-profile>/<bucket>
#
# Debugging
# - Stop system service by:
#   systemctl stop autofs
# - Execute as process (use --debug to see mount commands)
#   automount -f -v
#
# Clean up mountpoints (when autofs hangs or mountpoints are still used) …
[more]

Dealing with PHP timezones

Sadly, our developers still use procedural functions. Here is a SPL implementation.

$dtFromDb = '2020-11-03 18:00:00'; // No TZ info provided here!
$dateTimeZoneServer = new DateTimeZone(date_default_timezone_get());
$dateTimeZoneAccount = new DateTimeZone('Indian/Christmas');

$dateTimeZoneUser = 'UTC';
$dateTimeZoneServer = new DateTimeZone($dateTimeZoneUser);

$dt = new DateTime($dtFromDb, $dateTimeZoneServer);
// or $dt->setTime($hour, $minute);
$dt->setTimezone($dateTimeZoneAccount);

echo $dt->format('Y-m-d H:i:s'); // now H:i in account's tz

$dt->setTimezone($dateTimeZoneUser);
echo $dt->format('Y-m-d H:i:s'); // now H:i in user's tz
[more]

[more]

Sichtbarer Part Ø 30mm Ø 35mm max

https://www-brixelweb-de.translate.goog/openscad/projekte/adapter_0.html?

https://www.printables.com/model/1288943-sega-homestar-extra-planetarium-adapter

Dia

Merkmal Maß Filmformat (Netto) 36 x 24 mm Rahmen-Außenmaß 50 x 50 mm Standard-Dicke ca. 1,0 mm bis 3,0 mm (je nach Rahmentyp: CS-Rahmen sind dünner, Glasrahmen dicker)

  • No name “Star Projektor 4K” wie man z.B. im Internet findet ist irrefüherend. Gemeint ist eher die Auflösung des Dias. 4K ist 4096 x 2160.

Mein rundes Dia hier 2.4cm im Durchmesser inkl. Randbereich, den wir natürlich dazurechnen. Seien wir gnädig und sagen

[more]

Fighting E-Mail Spam (with AI)

Some decades ago – yes, I’m old – I started using All-inkl.com for my E-Mail. They are still 100% reliable with a great uptime and I could say I never had an E-Mail outage or someone received “Quota exceeded” or “Mailbox is full” or “cannot be found”.

Downside: they are state of the art. They still using Procmail and SpamAssassin and my E-Mail Inbox is flooded more and more with Spam.

[more]

Fighting E-Mail Spam (with AI)

Some decades ago – yes, I’m old – I started using All-inkl.com for my E-Mail. They are still 100% reliable with a great uptime and I could say I never had an E-Mail outage or someone received “Quota exceeded” or “Mailbox is full” or “cannot be found”.

Downside: they are state of the art. They still using Procmail and SpamAssassin and my E-Mail Inbox is flooded more and more with Spam.

[more]

[more]

img

Source: https://xkcd.com/1987/

SDK versionb manager only

  • vfox (Golang) A cross-platform and extendable version manager with support for Java, Node.js, Golang, Python, Flutter, .NET & more

https://terminaltrove.com/list/

https://terminaltrove.com/terminals/

  • Aqua is arguably the most powerful tool in this category right now. Like dotbins and eget, it downloads binaries from GitHub, but it functions more like a declarative package manager.

  • eget (Golang) Easily install prebuilt binaries from GitHub like eget jgm/pandoc --to /usr/local/bin --tag nightly. Meanwhile also has a config ~/.eget.toml keeping the tools. Also the standard on https://terminaltrove.com/

[more]

img image-20260128124413911
[more]

image-20260128125411007 aa

cc dd ee ff

UPDATE: Found this Parametric Wheel Generator on MakerWorld

[more]