With Amp Conf over for 2018, there has been some great talks by speakers available on YouTube, these are some videos I felt gave me some good understanding for what’s next in AMP.
VestaCP offers an API which allows the firewall rules to be changed, but I could only find examples which use PHP and cURL and I required a script which would work as a Bash script. I’ve created a script below which you’re free to use. Ensure your host URL, admin username and password are correct […]
This is an example of how to use the YouTube API with multiple videos within a Bootstrap carousel. I have added Play/Pause functionality to a custom button and added the ability for the videos to be paused when the carousel is transitioned. A CodePen is attached below to see the example in action, and the […]
I thought I would share this simple PHP function to hopefully help anyone needing a quick solution. Imagine, you have a multi-dimensional array such as this: <?php //Example array $array = array( ‘test’ => array( ‘name’ => ‘John Doe’, ’email’ => ‘email@example.com’ ) ); ?> And you need to extract a specific bit of data, […]
This is similar post to be read together with this. And a follow-up update to ‘Backup SQL files to FTP server‘ script. Version 2.0.0, now adds additional features and bug fixes: Now searches to ensure the required packages are installed. Uses ‘lftp‘ to upload files via FTP. Lftp allows multi-level directories to be created on […]
This is a follow-up post with an update to the ‘Backup Files as Tar.GZ‘ script. Version 2.0.0, now adds additional features and bug fixes: Now searches to ensure the required packages are installed. Uses ‘lftp‘ to upload files via FTP. Lftp allows multi-level directories to be created on the server. Renamed configuration variables to make […]
This is a follow-on from my previous post: ‘Backup server files as tar.gz‘. The script below works in a similar way as the previous, save as ‘backup_mysql2ftp.sh’ and fill out the ‘Backup options’, ‘MySQL Connection details’, and your email address. Run the script with sudo sh backup_mysql2ftp.sh (make sure the file is executable first). The […]
This is a quick and simple backup script, specifically created for use with Online.net’s 100GB FTP Storage, which is given for free when buying one of their dedicated servers. The script below is simple, saves as ‘sudo sh backup_files2ftp.sh’ and fill out the ‘Backup options’, ‘FTP Connection details’, and your email address. Run the script […]
I’ve recently found that the public WP REST API endpoints within WordPress can provide information which can be used in ‘hacking’ attempts. One such endpoint is ‘/wp-json/wp/v2/users’ (e.g. https://yourdomain.com/wp-json/wp/v2/users), this will display Admin usernames to any unauthenticated user. There are a couple of way to mitigate this risk, install the Disable REST API or add […]
Today I found out you can easily notify Google of an XML sitemap by ‘pinging’ Google via a GET request: http://www.google.com/webmasters/sitemaps/ping?sitemap=URLOFSITEMAP.xml You can perform this via PHP, or if running on Linux; use wget.