Category: Blog

Blog

No library HTML+CSS+JS Confirm Dialog

Made an HTML+CSS+JS (JavaScript) confirm dialog today without using any external library. No jQuery! HTML: CSS: JS: CodePen Preview: See the Pen No library HTML+CSS+JS Confirm Dialog by Animated Creativity (@animatedcreativity) on CodePen. Hope it helps someone!

Blog

How to instal L2TP server to connect from routers?

I have some old TP-LINK & D-LINK routers which have L2TP connection features on them. For network speed at my home, I had to buy a VPS in my city. I could easily install Squid proxy on the VPS and connect through it. But, this way I was required to set proxy on all of …

Blog

How to backup whole Linux server?

You can backup a whole VPS using the `rsync` command below. rsync -avP –exclude={“/dev/*”,”/proc/*”,”/sys/*”,”/tmp/*”,”/run/*”,”/media/*”,”/lost+found”} / /mnt/hdd/encrypted/vps-server-backup/ You can also backup to other server. rsync -avP –exclude={“/dev/*”,”/proc/*”,”/sys/*”,”/tmp/*”,”/run/*”,”/media/*”,”/lost+found”} / OTHER_SERVER_HERE:/mnt/hdd/encrypted/vps-server-backup/ You will first need to configure OTHER_SERVER_HERE in your ssh config file. You can check this for more info: https://linuxize.com/post/using-the-ssh-config-file/ You can add as many exclude parameters …

Blog

WordPress Admin was not showing add/deactivate/delete plugin options

A strange thing happened today. I wanted to manage plugins for one of my WordPress websites. But, I could not see any add/deactivate/delete plugin options on the Plugins page. Then I realised that I had WordPress Multi-Sites enabled as I installed it that way earlier. So, only Network Admin can do that. Just go to …

Blog

How did I change logo in Ajaira WordPress Theme?

The Ajaira WordPress theme is a nice and simple theme for blogging. I am using the same for publishing this blog too. It is available for free from WordPress.org here: https://wordpress.org/themes/ajaira/ Adding a logo icon before the site title was tricky though as the title will only accept text. So, here is what I had …

Blog

How to remove mounted volumes from working docker instances?

There may be other ways to unmount a volume from a working docker instance, but using the way below you can unmount any volume right away. On the docker instance itself, try these commands: df -h You will see a list of all the mounts. overlay         310G  160G  151G  52% / …

Blog

SimplePromise – A simple javascript promise with approve, reject, cancel & progress features

Needed a cancelable promise for my project. Also, needed to solve multiple resolve & reject problem done by original Promise because I was making a lot of asynchronous requests and gathering all data together. Here is SimplePromise which works same as normal promise and does exactly what I needed, hope it helps someone.

Blog

Slow WordPress website on Docker for Mac?

Dear Diary! Docker for Mac has a know problem with mounted volumes speed. I tested that container’s root volume had almost NO speed compromise vs mounted volume.   You can test speeds using dd for root volume, location can be just /tmp. I tested this on ubuntu:14.04 image. dd if=/dev/zero of=/tmp/output bs=8k count=300k; rm -f …