Sometimes you might want to add additional pages or some extra functionality outside of WordPress. I needed to do this and only allow singed in users to access the page.
There’s a pretty straight forward way to check visitors to the page simply by including the WordPress header file and then checking for an appropriate permission.
Read on for the script. Continue reading Authorising WordPress Users From Another Script
WGet is a pretty awesome tool for many reasons. But there’s a handy trick I picked up today while I tried to scan a website for broken links. Continue reading Scan a Website for Broken Links With WGet
I’m often switching between different Amazon AWS accounts. So to speed things along I’ve set up some simple scripts to easily switch between accounts while at the command line
On Linux (aws_setup):
Once saved, run
chmod +x aws_setup
On Windows (aws_setup.cmd):
Save as many files with the paths to your various AWS key pairs, and simply run the script from within a terminal before using the ec2 tools.
NOTE, when you run the scripts on Linux (and I guess Macs), add an extra dot before you run it. This will allow the environment variable to persist when the script ends.