*come back from some Rust coding and chores*
If you truly want free Internet with Nostr, then what was your last time when you built something for Nostr? What was your last time when you maintained relay? When did you donate sats for Nostr developers and maintainers? To which developers and maintainers? When did you teach people programming their own RSS-ish and p2p tech? When you built these tech for the last time? What tech you built for the free Internet?
And here's the harsh truth about freedom of speech and centralization. Bitcoin maxis and lolbertarians may disagree with it, but I need to share it. Some people who do decadent slopposting, s%tposting and spamming, just deserve censorship and high control over their activities in the media. They're not only just consooomers, this is okay, especially in young and crises periods. They parasitize on relays maintained from just good heart, promoting their destructive agendas or just sh%tpost, rendering progressive technology of higher conscious entropy as meaningless and reinforcing justification of censorship and one-party control. Also that's why creative clubs of interests has been disappearing, because some people just exploit this social model solely for their self-profit gains, ignoring well-being of people.
#blog #nostr #thoughts #relay #freedomofspeech #freeinternet
JayByte
npub1al2d...rnuy
Software Engineer. I love slow/async life, privacy, nature, pantheism and art.
Latest PromptQL (templating language for LLMs):
https://gitlab.com/jbyte777/prompt-ql/-/tree/release-6.x
Tutorials on programming:
https://medium.com/@jzx777
PGP: 6D12 369B 03ED 0C5C 835B F71F 8945 685A 7F70 B06E
Notes (19)
To make it clear what cottagepunk is: this aesthetic integrates rural/provincial living, autonomish industrial technologies: semi-handcrafted solar PVs, wind turbines, bathing, 3D printers and computers, and autonomish Internet technologies and organizations: cryptocurrencies, RSS feeds, BBS-like networks, startups and e-commerce. It is not simply a retrograde culture which is not sustainable and prosperous in modern world for obvious reasons. It is a blend of cottagecore basis with self-conscious selection and creation of new technologies. So this culture incorporates both DIY farming, craft, constructed languages and digital nomadism, alternate biology (occasional, with rat-human collapsed elites, pig-human collapsed simple consooomers, catbois, catgirls who evolve from humans by metamorphosis).
The cottagepunk has been created since 2023 when I moved to small town with my ThinkPad laptop and wrote programming tutorials on building distributed networking technology.
For brief example, these pictures are of cottagepunk aesthetic stemmed from the post-cyberpunk 2040s fiction.
nostr:nevent1qvzqqqqqqypzpm756j3chngqqnf3qvdp09e2df4rkvh7duu489vvgltryhet35gxqy28wumn8ghj7am0wshxummnw3ezumn9wshsz8thwden5te0dehhxarj95crztnev94kj6r0dehx2tnrdakj7qgnwaehxw309ahkvenrdpskjm3wwp6kytcqypp30pf460a59aaastfa4pfgdvshezvvtha0vhg62p0whztc5jj3sev96zx
#cottagepunk #postcyberpunk
Custom Nostr #relay for #cottagepunk
nostr:nevent1qvzqqqqqqypzpm5aj708u9qc48m5w2a0stwfvzp2p4p9rdmmevts5mkweyl6mlmyqydhwumn8ghj76rpwejkutnpvd3kjmmv0yh8xmmrd9skctcprdmhxue69uhhg6r9vehhyetnwshxummnw3erztnrdakj7qg3waehxw309ahx7um5wghxcctwvshsqg9ct4wgpg86px5psxturatjmz9e9qak9a5trr3u4ytjv8akm7qug50jeqzf
Those will also believe that crypto caused electric blackouts lol
Those yearnings of 100 IQ monkeys who can't do basic maths, systems and believe.
Thank you dudes who run noisy bots :3
Test
P.S. The correct version of the command for deletion of events is:
```
#!/usr/bin/env bash
sqlite3 /path/to/nostr-relay/nostr.db "DELETE FROM event WHERE created_at < CAST(strftime('%s', datetime('now', '-365 days')) as INTEGER);"
```
nostr:nevent1qvzqqqqqqypzpm756j3chngqqnf3qvdp09e2df4rkvh7duu489vvgltryhet35gxqywhwumn8ghj76twv3jhsetj9e3k7unpvdkx2tnnda3kjctv9uq3wamnwvaz7tmjv4kxz7fwwpexjmtpdshxuet59uq36amnwvaz7tmwdaehgu3dxqezu7tpdd5ksmmwdejjucm0d5hsqg9zvcws00ht5ax48ejjr4a9kqgss9dxp38kfr3t3dzyx3awunug2g7e747s
Found a good website on documentation and examples of SQLite (which is default DB for Nostr relay): https://www.sqlitetutorial.net/sqlite-like/
This helps to write queries which can maintain Nostr relays in healthy state.
#nostr #relay #sqlite #howtosetuprelay
SOOOOOOOOQA
Also. Learn at least programming, OSes, basic technology, maths, history and biology. Preserve your knowledge and build new stuff as much as you can. Every technology is prone to unclear patches which serve primarily for monkeyish political gain.
Recently I've set up my own Nostr relay. The key strugles during my setup of nostr-rs-relay were:
1. Assuming that Caddy would issue SSL certificate for bare IP address. It doesn't even though it is possible to issue SSL certificate for bare IP address. Before publish your relay, be sure you set up a domain and linked it to your VPS. And then configured it in the Caddyfile like so:
```
your-relay-domain.com {
reverse_proxy 127.0.0.1:8080 # internal IP of your Nostr relay
tls your-email@example.com
log {
output file /var/log/caddy/nostr.log {
roll_size 1gb
roll_keep 1
roll_keep_for 720h
}
}
}
```
Then after restarting Caddy, it sets up SSL certificate for domain automatically.
2. Setting up cleanup cron job for too old Nostr events for preserving disk space. It wasn't very obvious, that the `datetime` function will return valid date with two flags set: 'now' and 'unixepoch', so I covered it with the `strftime` function and then casted to integer:
```
#!/usr/bin/env bash
sqlite3 /path/to/nostr-relay/nostr.db "DELETE FROM event WHERE CAST(strftime('%s', datetime('now', '-365 days')) as INTEGER);"
```
Before taking these notes into account, follow standard path of installing nostr-rs-relay and Caddy. For example: https://usenostr.org/relay . Or you can ask LLM and follow instructions with good knowledge of Linux based systems. And configure separate user (for ex. `deploy`) which has full read/write/execute permissions to Nostr relay directory and directory where you would store cleanup script.
You can test your relay with the Go CLI util nak:
```
nak event -c "Hello from the nostr :3 ^_^" wss://your-relay-domain.com
```
#blog #nostr #relay #howtosetuprelay #caddy
I don't want to live in dystopian future where technologies and knowledge are controlled only by few corporations and governments, because it will lead to harsh civilizational collapse of declining monotheistic paradigm with endless covering competition and scarcity mentality. With free global Internet and digital nomadism, there's at least a good possibility of recovering of humanity to new quality of life and freedoms with FOSS and free scientific knowledge bases. So I did my little part in preserving Nostr and I want to share my notes on setting up Nostr relay :p
#blog
Haha. I remember times when I contributed for free software so much. One time was when I was a teenager who built and designed arcade game with custom game mechanics from lowest level. Further times were when I did cognitively easy-peasy frontend job (tho project was big).
Yep. That's why "free open-source" either is an utopia, or can only be maintained by community for long time and persistently in yet scarcity society.
nostr:nevent1qvzqqqqqqypzpm5aj708u9qc48m5w2a0stwfvzp2p4p9rdmmevts5mkweyl6mlmyqydhwumn8ghj7argv4nx7un9wd6zumn0wd68yvfwvdhk6tcpz9mhxue69uhkummnw3ezumrpdejz7qgmwaehxw309a5xzan9dchxzcmrd9hkc7fwwdhkx6tpdshsqgz6sfa0e84ct4nae0a6tu5cmyqe6cn4cq3d64n26nlyn494hkzehup3dk08
cottagepunk web vs. modern web


Conscious growth is Modern version of Amish :D
Yep. JavaScript is a rabbit hole language. Also response body can only be read once and you can guess this behavior only from docs.
nostr:nevent1qvzqqqqqqypzpx3p26f9t59r48n4780zunyg8jd79etptzrly2ewea43syau6kraqy88wumn8ghj7mn0wvhxcmmv9uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcpzpmhxue69uhkummnw3ezumt0d5hsqgxgufj9s3a9kekpt3x2qzfrs88r2f5ucnwu3z939pn220r6ak3tjurqkq0l