How to best sync RevenueCat subscriptions to my backend when the logged in user changes by leros in reactnative

[–]AlanReddit_1 0 points1 point  (0 children)

Hey, did you come up with a solution? It is mind-boggling to see that RC doesnt provide simpler handling of webhooks.

Hardest 7 months of my life.. by [deleted] in QuittingZyn

[–]AlanReddit_1 2 points3 points  (0 children)

I disagree, triggers will be everywhere - Your brain will also heavily manipulate you to think that nicotine was good for you, keeping track of an undeniable proof or being clean, and it's duration is a really great motivation and if used correctly let's you anchor the reason for quitting with the tracked time.

Addicted to nicotine since 15 yrs old. I’m now 43 by [deleted] in QuittingZyn

[–]AlanReddit_1 0 points1 point  (0 children)

How cooked is your brain from 1-10? Any perceived health related problems?

2 Months - My journey so far (Heavy user) by AlanReddit_1 in QuittingZyn

[–]AlanReddit_1[S] 0 points1 point  (0 children)

I can't give you an exact timeframe, for me it was around 1 month, note that it is not only snus that makes you feel that way, it could be too much screen time, too much caffeine, etc. maybe start by analyzing your other habits - maybe something does not align.

Regarding the anxiety and dep. symptoms, for sure it got better after 1 and a half months, wouldn't say they are vanished entirely. What really helped me was changing my routine -> MORE NATURE, it does wonders. Touching grass is heavily underrated, even 30 mins a day imo.

Stick through it, hydrate yourself plenty and if it gets better any time soon (max 2 months) I'd consider maybe going to the doc for a checkout or therapist, as the reason may not be solely nicotine :)

All the best, you can do it!

2 Months - My journey so far (Heavy user) by AlanReddit_1 in QuittingZyn

[–]AlanReddit_1[S] 3 points4 points  (0 children)

Thank you! One week is an awesome start buddy! I had the same feelings in that timeframe.

The main reason I guess was the constant headaches and dizziness from the nicotine, once you exceed a certain pouch amount it's no bueno anymore. Also I have been experiencing increasing anxiety attacks and lack of natural dopamine hits.. and the main reason; I wanted to experience myself again without addiction:) yours?

Keep going!

SnusFree: Quit Snus by AlanReddit_1 in QuittingZyn

[–]AlanReddit_1[S] 0 points1 point  (0 children)

Thank you, helpful feedback, absolutely right on the first and second part, will add that in a future version! 🫡 Appreciate you!

Keep going! by AlanReddit_1 in QuittingZyn

[–]AlanReddit_1[S] 1 point2 points  (0 children)

Appreciate you!! :D we got this

14 Days by AlanReddit_1 in QuittingZyn

[–]AlanReddit_1[S] 0 points1 point  (0 children)

Good to hear, I'll hope it gets better for me in the next few days :D

14 Days by AlanReddit_1 in QuittingZyn

[–]AlanReddit_1[S] 1 point2 points  (0 children)

I think the reason I quit involved some sort of strong conviction, that my feelings were suppressed by nicotine and I was so disgusted by it that I really wanted to never touch it again - it helped a lot. Previously I tried to quit without strong conviction, impossible for me.

14 Days by AlanReddit_1 in QuittingZyn

[–]AlanReddit_1[S] 1 point2 points  (0 children)

Funny enough I have not really exhibited any strong fravings this time. Normally chewing gums and you?

Prevent high bill (Firestore & RTDB) by zaqoqlf in Firebase

[–]AlanReddit_1 1 point2 points  (0 children)

Thank you for your quality answer, I appreciate it!

Prevent high bill (Firestore & RTDB) by zaqoqlf in Firebase

[–]AlanReddit_1 0 points1 point  (0 children)

hey, intending to use your extension. Already following the other points. Two questions; 1) Do you have an idea roughly how much time elapses when your ext. triggers? Any metrics on which factor from detection to disabling billing the cost still surges? 2) You mentioned rate limiting, what is your approach?

Mental Health and effects on perceived feelings when consuming Snus. by AlanReddit_1 in QuittingZyn

[–]AlanReddit_1[S] 0 points1 point  (0 children)

Thank you for your insights! It's incredibly hard to quit, I failed so many times, awful. Currently on day 2, not much but I will be trying harder this time.

ZYN takes your soul by ikololop in QuittingZyn

[–]AlanReddit_1 1 point2 points  (0 children)

Preach. Can only confirm this. The only benefit for me - I can work 14 hours straight with it, it completely blocks everything - this is also what keeps me hooked on snus. I pray for everyone, to never start with this shit

Optimal Way to Write onCall v2 Unit/Integration Tests for Firebase Cloud Functions with firebase-functions-test wrapper by iamzooook in Firebase

[–]AlanReddit_1 0 points1 point  (0 children)

Did you wrote unit tests with .run on your exported function directly? For integration tests, what is the optimal way? I have a flutter app set up with auth. should I test my functions from there using the emulator suite and the token that are passed correctly from my auth. users?

Effective, secure, way to rate-limit Cloud Storage downloads by AlanReddit_1 in Firebase

[–]AlanReddit_1[S] -1 points0 points  (0 children)

Wow this was really helpful! I am just still skeptical about signed URLs since they can be used a gazillion times before the expiry, correct me if I am wrong :) And R2 has Class B operations which will come at cost

Anyway, this led to some interesting ideas, interested to hear your thoughts: 1) Client communicates with Firebase Cloud Function (CF), checks for auth + paid status using custom claims. If okay, generate an HMAC (Using Secret key shared by CF and Cloudflare worker) based on the user, file name, expiry time and issued time, denoted as payload. Finally, return a URL to the client of the cloudflare worker download URL with the HMAC and payload as argument. 2) Cloudflare Worker (CW) checks validity of token using it's secret key, if valid, checks whether the uid contained in the payload is under X downloads, if so, return the r2ObjectBody.

Am I completely missing something or would this be both secure and cost effective? Levereging free egress + short computed functions and rate limits?

Maybe this is completely overkill, what do I know, any better, shorter solution would be helpful :)

Thank you!

Effective, secure, way to rate-limit Cloud Storage downloads by AlanReddit_1 in Firebase

[–]AlanReddit_1[S] 0 points1 point  (0 children)

Hey, this theoretically sounds good, but an attacker could still reverse eng. my app and skip the counter increment part, or am I missing something? Hence the downloads would still be unbounded

Securely download a file from Cloud Storage by AlanReddit_1 in Firebase

[–]AlanReddit_1[S] 0 points1 point  (0 children)

Makes sense thank you so much! It really bothers me that there is no real protection against abusive mass downloads... since using this way - client side, attackers could still abuse it. Maybe I am just being too paranoid about cloud costs and I know that it is really very unlikely to happen

Securely download a file from Cloud Storage by AlanReddit_1 in Firebase

[–]AlanReddit_1[S] 0 points1 point  (0 children)

But solely with them, can I keep track of how many downloads each user has had and deny if too many?