HNHacker News
TopNewBestAskShowJobs

mr-karan

926 karma · joined March 2, 2015

Interested in Backend, SRE & Distributed Systems.

https://mrkaran.dev

submissionscomments
mr-karan··on Just Build It...
Having done a recent refactor + redesign of my personal website, I echo with this sentiment. It's much easier to go live sooner and do incremental improvements than launch everything all at once.
mr-karan··on Ghostfolio: Open-source wealth management software
Looks nice. The comparison with S&P500/similar Index funds is an important metric to track. I’d also built a tool https://monkeybeat.market/ which demonstrates a similar concept.

I’ve been exploring such projects off late myself. I found https://github.com/ananthakumaran/paisa to be a really clean and well implemented project on similar lines. It already handles a bunch of asset classes familiar to the country I’m residing in which is tempting me to give it a shot sometime soon!

mr-karan··on Icanhazip: A simple IP address tool survived a deluge of users (2021)
Another DNS based one:

  dig ip @dns.toys +short
mr-karan··on Alpine Linux does not make the news
Have had so many issues related to DNS Lookup failures with container images on Alpine that I honestly can’t be bothered to deal with it anymore. If such basic stuff isn’t reliable then why should I consider it for production usage?

I stick to using Ubuntu minimal container images. They’re 30MB (compressed) in size so it’s never a problem around container bloat.

mr-karan··on Use multiple Git SSH identities on a single computer
I use the following aliases in my ~/.zshrc file:

  alias workgit="git config user.name 'full name' && git config user.email 'karan@org.tld'"
  alias persgit="git config user.name 'full name' && git config user.email 'karan@my.email'"

I prefer this because there are some overlapping directories in my filesystem and don't want to automatically use another git identity just based on file paths. Works well enough for my usecase.
mr-karan··on Easy HTTPS for your private networks
I've a simpler system to use encrypted network for local/private use.

- Setup Tailscale on the server and personal device

- Deploy apps (self hosted tools that I use) on the wireguard interface created by Tailscale

- Deploy caddy as a reverse proxy for all these tools and use `.internal` domain

- Use Adguard's DNS rewrites feature to answer custom DNS response for specified `.internal` domains. The A record contains the IP assigned by Tailscale (wg0 interface) for that device.

The Caddyfile is as simple as:

  http://miniflux.karan.internal {
    reverse_proxy 127.0.0.1:3000
  }

Using this setup, as soon as I connect to Tailscale, I can access `miniflux.karan.internal` on a secure encrypted network without worrying about configuring HTTPS for local domains or renewing SSL certs.
mr-karan··on Ask HN: Could you share your personal blog here?
My personal blog: https://mrkaran.dev/

I've been writing on this space for a while now but the frequency of posts has dropped to once in 2-3 months. I hope to make it a more consistent habit however.

mr-karan··on Show HN: Log collector that runs on a $4 VPS
Interesting. In my experience I found Metabase gets clunkier when you've to query for adhoc logs. However it's a great fit when it's just a template and all the end user has to do is to enter some variables to see the logs.

I think LogQL + Grafana UI is a pretty rich/interactive experience of viewing logs v/s Metabase.

mr-karan··on Show HN: Log collector that runs on a $4 VPS
Got it, thanks.
mr-karan··on Build your own fast, persistent KV store
I think what bitcask proposes (to routinely collect datafiles and mark them as stale and GC them later) is quite a simple solution. It would work for a lot of usecases.
mr-karan··on Build your own fast, persistent KV store
I recently implemented the Bitcask paper in Golang and shared my learnings: https://mrkaran.dev/posts/barreldb/

https://github.com/mr-karan/barreldb/

Bitcask is an excellent paper that is not overwhelming to understand and offers a great stepping stone in building your own data stores. The simple yet powerful design of an append only file is eloquent and performant.

I’d love to read about more such implementations, if anyone has any recommendations.

mr-karan··on Show HN: Log collector that runs on a $4 VPS
I've a similar pipeline to yours (for the storage part). I use vector.dev for collecting and aggregating logs, enriching with metadata (cluster, env, AWS tags) and then finally storing them in a Clickhouse table.

