Shell tip: `${var%suffix}` removes the shortest matching suffix. `${var%%suffix}` removes the longest. `${var#prefix}` and `${var##prefix}` work the same for prefixes. Mnemonic: # comes before % on the keyboard. #Linux #SystemAdministration #SysAdmin

net/netip в Go 1.25

Привет, Хабр! Go ценят за предсказуемость и простые решения в стандартной библиотеке, а в сервисах чаще всего упираемся в IP, разбор host:port, CIDR и сериализацию. Сегодня это удобно закрывается стандартным net/netip : компактные value-типы, корректный парсинг адресов и портов, работа с зонами, проверка принадлежности сетям и быстрые операции без лишних аллокаций. В статье рассмотрим этот пакет подробнее.

https://habr.com/ru/companies/otus/articles/937362/

#golang #Go #Addr #AddrPort #Prefix #IP #IPv4 #IPv6 #CIDR

net/netip в Go 1.25

Привет, Хабр! Go ценят за предсказуемость и простые решения в стандартной библиотеке, а в сервисах чаще всего упираемся в IP, разбор host:port, CIDR и сериализацию. Сегодня...

Хабр
Shell tip: `${var%suffix}` removes the shortest matching suffix. `${var%%suffix}` removes the longest. `${var#prefix}` and `${var##prefix}` work the same for prefixes. Mnemonic: # comes before % on the keyboard. #Linux #SystemAdministration #SysAdmin

Service:

Hin und wieder wird bei DYNDNS eine stabile Host-ID verlangt:

Linux allgemein:
man ip-token
ip token set ::3000 dev eth0
oder im NetworkManager:
https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nm-settings-nmcli.html

[ipv6]
addr-gen-mode=eui64
method=auto
token=::3333

Damit kommt man ohne DHCPv6 aus und die Hosts müssen nicht ihre MAC-Adresse "verraten".

Wenn jemand die äquivalenten Einstellungen für andere OS oder Tools kennt, kann ja gern damit darauf antworten.

#ipv6 #slaac #dyndns #hostid #prefix

nm-settings-nmcli: NetworkManager Reference Manual

#TIL: On an #IPv6only host, #chromium obviously applies quite some "magic" (detect there's no #IPv4 connectivity, detect the #prefix used for #NAT64) and, when presented with a literal IPv4 address, does the request using #IPv6 🧐
Gah - I'm running out of #emacs #prefix bindings. Which deserves the "C-c C-l" binding?
ellama-keymap-prefix
0%
lsp-keymap-prefix
40%
something else
10%
there are other bindings possible you know
50%
Poll ended at .

Is Pixi + rattler-build* going to be the death of Poetry? In my limited experience so far, Pixi can do everything Poetry can do, just as easily, but has the added bonus of being language-agnostic and able to build Conda packages. Interested to hear thoughts!

*I think Prefix are working on integrating rattler-build into a `pixi build` command, and once this is finished, I don't see any advantage Poetry has over Pixi.

#pixi #PythonPoetry #prefix #packaging #python #rattlerbuild

@b0rk I often find myself writing little test functions to re-familiarize myself with scoping semantics of variables.

Going a bit further, environment management between an interactive shell session and invoked programs (and nesting environment modifications).

Not confusing, but I always forget the syntax for various parameter expansions, e.g., ${var##prefix}.

And the fact that the following works is very opaque and unexpected for me:
scp remote:/path/* ./

And commands that take commands.

UUID 的 UX

在「The UX of UUIDs (unkey.dev)」這邊看到的紋章,原文在「The UX of UUIDs」。

裡面有不少是有幫助的建議,像是第一個建議是把 UUID 裡面的 - 拿掉,這樣對於 copy 比較方便 (畢竟沒有大多數人應該是 copy UUID,不會是念出來?)。

第二個建議是加上 prefix,這點不一定侷限在 UUID,只要是 token 上面都很適合。這個在不少系統上應該都有看過,像是 GitHub 的 token,或是 AWS 的 token 都算是這類。

文章裡面沒有提到,但這個建議也可以幫助你在 CI 上設

https://blog.gslin.org/archives/2024/04/12/11744/uuid-%e7%9a%84-ux/

#Computer #Database #Murmuring #Network #Software #WWW #database #db #experience #id #key #prefix #primary #user #uuid #ux

UUID 的 UX

在「The UX of UUIDs (unkey.dev)」這邊看到的紋章,原文在「The UX of UUIDs」。 裡面有不少是有幫助的建議,像是第一個建議是把 UUID 裡面的 - 拿掉,這樣對於 copy 比較方便 (畢竟沒有大多數人應該是 copy UUID,不會是念出來?)。 第二個...

Gea-Suan Lin's BLOG
From 19 Dec: SSH protects the world’s most sensitive networks. It just got a lot weaker - Enlarge / Terrapin is coming for your data.Aurich Lawson Getty Images Sometim... https://arstechnica.com/security/2023/12/hackers-can-break-ssh-channel-integrity-using-novel-data-corruption-attack/ #authentication #biz-&-it #encryption #features #prefix-truncation-attack #security #ssh
SSH protects the world’s most sensitive networks. It just got a lot weaker

Novel Terrapin attack uses prefix truncation to downgrade the security of SSH channels.

Ars Technica