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)
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