Backup MySQL (Bash script)

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 […]

Read More

Backup server files as tar.gz (Bash script)

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 […]

Read More

Disabling WordPress public REST API

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 […]

Read More

Notifying Google of an XML sitemap via a URL

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.

Read More

Quick and Easy SSL chipers

I’ve recently came across the https://cipherli.st/ site, from the cron.weekly email newsletter (I highly suggest you sign-up, some great posts and sites featured). Cipherli.st allows you to copy and paste SSL ciphers for a variety of web software (Apache, Nginx, etc.).

Read More

In-page embedded viewable PDF documents without a PDF reader

Here is a neat trick which I’ve found: using a tool by Google named Docs Viewer you can embed PDF (Or office and Postscript) files into a webpage to be viewed on screen, even without a PDF reader plugin installed in the user’s browser. Simply use the snippet below and change where your_document_here is mentioned twice […]

Read More

My must-have Brackets plugins

As a follow on from my previous post ‘Monokai theme for Brackets‘, I have produced a list of my must-have plugins for Adobe Brackets. Let’s go! Brackets Selections This plugin will add Sublime Text style selections. Github: https://github.com/DannyMoerkerke/brackets-selections Brackets Sort Text Extension Provides a couple of utility functions for sorting lines in the current document. […]

Read More

Monokai theme for Brackets

For about a year I have been using Adobe Brackets as my go-to code editor, previously I was using Sublime Text 3. Whilst I still love Sublime Text the idea of Brackets being open-source and written in HTML, CSS and Javascript was something that got me excited. However the Monokai theme that I gotten used […]

Read More