Blog
fn-cors-proxy-with-auto-refresh
This script will run a simple CORS server for Fortnox API: https://developer.fortnox.se/documentation/
It will also refresh the API token every 30 minutes and will use it automatically allowing us access to Fortnox API. We do not need to provide Fortnox …
Using multiple PHP versions in OpenLiteSpeed
OpenLiteSpeed (OLS) includes a nice “Compile PHP” option under Tools. We can use it to compile different versions of PHP. So, I compiled 7.4.24 and 8.0.11 and the binaries were saved in the folders /usr/local/lsws/lsphp7 & /usr/local/lsws/lsphp8 respectively.

Then I …
Laravel gives error 500 without any further log or information if storage permissions are not allowed
I will start with the fact that I hate Laravel.
But, still a client wanted to me to deal with an application built on it. First it forced me to upgrade PHP from 7.4 to 8.1. Then it kept giving …
How to renew WildCard SSL using LetsEncrypt Certbot updating DNS records automatically without interaction?
As LetsEncrypt does not allow webroot or any other verification method for renewing WildCard SSL certificates like *.domain1.com, for a client I needed to renew LetsEncrypt WildCard SSL automatically without requiring any manual interaction.
It is simple but took some …
How to create a WordPress blog post using WP CLI (remote too)
We can create a WordPress blog post using WordPress CLI (Command line interface) tool: wp-cli
Please follow the installation instructions for your system on this page: https://wp-cli.org/
After we have installed, we can use the wp command now.
We can …
How to init node.js package without any confirmation promt?
Sometimes I need to initialise a node.js package inside an empty folder without needing to confirm all the defaults. So, I use –force (-f) option.
npm init --force
The default JSON that will be used, it will show as output …
rclone – compress and backup full disk to remote or cloud storage
This is the command which will do the magic:
dd if=/dev/sda1 | gzip | rclone rcat db-disks:/path/to/backup.gzip
This command will read full disk contents and will stream it to gzip command for compression and which in turn stream to rclone. …
How to archive emails on using Mac OSX and any IMAP provider
I have been using FastMail since a long time now and inbox is getting bigger than 20GB and will soon reach a limit of 30GB. I gathered all emails from GMail, Yahoo, Apple etc. using IMAP into FastMail account and …
Amazon S3 Glacier Deep Archive storage class for $1/TB backups
Amazon S3 provides the most cost effective pricing of $1/TB for Glacier Deep Archive storage class. It is too good to be true. But, it comes with a drawback that when you need your data you will have to pay …