Skip to main content

Sudarsan's Blog

Hosting your own apt/yum repository on Cloudflare R2

Hosting your own apt/yum repositories is a very user friendly way of distributing linux binaries. Owing to the nature of how they are packaged, it’s as easy to just use any object storage to simply act as an apt or yum repository. With Cloudflare’s amazing R2 object storage service that offers 0 egress fees, this becomes trivial and near free to set up.

See here for my detailed blog when I did this work as a side project during my time in Cloudflare: https://blog.cloudflare.com/using-cloudflare-r2-as-an-apt-yum-repository/

Cloning boxed traits in Rust

I enjoy coding with Rust’s composition system. It’s nice to also have generics. It makes adding and incorporating changes rather nice. I recently ran into a problem when I wanted to copy a group of boxed traits.

Lets start from the beginning. Imagine we have an http client that makes requests give a URL. Like so…

A little code generation in Go in 2020.

Perl gives me headaches. But I’m fond of one of Larry Wall’s three virtues: Laziness. This is a story of how sometimes laziness lets you do fun things.

Distributed systems and microservices are as ubiquitous as the coronavirus in 2020. This results in a requirement for a lot of integration. And a nice way to maintain the glue code is to use SDKs rather than have multiple services write the transport glue themselves. Like so…

How I got a 100 Dollar toy drone to follow me around.

It’s that time of the year again when I decide to add to my blog. It was my birthday last week and I decided to buy myself a small DJI drone to hack with. I wanted to get something lightweight, cheap and easily replaced. The DJI Tello so far has turned out to be delightfully sufficient for my criteria.

The video is here.

The experiment I set out to do is to have the Tello latch on to a face and follow it. To do this, I needed to be able to: