Blog

Profit First and Paying Yourself First

April 15, 2018

I was recently re-reading this article by Basecamp which really resonated with me.

When we started Highview Apps, both my co-founder and I agreed that we'd bootstrap the business and start paying ourselves right away as soon as we're making profits. Being both engineers, we were able to keep our costs extremely low as we didn't need to hire anyone to build our products. Servers cost very little ($5/month per server with DigitalOcean) …

How to find the Wi-Fi network password (and other settings) via command line in Ubuntu

February 7, 2018

While you can get this information via the "Network Connections" GUI, it could come in handy sometimes to know where this is located. For example, you might want to write a script to display the SSID and passwords of all the Wi-Fi networks you've connected to.

Basically, all the network connections are saved under /etc/NetworkManager/system-connections in Ubuntu in separate configuration files. If you want to delete all the Wi-Fi settings in bulk (for privacy reasons …

Goals for 2018

February 4, 2018

Last year had been a great year for me, in both personal and business.

In my personal life, nothing really exciting occurred but nothing bad happened either. It was a low-stress year. I felt pretty content with my lifestyle and still grateful for having a lot of flexibility. Being able to work remotely pretty much allows me to live almost anywhere I want and move at any time. Because of this flexibility, I was also …

How to delete all queues in RabbitMQ

January 21, 2018

I recently had to do this for one of my older Django projects that uses Celery as I made the mistake of using the broker as the result backend.

Using "amqp" as the result backend is not recommended in production as this will create a queue for each task. I noticed I was getting a warning for the file descriptors in the RabbitMQ web management dashboard.

From the web management (available by installing the management …

How to use proxies with an HTTP session using the Python requests package

December 26, 2017

I was working on a client project yesterday where I needed to use a proxy to make HTTP requests with the Python requests package.

In my use case, I needed to create a session and I wanted to just specify the proxy settings in one place and use that for all requests made through that session. I didn't see how to do this in the documentation so I thought I'd share my solution here.

Here's …