Do you use any particular UI/Frontend tool for querying these logs?

mr-karan··on Ask HN: Burnt out from big tech. What's next?
Could you please share more about your experience? What did you do these 7 months and in what way it changed your life? I'm pretty curious as I am dreaming about taking one someday in future :)
mr-karan··on Fake it until you automate it
The author of this blog also has published a library for people looking for a more advanced version of that script: https://github.com/danslimmon/donothing
mr-karan··on Show HN: ClickHouse-local – a small tool for serverless data analytics
Can you share some details on how you did this? I am interested too! Did you use S3 table functions or just downloaded the CSV locally and ran `clickhouse-local`?
mr-karan··on Ask HN: Share your personal site
https://mrkaran.dev/

I regularly blog about stuff I do at work/self hosting/anything I find interesting.

The blog is made with Zola and hosted on GitHub pages.

mr-karan··on Trianglify.io – Low Poly Pattern Generator
Quite a cool approach. Although only one downside I see here is that you're just relying on Stripe to let you access order history? What if they don't let you access this data via APIs for data older than a certain time period? Or is that not much of a concern here?
mr-karan··on Explaining modern server monitoring stacks for self-hosting
Push model is only great for short lived jobs (lambdas, cronjobs). Pull model scales much more easily if you’ve large number of servers in your fleet. Configuration is managed centrally, only the agent (like node-exporter) has to be running on the target node.
mr-karan··on Ask HN: Working in tech for climate?
I am getting `Access denied Error code 1020` while trying to access https://techjobsforgood.com/ from AS55836 in India.
mr-karan··on Docusaurus 2.0
Amazing, thanks for your response. I'll explore Docusaurus 2.0 :)

Congrats on the release.

mr-karan··on Docusaurus 2.0
I'm so happy with Material Mkdocs[1]. I use Obsidian to write a bunch of notes and then combine that with a bunch of mkdocs plugins to generate a static site out of it [2].

What does Docusaurus offer more, if anyone who's used both can compare?

[1]: https://squidfunk.github.io/mkdocs-material/

[2]: https://github.com/mr-karan/notes

mr-karan··on Manticore Search: Elasticsearch Alternative
I think LogQL[1] is a pretty good alternative to Lucene search syntax. It feels more natural and human friendly for searching logs.

[1]: https://grafana.com/docs/loki/latest/logql/

mr-karan··on Show HN: PocketBase – Open Source realtime backend in one file
This is quite a cool project! Congrats on the public release.
mr-karan··on Gitlab Architecture Overview
Hey Armin. That's very nice to hear that reduction is something on your roadmap. Pre Snuba, the number of external services were fairly limited but I understand as Sentry got more mature and added a bunch of extra services than "just error/crash reports" is when the architecture also sorta started to become complex.
mr-karan··on Gitlab Architecture Overview
This is so true. Sentry's architecture[1] is insanely complex. It runs some ~30 containers on the instance and all you've to pray is that their tooling[2] for `docker-compose` _just works_.

[1]: https://develop.sentry.dev/architecture/ [2]: https://github.com/getsentry/self-hosted

mr-karan··on Logging in Python like a pro
Honestly, I like to keep the logger as decoupled and minimalist as possible. There’s https://vector.dev which can basically ship your logs from source A to destination B (supports tonnes of usecases). Separation of concerns makes things much more easier.
mr-karan··on Ask HN: Does anybody still use bookmarking services?
Yup, I use a self hosted version of [1]

[1]: https://github.com/sissbruecker/linkding

mr-karan··on Cloudflare had a partial outage
They've just updated: https://www.cloudflarestatus.com/incidents/xvs51y9qs9dj
mr-karan··on Show HN: LinkWarden – A self-hosted bookmark and archive manager
Also shoutout to https://github.com/sissbruecker/linkding which is a nice self hosted bookmarks service that I've been using over the past one year or so.
mr-karan··on Ask HN: Is GitHub Down?
Things were slow today morning (3 hours ago), from India.
← PreviousPage 3 of 5Next →