Blog / Tech

How to enable 2FA in the Django admin

July 14, 2021

I remember the first time I've used 2FA (two-factor authentication) was over 12 years ago when I worked as a sysadmin/netadmin in a Windows environment.  We had to purchase this RSA appliance/server and pay separate licenses for each user in the system.

Back in those days, we also used these keyfobs with a simple screen showing the 6-digit number that automatically refreshes every x seconds.  I actually thought those were really cool and when they …

How to compress PDF files on Ubuntu Linux with Ghostscript

March 28, 2021

This is something I have to do from time to time especially around tax season as I tend to get scanned documents in PDF format which are just unnecessarily too big in size.

I like to keep important documents in smaller sizes as I keep them archived for a long a time and they add up.  I want to be able to quickly download or upload them somewhere even with a slow internet connection.

I …

How to bulk unfollow people on Twitter through your web browser

October 4, 2020

I wanted to do some cleanup for a couple of Twitter accounts I use last night as I'm following too many people.  One account has thousands of them which would of course take a long time to do manually.

Normally, I'd just write a Python script and do it via the API but I decided to do a quick search to see if there's an easier way.

It turned out, there is!  I found this nice …

Setting up additional entropy for your Ubuntu VPS with haveged

June 28, 2020

We've recently ran into an issue with one of our staging servers where a scheduled cron job would occassionally hang for a few minutes before executing.  The issue turned out to be due to a low entopy (i.e. randomness) value in /proc/sys/kernel/random/entropy_avail.

Randomness in Linux is generated from hardware interrupts such as the keyboard, mouse, and disk/network IO.  This goes into a pool which then gets consumed by applications that require randomness for security, such as …

How to disable the Tab Hover Cards in Chrome

October 28, 2019

My Chrome recently got updated and a new feature that was introduced which I found very distracting and annoying is "Tab Hover Cards", where it displays a pop-up box whenever you place your mouse cursor on a tab.

To disable this function, type this in the URL:

chrome://flags/

Then search for "tab hover" and set the settings to "Disabled":

Disable Tab Hover Cards in Chrome and Brave Browsers

If you use the Brave browser, the steps above will also work.

Older