Requesting dark mode to websites on Firefox

Introduction

Most mainstream web-browsers including Firefox now-a-days come with a feature where your browser sends your preferred colorshemes to websites when you visit them. If the website supports this feature, then you are presented with a light or dark version of the website based on your preference. In this post I will share how to manually configure it in Firefox.

prefers-color-scheme

prefers-color-scheme is a CSS feature that can be used by websites to detect if the browser has requested a light or a dark color theme. And if your browser sends the preference of dark theme and if a visited website chooses to implement an alternate dark CSS colorsheme then the web content will be displayed in dark mode. Here are the allowed values for prefers-color-scheme:

[Read more]

Creating word documents on the command line

Introduction

The command line has always seemed to me something that is both fascinating and under-utilized to a large extent at the same time. Creating a document on the command line is easy and sometimes it is more straightforward than using WYSIWYG tools like LibreOffice or MS Office or Google Docs. In this post I share how I use Pandoc, Vim and Markdown for creating good professional grade documents on the command line.

[Read more]

Linux equivalent for MacOS open

Introduction

I have been using a Mac at my work for a few months now and there’s one command line utility in MacOS that I am quite impressed with called open. In this post I talk about a similar alternative in Linux world.

What is open?

From the open man page:

Open a file or folder.

The open command opens a file (or a folder or URL), just as if you had double-clicked the file’s icon.

[Read more]

My list of things to do after installing Debian on the PC

Introduction

I like the fact that Debian does not do a lot of customizations over the upstream packages by default but this also means extra work for you for setting up things after installing Debian on the PC. The upside is that you get to customize things exactly the way you like it. It definitely helps to have a list to start with and this post lists down some of the customizations I make after installing a fresh copy of Debian.

[Read more]

Moving My Blog to GitHub Pages from Wordpress.com

Introduction

I recently moved my personal blog to GitHub Pages from Wordpress.com. I have been thinking about doing it for sometime and this time I finally did it. And in this post I wanted to share the a few things about it.

What this post is and what it is not

This post talks about about how I made the switch to Jekyll and GitHub Pages from Wordpress.com and the reasons behind it. It is not a rant about Wordpress.com.

[Read more]