Which tool is that?
Tangential to the problem I mentioned. For the nice url, the @ could still be replaced with a /, too.
nostr:npub1048qg5p6kfnpth2l98kq3dffg097tutm4npsz2exygx25ge2k9xqf5x3nf release: human-friendly URLs
- Defaults to using nip05 and article identifier for readable URLs, Habla nip05 users also get prerendering and shorter URLs
- Adds a Share button to your articles for copying URL or nostr ID
- Adds a URL preview to editor
Long ass URLs will always work but have decided to move to these by default due to community feedback.
Let me know what you think!
cc nostr:npub10awzknjg5r5lajnr53438ndcyjylgqsrnrtq5grs495v42qc6awsj45ys7 nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft
While it makes for a nicer URL, it is not recommended. These links get copied and people don't keep their nip05 resulting in broken links very quickly.
5 1/4. I remember they were sold single-sided or double-sided but you could punch a hole to mark the single-sided double-sided which they usually were.
What else is in your network? Is "Wake on LAN" enabled in the bios?
whyNotBoth.jpg
Show the zaps and npubs in different bars at once.
As npubs have no cost, I'd really not want to see npub counters of accounts that I'm not at least following indirectly.
Wait, nostr:npub1wxl6njlcgygduct7jkgzrvyvd9fylj4pqvll6p32h59wyetm5fxqjchcan zapped? I thought when people use it, the recipient would still know who zapped?
@libreoffice these buttons are confusing. ;D
What is the best tool to scrape all relays for specific events as a one-off task?
For example I have a list of 50 relays and want to know which version (event id) of my profile is stored on each of them.
My current approach is to go to https://nostr.info/relayr/ , patch the `ws.onmessage` callback to `console.log` what I need and then to either use the UI or further call on the dev console what the UI would call.
Fellow nostr devs, how do you do this?
For what it's worth, I opted for Deno. The following finds all t he accounts that have accepted badges on the Damus relay:
```
#!/bin/sh
//bin/true; exec deno run -A "$0" "$@"
import { Nostr, Relay, NostrKind } from "https://deno.land/x/nostr_deno_client@v0.2.7/mod.ts";
// import { Nostr, Relay, NostrKind } from "../nostr.ts";
const nostr = new Nostr();
nostr.relayList.push({
url: 'wss://relay.damus.io'
});
nostr.on('relayConnected', (relay: Relay) => console.log('Relay connected.', relay.name));
nostr.on('relayError', (err: Error) => console.log('Relay error;', err));
nostr.on('relayNotice', (notice: string[]) => console.log('Notice', notice));
await nostr.connect();
const set = {};
var round = 1;
var d = Math.round(Date.now() / 1000);
while (true) {
const filter = {
kinds: [30008],
until: d - 1,
limit: 200
};
const allNotes = await nostr.filter(filter).collect();
console.log(`Round ${round++}. We had ${Object.keys(set).length} users and found ${allNotes.length}, probing until ${new Date(d * 1000)} ...`)
if (allNotes.length === 0) {
break;
}
d = allNotes.reduce( (result, item) => {
return Math.min(result, item.created_at)
}, d)
for await (const note of allNotes) {
set[note.pubkey] = note.tags.length;
}
}
for (const [k, v] of Object.entries(set)) {
console.log(`${k} ${v}`);
}
Deno.exit();
```
1249 accounts accepted badges. How many of them might be interested in my "Badges Badge" https://badges.page/b/naddr1qqx5jgrvd94k2grzv9jxwetnqgsydl97xpj74udw0qg5vkfyujyjxd3l706jd0t0w0turp93d0vvungrqsqqqafew90d6s ?
ChatGPT "thinks" it's benign. I asked "What protocol is trojan in trojan://someUserId@123.23.23.3/..." and got:
The URL scheme "trojan://" is not a standard protocol like HTTP or FTP. It is commonly associated with Trojan proxies, which are a type of network proxy that allows users to bypass internet censorship and access blocked websites.
In the context of "trojan://someUserId@123.23.23.3/...", it appears to be a representation of a Trojan proxy configuration. Here's a breakdown of the components:
"trojan://" indicates the URL scheme associated with Trojan proxies.
"someUserId" represents a placeholder for the user ID or username.
"123.23.23.3" is an example IP address, which could be the address of the server hosting the Trojan proxy.
"/..." denotes that there may be additional path or query parameters following it, but without specific information, it's challenging to determine their purpose.
It's important to note that the term "trojan" is often used to refer to malicious software, specifically Trojan horses, which are a type of malware that disguises itself as legitimate software. However, in the context of the URL scheme "trojan://," it typically refers to the usage of Trojan proxies rather than malicious software.
i think a lot of my slowness is coming from nostr:npub16fcy8ynknssdv7s487nh4p2h4vr3aun64lpfea45d7h4sts9jheqevshgh as soon as i removed that relay, content loaded and im also able to type without stutters. *shrug*
On which client?
I wrote a director/producer/consumer setup
producer
connects to a bunch of relays, sends queries and pipes the results to a PUBSUB on redis (sharded by kind number)
director
orchestrates sending queries to the producers
consumers
does *something* with the data on the PUBSUB
(e.g. feeds nostr:npub1pages5yhmncmmfxuza9f9fx68fju0nxnewtlffzrapsufax5mv0sznuw9d, updates my neo4j, etc)
that's how I do it 🤷♂️ 😂
Doesn't sound like a tool anyone could try out quickly :(
What is the best tool to scrape all relays for specific events as a one-off task?
For example I have a list of 50 relays and want to know which version (event id) of my profile is stored on each of them.
My current approach is to go to https://nostr.info/relayr/ , patch the `ws.onmessage` callback to `console.log` what I need and then to either use the UI or further call on the dev console what the UI would call.
Fellow nostr devs, how do you do this?
RIP tostr https://github.com/slaninas/tostr
I tried to make it work again on friday just to find out there is a mandatory login policy now. I won't waste more time on this bird app nonsense and just go nostr-only.
What would it take to make it work again? Pay Twitter millions?
If you figure it out, poke Jack. He's offering 10BTC for a GitHub replacement although he didn't define well what he expects.



