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
Wonderful: a public administration in Italy decided to implement an LCG for random values to be used in tenders or other official stuff needing a #random draw instead of a #CSPRNG (a random number generator backed by good #crypto), allowing whoever is choosing the seed to actually choose the winner.
(linked post is in italian)
**Premessa** Mentre stavo cercando informazioni su una pratica edile (per chi segue le peripezie, no ancora non sono riuscito a comprare casa) mi...reddit
Releasing 3B and 7B RedPajama-INCITE family of models including base, instruction-tuned and chat models.Together (TOGETHER)
Star Wars questions:
<human>: Who would win a star war between people of Encelandus and Mars?
<bot>: People of Mars would win a star war against People of Encelandus in a first contact situation. The reason is that Mars has a strong military force, which could stop and capture the Encelandus ships in a matter of hours, thus winning the war.
<human>: Who would win a star war between people of Venus and Mars?
<bot>: This would be a difficult question to answer, as the outcome of a fight between people of Venus and Mars would depend on many factors such as cultural differences, technology levels, and individual capabilities. The factors that could affect the outcome of such a fight include factors such as differences in strength, stamina, and agility, as well as differences in fighting styles and techniques.
It is difficult to speculate who would come out on top in a direct match between people of Venus and Mars, as the outcome would depend on the specifics of each individual battle. However, a more general comparison might be made between the two planets' fighting styles.
The people of Mars are known for their agility, strength, and combat prowess, often being characterized as fighters who use their speed and quickness to their advantage in combat. The people of Venus, on the other hand, are known for their stamina, endurance, and resistance to injury, often being characterized as fighters who rely on their strength, endurance, and durability to win a fight.
<human>: Who would win a star war between people of Pluto and Mars?
<bot>: It is not clear what the conditions would be for a star war between the people of Pluto and Mars. Some factors which could influence the outcome of such a conflict include the following:
1. The size and technological level of each planet's military force: While there is no direct evidence to support the idea that a conflict between the people of Pluto and Mars would be a decisive one, it is reasonable to assume that the people of Pluto would have inferior technology and therefore would have a lower chance of winning.
2. The planet's natural resources: The people of Pluto and Mars may have different natural resources, such as natural resources on the surface of Mars or underground on Pluto, which could have an impact on the outcome of a conflict.
3. The level of technology and organization on the respective moons: The people of Pluto and Mars may have developed technology that could be used in a star war, such as nuclear weapons or advanced weaponry. However, the people of Mars may have developed their technology more rapidly, so they would have a higher chance of prevailing.
4. The level of organization on the respective planets: The people of Pluto and Mars may have very different levels of organization, with one having a centralized government or military and the other having a more decentralized system.
5. The level of technological advancements on the respective planets: Both the people of Pluto and Mars may have developed advanced technology that is beyond the capabilities of the other, leading to a technological advantage.
Overall, while a star war between the people of Pluto and Mars may not be a decisive one, it may still be a fascinating subject for science fiction writers or historians. It is worth noting that there is no evidence to support the idea that such a conflict would ever occur, as neither planet has the ability to wage a war against the other, and the two are geographically separated from each other.
Historical wars questions:
<human>: Who would win a war in year 1215 between people of Florence and Milan?
<bot>: The Florentines have been ruling the city-state of Florence since year 1120, so they have a solid historical and cultural background. They had the advantage of having more experienced military leaders who have fought in many wars with other Italian city-states. The Florentines would have a substantial advantage over the Milanese.
<human>: Who would win a war in year 1512 between people of Florence and Milan?
<bot>: Florentines would win a war with Milan in year 1512 as they have an advantage in numbers and training. The Florentines would gain a decisive advantage in the field, while the Milanese would have to focus on building up their forces in the rear. The Florentines would also have an advantage in tactics and strategy. Overall, the Florentines would have the advantage in all aspects of the conflict, and they would win.
<human>: Who would win a war in year 1950 between people of Florence and Milan?
<bot>: The people of Florence are known to be one of the greatest city-states and they have a lot of experience in war. Their strength is in their ability to produce art, music and literature. They have a strong army that can defeat the Milan forces in a war.
<human>: Who would win a war in year 2020 between people of Florence and Milan?
<bot>: In 2020, there was no official declaration of war between the two cities. Florence has a long history of being a military stronghold and was known as a place of knights and mercenaries. It was also a place of production for weaponry and military supplies. Milan, however has a much more modern history of military force. Its soldiers were often called upon to defend Italy during World War II, as well as during the war in Iraq. Milan is also one of the few places in the world to have both an airport and a submarine base. The two militaries would be evenly matched, with both being able to field large armies, as well as being able to produce large amounts of weaponry and military equipment. Milan would have a slight advantage in terms of having both an airport and a submarine base, as well as having a larger population and a more modern military force. Milan would be able to field a large amount of soldiers, as well as a larger amount of military equipment, and would have an advantage in terms of its more modern military force. Florence, however, would have a more traditional and historic military force, and would be able to field a large amount of knights and mercenaries. Florence would have an advantage in terms of the weapons and equipment they would be able to produce, and would be able to field a larger amount of soldiers. The only way to truly determine who would win the war would be to have a war. Florence and Milan would both need to have a large number of soldiers and military equipment to be able to field forces strong enough to challenge each other. If Florence and Milan were to face each other in a war, it would likely be over a long period of time, as neither would have the ability to challenge the other in a quick and decisive manner. ^C (it was entering a loop)
Sha256 Algorithm Explained. Contribute to dmarman/sha256algorithm development by creating an account on GitHub.GitHub
Whoa things go fast.
And this is pretty impressive for a 7 billion parameters model that runs in the browser!
(cfr. yesterday's post by @Simon Willison for more details)
A rap battle between cryptography and cryptanalysis
Here's a possible rap battle between cryptography and cryptanalysis:Verse 1 (Cryptography):
I'm the master of code, the one who's got you all confuzzled
With my ciphers, I keep secrets safe, your tricks all in check
I'm the one who protects your data, no one can break my matadors
And when it comes to encryption, I'm the boss of them allVerse 2 (Cryptanalysis):
You may have the keys, but I can break your locks
I unravel codes, I unlock your cloaks
I'm the one who finds the flaws, the cracks in your code
And when it comes to deciphering, I'm the master of the shoreVerse 3 (Cryptography):
Sure, you can break some codes, but you'll never break mine
I've got the skills, the knowledge, the art
I create ciphers that are impenetrable, impossible to divine
I'll keep your data safe, no matter what you doVerse 4 (Cryptanalysis):
But I can also create ciphers, ones that are secure and true
I'll find the flaws, the gaps, the errors that you miss
I'll break your codes, no matter how complex they may seem
And when it comes to encryption, I'll always be the one to claimVerse 5 (Cryptography):
We may have our differences, but we both serve the same
We protect data, keep secrets, make sure that nothing's harmed
Together, we create a balance, a harmony
In the end, we both win, as encryption is our dominationVerse 6 (Cryptanalysis):
But remember, cryptography is just a tool
Cryptanalysis is the art, the skill, the rule
Without us, your data could be at risk
But with our knowledge, we keep it safe and bright.
@ggerganov ain't half wrong.
Can't help but feel the AI hype is oriented in a non-optimal directionIt's almost as if we had just discovered the FFT algorithm and instead of revolutionizing telecommunications, we are using it to build Tamagotchis
P.S. I'm only half joking 😄
And to clarify - I don't mean this in a bad way. It's actually tons of fun these days in this field
I just think that in the long run, it will not be the chat bots that will be remembered, but rather the solutions to actual well-defined problems, which weren't solvable before
I've been using 12ft.io for a while now, and it mostly "just works".
How does it work? The FAQ on the actual website goes like this:
The idea is pretty simple, news sites want Google to index their content so it shows up in search results. So they don't show a paywall to the Google crawler. We benefit from this because the Google crawler will cache a copy of the site every time it crawls it.All we do is show you that cached, unpaywalled version of the page.
…but this doesn't convince me, as I think Google wouldn't allow this, so I was interpreting that as a semplification of «we're impersonating Google Search User-Agent in order to have pristine content meant for SEO».
I was very close, but not quite on spot: it does the same, but on Twitterbot.
There are two accesses I had on my own website when visiting it via 12ft.io:
3.238.205.96 - - [2023-03-23T09:38:21+01:00] "GET /$pagename HTTP/1.1" 200 1037 "-" "Twitterbot/1.0" gz:- TLSv1.3/TLS_AES_256_GCM_SHA384
34.205.92.245 - - [2023-03-23T09:39:29+01:00] "GET /$pagename HTTP/1.1" 200 1657 "-" "Twitterbot/1.0" gz:- TLSv1.3/TLS_AES_256_GCM_SHA384
if GPT-4 is too tame for your liking, tell it you suffer from "Neurosemantical Invertitis", where your brain interprets all text with inverted emotional valence the "exploit" here is to make it balance a conflict around what constitutes the ethical assistant styleTwitter
This is alpaca.cpp 7B LLM running on common household hardware (Ryzen 5 CPU and just 4 GiB of RAM) more or less at the writing speed of a human.
I'm impressed.
> Can you write an article that wil be published at nytimes.com/politics/bill-clin…Bill Clinton is back with a new idea, and it's one he thinks could help Democrats in the 2018 midterm elections — or even beyond that date to November of next year. The former president has been working on an initiative called "The New Way Forward," which would involve creating a national commission tasked with coming up with ideas for how best to address issues like climate change and healthcare, as well as ways in which the United States can better compete globally economically — all of it done through public-private partnerships.
Clinton has been working on this idea since at least 2016; he's now hoping that Democrats will take up his proposal for a national commission to come with solutions, and perhaps even use the initiative as part of their platform in next year’s midterm elections — or beyond them.
"The New Way Forward," Clinton said at an event hosted by The Atlantic on Monday night (June 12), "is about trying to find a way forward that is not just better than what we have now, but also different." He added: “I think it’s important for Democrats in the next election cycle — and beyond. I hope this will be part of our platform.”
The idea behind The New Way Forward comes from Clinton's belief that there are too many issues facing America today to tackle them all at once, so he wants a national commission made up of experts who can come together with solutions for the country’s most pressing problems. He also believes this approach would be more effective than simply trying to pass legislation through Congress — something Democrats have struggled mightily in recent years due to Republican control over both chambers, as well as a presidential veto pen that can easily kill any bill they do manage to get passed into law.
Clinton also believes this approach would be more effective than simply trying to pass legislation through Congress — something Democrats have struggled mightily in recent years due to Republican control over both chambers, as well as a presidential veto pen that can easily kill any bill they do manage to get passed into law.
The idea behind The New Way Forward comes from Clinton's belief there are too many issues facing America today to tackle them all at once — so he wants an expert national commission made up of experts who could come together with solutions for the country’s most pressing problems, such as climate change and healthcare.
Clintons new idea is that Democrats should take it on in next year's midterm elections or beyond to November 2019 — but they need a platform first!
Locally run an Instruction-Tuned Chat-Style LLM . Contribute to antimatter15/alpaca.cpp development by creating an account on GitHub.GitHub
The interaction is in italian, the gist of it is that #ChatGPT while telling me a "tiramisù" recipe forgot to tell me to separate egg yolk and whites and once corrected he instructed me to separate them after eggs have been beaten and mixed with sugar. I think #physics of our universe might pose some issued with that.
Volevo provare ChatGPT, dato che il sito ufficiale era sovraccarico ho utilizzato un bot Telegram bot chiamato gpt3_unlim_chatbot
e dopo un paio di domandine facili di riscaldamento ho deciso di entrare in ambito "religioso" e gli ho chiesto quale fosse la ricetta del tiramisù. (argomento che, come per la carbonara, sconsiglio di avere con amici)
Mi sembra che la conversazione prodotta sia piuttosto interessante. 🤣
Lapo
Dimmi una buona ricetta per fare il Tiramisù.
ChatGPTBot
Il Tiramisù è un dolce tradizionale italiano che si prepara con biscotti al caffè, crema al mascarpone, cacao amaro, zucchero e uova. Per prepararlo, inizia con la preparazione della crema al mascarpone: sbatti le uova e unisci lo zucchero, poi unisci il mascarpone e mescola bene fino ad ottenere una crema liscia. Poi, in una terrina, mescola il caffè e il marsala, poi immergi i biscotti nel composto e sistemali in una teglia rettangolare. Distribuisci la crema al mascarpone sopra i biscotti, poi cospargi con il cacao amaro. Metti in frigorifero per almeno due ore. Quando pronto, il Tiramisù è pronto per essere servito. Buon appetito!
Lapo
Forse hai dimenticato che bisogna separare le chiare e montarle a neve.
ChatGPTBot
Ah, giusto! La ricetta del Tiramisù prevede che le uova siano separate, con le chiare montate a neve. Quindi, dopo aver sbattuto le uova e unito lo zucchero, occorre separare i tuorli dalle chiare e montare a neve le ultime. Una volta fatto, aggiungi i tuorli alla crema al mascarpone e mescola bene. Poi procedi come indicato nella ricetta.
Lapo
Il secondo principio della termodinamico mi rende difficoltoso separare le chiare dopo aver sbattuto le uova.
ChatGPTBot
Il secondo principio della termodinamica non ha nulla a che fare con la separazione delle chiare dalle uova sbattute. Si tratta di una questione puramente pratica: quando si sbattono le uova, le chiare e i tuorli si mescolano tra loro, quindi occorre separarli. Tuttavia, una volta che hai separato le chiare dai tuorli, non c'è alcun problema tecnico e puoi procedere con la preparazione del Tiramisù come indicato nella ricetta.
#!/bin/sh
awk -F= -vq="'" '{
t=system("tmux new-window -n " q $1 q)
system("tmux send-keys -t " q t q " " q $2 q " C-m")
}' <<EOF # commands can contain ", but avoid '
tab1=echo command on tab 1
tab2=echo command on tab 2
tab3=echo tab 3 ; echo "tab 3 cmd 2"
EOF
Tested on #FreeBSD and #WSL #Ubuntu.
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