mozharov

mozharov's avatar
mozharov
npub1d8wz...s5af
Developer, writer, healthy man. Building t.me/zap_gram_bot — Lightning Wallet in Telegram.
Generate LN invoices on static sites without revealing your NWC secret. Problem: There are excellent JS libraries for working with #NWC, like @Alby 's js-sdk. The problem is that they're only suitable for working with the site user's wallet. But what if I want to generate #Lightning invoices on my site, for example, to collect donations? This requires a service layer on the backend, because if you simply generate invoices via NWC on the frontend, you'd have to expose your NWC secret. Solution: Therefore, I created a simple microservice where you can insert your NWC secret and get a unique endpoint for generating invoices on demand! To generate invoices, you just need to add a simple JS script to your static site that will call the received API method. Instructions: 1. Visit the website: 2. Insert your NWC secret (you can limit NWC to only invoice creation rights or set a minimum budget for security) 3. Get example code and a URL that when called generates a Lightning invoice for the specified amount 4. Insert the script into your site 5. Enjoy The integration example provided is very simple, so you may need to enhance it slightly to achieve the necessary functionality. Any AI can easily handle this, but feel free to contact me if you need help with installation! The service doesn't charge any fees — all invoices are generated directly by your Lightning wallet. By the way, you can even deploy this service on your own server — it only requires Node.js. Here's the GitHub repo: You can see an example of the script working on @Bitcoin Calendar's website. Just click on the “zap” button. #grownostr #dev
I found that I enjoy studying philosophy, especially the works of ancient philosophers. I feel not only interest, but also significant benefits. The knowledge gained influences both my business and lifestyle, and generally changes my thinking patterns. For example, I've been studying Marcus Aurelius, and now finishing reading the basics on logic from Aristotle - "Categories. On Interpretation." Downloaded more of Aristotle's major works. Really want to study each one: Physics, Politics, Rhetoric, Poetics, Ethics, Analytics, Metaphysics. Aristotle is a universal thinker with a wide range of interests, who made significant contributions in various fields. His works remain relevant and widely used to this day. I can't wait to study each work in more detail. 🤓
Now about my #achievements and more: ₿ First, I've arranged a partnership with . We discussed a Bitcoin payment service. I'm creating a service for them that they can easily integrate via API into their projects. This service handles all the work with receiving and processing Bitcoin payments, as well as monthly subscription-based payments. Think of it as "Stripe on Bitcoin standard." I get a percentage from each transaction, and they get rid of the headache with payments, subscriber database, and running their own node. They'll launch their first project with the payment system in the next couple of weeks. My goal of generating income in #Bitcoin is getting closer. 🫡 I plan to continue developing this service as a separate project. By the way, the basic version is already ready. So if you have questions about accepting Bitcoin #payments, you know who to contact 😎 Creating the service wasn't difficult since I already have a Lightning Network #wallet bot on Telegram — . Which, by the way, is used daily in chat for sending satoshis between participants and for paid chat access. So if you need paid entry control for Bitcoin or just the ability to donate Bitcoin in #Telegram chats/channels, I'm here to help 🫡 😬 Second, turns out I've been brushing my teeth wrong my whole life. I bought myself good toothpaste and a soft brush. Found out that you shouldn't rinse your mouth with water after brushing, but instead leave the toothpaste foam on your teeth... Especially effective to leave it overnight. But first you must buy toothpaste with good ingredients! Otherwise there's a risk of burning your mouth. I've been brushing like this for 2 weeks now, carefully going over each tooth. There are results! At minimum, I feel more freshness. At maximum, I see "dissolution" of cavities on my teeth. And overall my teeth have become whiter 🦷 💈Third, I've been washing my hair wrong my whole life with the wrong products! Before, if I skipped washing with shampoo for one day, my hair would become greasy the next day. Often my hair would become greasy by evening if I didn't wash it in the morning. Now I wash my hair with shampoo only once every 3 days, and my hair stays clean! On other days I just thoroughly clean with my hands under water. I think nutrition played a role here too. I bought shampoo with good ingredients. Now I realize I could write an article about oral and hair care. I discovered a lot of new things for myself while studying this topic. 🏘 Fourth, I moved to a bigger apartment. In the previous one I really lacked space for workouts and cooking. And there was a terrible and small refrigerator, which wasn't really a refrigerator but some kind of melting box. Especially the freezer was extremely bad - it didn't freeze at all and only spoiled my products. Now I have a normal refrigerator with large size! Now I have a two-room apartment, and there's plenty of space for yoga and other workouts. And the kitchen is bigger! I love it! Fifth, my flexibility has significantly improved! My legs, pelvis and shoulders sometimes stretch so well that I feel what seems like mild pain, but at the same time it's very pleasant due to new ranges of motion and sensations. And I can cross my arms behind my back from both sides even deeper! However, I have problems with my neck. In a relaxed state, my head "goes" forward and down. All because of the phone and sedentary lifestyle with head down! I'm working on correcting and "stretching" my spine. Progress is happening, and I can feel it. But very slowly. I'm looking for the most effective #exercises specifically for my case. View quoted note →
My main health metrics (recovery quality) have improved almost 2-fold compared to my metrics from 3 months ago. My current sleep metrics: HRV (Heart Rate Variability): 111 ms RHR (Resting Heart Rate): 47 bpm Respiratory Rate: 13.4 rpm HRV and RHR are the two most important indicators for tracking recovery quality. If HRV increases and RHR decreases, it means you're doing everything right. I'm attaching my average metrics from 6 months ago for comparison. My HRV back then was around 60 ms (terrible), and RHR was 60 bpm. Respiratory rate averaged 15 bpm. How pleasant it is to track these metric improvements! 😊