Monday morning started with an abuse report from Hetzner. My server was apparently sending SMTP brute force attacks to mail servers worldwide. Great. The Initial Discovery The attack vector was an exposed FRP (Fast Reverse Proxy) server running without proper authentication. Attackers used it to deploy malware that: Connected to an IRC Command & Control […]
Author: Tõnis
I use AI to write 95% of my code. While this has dramatically increased my productivity, it introduced a critical challenge: maintaining consistent code style in fp-ts projects. The AI would randomly switch between JavaScript Promises and TaskEither, use deprecated fp-ts functions, and generate 100+ line inline functions that completely defeated the purpose of functional […]
Comparison of kubectl port-forward tools
When I deployed my websites, then I always had problems with refreshing/sub routes like /finding/latest. Other developers posted solutions like sketchy redirect scripts, but they had a big problem.
I am using build.gradle.kts Jacoco: id(“org.barfuin.gradle.jacocolog”) version “3.1.0” Optics from Arrow library Arrow library generates __OpticsKt files that don’t have coverage in Jacoco. How to ignore them in the build.gradle.kts? Answer You need to add tasks.jacocoTestReport { block: How does it work? It seems like Jacoco uses .class files to generate coverage. Check in your […]
fp-ts is a great library, but it can be confusing some times. The last problem that I had was that I didn’t know how to implement validatedNel. Some methods have been deprecated, and the issue answers also didn’t help. ValidatedNel validatedNel is used to validate multiple problems and then merge them together into a single […]
Lazy/conditional logging in JavaScript
I had some trace logs that I only wanted to enable conditionally, eg only when the logging level was set to TRACE. I couldn’t find a node.js library that enables this kind of logging. For each of them, the logger always evaluated the string input. The longRunningTask was always ran, even if trace logging was […]
This is for “@uiw/react-codemirror”: “^4.20.2” capture the ref to the codemirror objects 2. on each new ref callback, call the dispatch with the new selection and scrollIntoView note: I used MUI accordion, and for that the useRef didn’t seem to update when I collapsed and expanded the Accordion. Therefore I needed to update the object […]
I have recently tried my luck with code4rena, where you can earn extra income by finding bugs in Solidity contracts. At first I didn’t find any bugs, only low priority QA issues. However, after a few audits I have improved my process and submitted some critical issues. My process Read the contest details Understand the […]
What is a Knowledge Token?
Knowledge Token is an NFT project that allows content writers to create tokens that readers mint in order to see secret content. Knowledge Tokens are NFT-s stored on the Polygon blockchain. Owning a token can reveal a secret URL, which can push readers toward minting. The secret URL could be the accompanying source code for […]
