Decrease repository clone time in CI / CD
When using CI / CD to sync to repository from dev to build repository, sometime the build repo size is huge. First step is to reduce build repo size, If it doesn’t contain useful history you can clean up commits in it. GitLab has an article about how to do so. But if you just […]
Fix Raspberry Pi 4 boot from SSD
Hardware: RPI 4 – 4GB. SSD Case: – Orico 2.5″ USB 3.0 HDD Enclosure Case Micro HDMI to HDMI – BlueRigger High Speed Micro HDMI to HDMI (To debug issues) I followed guide provided in https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md Somehow when I used Raspberry Pi image disk copier utility it did not work for me, I had to […]
Setting Up Reliable WordPress Cron
We all know wp-cron can be unreliable if left on default WordPress setting, WordPress’s behaviour on maybe I will run maybe not for wp-cron in a case of sites with less traffic. There are following solutions to solve this problem. All require to disable default WP cron. This will work for both single and multisite WordPress installation. Linux Crontab […]
Backup WordPress site using Dropbox and wp-cli ?
Here is how you can backup small site using wp-cli and dropbox. Go to: https://www.dropbox.com/developers/apps Create new app call it anything it’s gonna be your private app. Generated access token and save it somewhere in your locker 🙂 Download file backup-site.sh and change directories path and DROPBOX_TOKEN sudo chmod +x backup-site.sh Setup crontab with crontab -e […]
WordPress Late Escaping but why!
A post I wrote on late escaping. http://wp3sixty.com/2016/02/01/late-escaping-but-why/