Every WordPress site running with default config is being hammered right now by brute-force scripts hitting xmlrpc.php and wp-login.php. If you run multiple sites on a single OpenLiteSpeed (LSWS) box, dropping a per-site .htaccess rule on each one is …
Why Does My Mac Keep Switching Screens?
How to use free protovpn VPN on ubuntu 20.04 using linux CLI?
protonvpn
Please note this is going to lock you out from your server and you will need to reboot to connect again. You should know what are you doing. While I am writing this, I am connected to my server …
display-posts-news-ticker
# display-posts-news-ticker
WordPress plugin to display WordPress posts in a nice news ticker.
– display-posts plugin is required to be installed from here: https://wordpress.org/plugins/display-posts-shortcode/
– Telex JS newsticker is used from here (no need to download or install): https://github.com/sjaakp/telex
Change …
start-fortnox-sync (from Airtable)
– Was made for internal Use.
Starts Pricelist sync to Fortnox on the main shops server. Waits for 30 minutes for each pricelist to finish.
NOTE: Add airtableToken & main server authorizationLink to make it work.
…
(async function() {
var
update-currency-rates (Airtable)
Finds pricelists on Airtable on all bases by checking 2 tables: Pricelist & (*).
(*) tables contains all the currency rates in this format:
(Please note that SEK is master currency)
Code. Rate
—- —-
SEK 1.0000000
USD 0.0972745
AED …
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 …
certbot-autorenew-cron-v1
v1.js
Helps to renew SSL certificates automatically using certbot. Helps in automatic domain verification too. Also, runs a cron to keep checking SSL renewal automatically at specified time interval.
We need to set reverse proxy for .well-known folder so it …