After spending some time on searching on Google and reading some WooCommerce forums I found out that it was much easier than expected. Do not use quotes or %2C. Just escape the comma using a backslash like \, That’s all! It will work like a charm. I had to replace all commas to \, on …
Category: 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!
CSS Disable Checbox
Today, I needed to disable checkbox using CSS only without any HTML attribute. Here is the code: HTML: CSS: Here is a working example at CodePen. See the Pen CSS Disable Checkbox by Animated Creativity (@animatedcreativity) on CodePen.
How to install ZeroTier on Mac OSX?
I love ZeroTier because it has made my life simpler by putting everything on the same private network and now I can access any of my device from my other device. Like I can easily access my iMac from my iPad when I am not at home. There are apps for iOS & Android already …
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 …
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 …
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 …
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 …
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% / …
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.