Just in case you need a NodeJS script to sort extended #ZSH history which doesn't break on multi-line entries:
#! /usr/bin/env node
const fs = require('fs');
const lines = fs.readFileSync(process.argv[2], 'utf8').split(/(?<=[^\\])\n/);
lines.sort((a, b) => a.split(/:/)[1] - b.split(/:/)[1]);
fs.writeFileSync(process.argv[2], lines.join('\n'), 'utf8');
Sort extended ZSH history (works with multi-line entries) - zsh_history_sort.jsGist
The current ssh banner defined in ssh_api.c:423 is this: sshbuf_putf(banner, "SSH-2.0-%.100s\r\n", SSH_RELEASE) and the constant is defined in version.h:3-7 as: #define SSH_VERSION "OpenSSH_9.7" #d...GitHub
#golang Fediverse please help a Go-noob: is it possible to get the `git describe` string from a `go install github.comā¦@latest` type installation?
In order to use for `--version` output, that in various projects report no version when installed that way.
E.g.:
% go install github.com/walles/moar@latest
% moar --version
Should be set when building, please use build.sh to build
Convert DER or PEM encoded ASN.1 structures to an equivalent textual description compatible with OpenSSL's ASN1_generate_nconf(3) function - wllm-rbnt/asn1templateGitHub
oh! I didn't know you were on Mastodon.
Thank you SO MUCH for making asn1js. It was absolutely instrumental in my recent escapades into the world of DNSSEC.
Genuinely an inspiring tool.
I released a 'next' version of #ASN1js on npm which drops any AMD/UMD boilerplate and only uses ES6 modules.
I'm waiting for the forthcoming #NodeJS sync require(esm) in order to release that as a default version, because it seems unreasonable to force library users to do everything async.
Any thought on that? #library #JavaScript
Quoto @Stefano Zanero da Twitter:
La follia sta degenerando (come era logico e scontato succedesse).
Piracy Shield va SMANTELLATO. Va smantellato ora.
Con la Delibera 61/24/CONS di AgCom si inizia un percorso per portare in Italia uno strumento dedicato alla verifica dell'etĆ degli utenti su Internet. Negli Stati Uniti questi strumenti sono giĆ stati adottati, non sempre con ottimi esiti.Valerio Berra (Innovazione Fanpage)
On February 1st 2024, AWS will start charging for IPv4 addresses. This will cost $0.005 per hour -- around $4 month
This is a very nice idea, and finally happening on a global scale.
Hetzner started charging IPv4 addresses (or rather, allowing a discount if you do without: the total price is the same it was before) since a few years and I guess that's working fine for them.
I made a little script to automatically download all my #Hetzner CSV invoices in a single file (or rather, one file per page):
let elem = Array.prototype.slice.call(document.getElementsByClassName('btn-download')).map(e=>e.href).filter(u=>u.endsWith('/csv'));
let numbers = elem.map(u=>/invoice[/]([^/]+)/.exec(u)[1]);
let filename = 'invoice-' + numbers[0] + '-' + numbers[numbers.length - 1] + '.csv';
let csv = '';
for (let url of elem)
csv += await (await fetch(url)).text();
let a = document.createElement("a");
a.download = filename;
a.href = a.href = "data:text/csv,"+encodeURIComponent(csv);
a.click();
Updates available as GitHub gist.
Lots of hot air and insanity there.....
FYI, databreachtoday.com/blogs/reseā¦
See for example the paper Gerck "published" where he claims Pi is "an unbounded series of rational numbers":
preprints.org/manuscript/20230ā¦
A scientist claims to have developed an inexpensive system for using quantum computing to crack RSA, which is the world's most commonly used public key algorithm. If true, this would be a breakthrough that comes years before experts predicted.www.databreachtoday.com
Interessante questo post di raccolta di testate giornalistiche che stanno man mano migrando sul Fediverse, tracciato con il tag #newstodon.
ChissĆ se qualcuno ha preparato una lista simile ma relativa all'Italia o all'Europa?
sarebbe veramente una svolta. Senza pensarci, di non bot, mi viene in mente solo @valigiablu
seguo altri giornalisti italiani con account personali, se solo ci fossero le testateā¦
Super-interesting thread about government-frustration-based #opensource, a small server that scrapes prices from major groceries and a completely client-side PWA to search thru it.
Would love to see an Italian fork of this.
Kudos to @Mario Zechner
Yes, so much this!
How I want to learn [your thing]:1. Text on website
2. Text on paper
ā¦
2328. Spraypainted on side of cow
2829. Video tutorials
(MarkKriegsman on Twitter 2016-06-06)
I notice that I go to twitter nowadays almost exclusively for news about #AI #LLM #neuralNetworks and it seems most of the contents are still there.
(On the other hand, e.g., infosec people seems to be most active here on the Fediverse.)
Is there any "user cluster" I didn't notice or subscribe to on those arguments in here, or do you think I might be right?
#VictoriaMetrics is getting better and better, even on my home installation RAM usage went down from 958 MiB to 381 MiB upgrading from 1.87.6 to 1.93.0. š
ā¦and if you're still using plain old #Prometheus do know that Victoria Metrics is a plug-in #OpenMetrics replacement (even the scraping file is compatible) and everything will be faster and both RAM and disk usage will go down dramatically.
VictoriaMetrics reduces memory usage by up to 5x starting from v1.92 štwitter.com
I didn't notice but it seems that in 2019 italian registration authority (finally!!) added support for AAAA glue records, necessary for recursive #DNS resolution based purely on #IPv6 connections.
My registrar #ArubaIT still doesn't support that in the web interface, but they were nice and fast doing that manually when I opened a ticket.
And thus, finally, after many years of wait this is finally possible:
% drill -T6 aaaa lapo.it | fgrep AAAA
lapo.it. 86400 IN AAAA 2a01:4f8:151:1d7::7
PS: unfortunately ldnsā drill
does not yet show glue records explicitly during a trace, but I will wait on that too.
Frightening. #OpenSource #EU
EU policymakersPolicymakers haven't really thought this one through, have they...If you think you participate or use open source in any way (and these days, the answer is a resounding YES), this should concern you.
Decode encrypted KNX project using NodeJS. GitHub Gist: instantly share code, notes, and snippets.Gist
you can use `go version` for that
`go version -m /path/to/binary`
Else, I'll answer it myself linking your answer here.
with pleasure.
Will do immediatly :)
Thanks for doing this.
EDIT: it's done :)
pkg.go.dev/runtime/debug#ReadBā¦
(That doesnāt work yet when installing from a local directory. See github.com/golang/go/issues/50ā¦)
cmd/go: stamp the pseudo-version in builds generated by `go build` Ā· Issue #50603 Ā· golang/go
GitHub