In the terminal: brew update cd $(brew –prefix) && git fetch && git reset –hard origin/master
How to view the number of unique visitors to a page
As seen here: http://www.martinlugton.com/view-number-unique-visitors-page-set-pages-google-analytics/ You can see the number of unique visitors to your site as a whole in Google Analytics’ Audience report. But if you go to Behavior > Content Drilldown, to view a particular page of set of pages, you can only see “unique page views”. Unique page views is a different measure to Full Article…
Wildcard Find & Replace in Sublime Text
As seen here: https://www.kevinleary.net/wildcard-find-replace-sublime-text/ This should have been easier for me to understand, but regex still gives me headaches. For anyone wanting to run a search and replace in Sublime Text that contains wildcard values this can be used: [^<]+ For example, we could use the following search string to find a set of anchor links. Full Article…
Detect the WordPress login page
As seen here: https://stevegrunwell.com/blog/quick-tip-is_login_page-function-for-wordpress/ Add this function: Then you can use:
Clean a hacked WordPress website
Use the online RedLeg fileviewer to scan the website in question for malware, malicious redirects, malicious scripts and other bad stuff. Use the online deobfuscate javascript tool to deobfuscate javascript if scripts have been hidden. Some good practises to keep your website free from hacks: Update WordPress to the latest version Web-server hosting WordPress should Full Article…
Reset the Recommended File and Directory Permission of Bitnami WordPress Website on Linux
As seen on Code Channels. You have a WordPress website provisioned from Bitnami. Sometimes you may not be able to write or edit files in the WordPress directory, create new directories or edit files in the wp-content folder. The article introduces how to reset the recommended access permission of the WordPress files and directories. 1. Full Article…
Bitnami WordPress media upload issues
As seen on Bitnami’s forums: https://community.bitnami.com/t/permission-issue-could-not-upload-images-to-wp-content-uploads/30664 Connect to your site via ssh. Then check the uploads directory permissions. Then user the Bitnami user to fix permissions if necessary
Can’t upload images in WordPress
This is awesome content as written by Fathi Arfaoui on the Trustiko website. Read more at https://trustiko.com/cannot-upload-images-in-wordpress-fix/ …Copyright (C) https://trustiko.com One of the most common problems in WordPress (as any other platform) is to get error messages when trying to upload images. This is a big challenge for starters who can’t find a quick solution. So, I’ll show why Full Article…
Get WP CLI to use MAMP’s version of PHP
I just set up WP CLI and it wasn’t working because I had MAMP installed. This advice fixed the issue at hand: [http://stackoverflow.com/questions/4145667/how-to-override-the-path-of-php-to-use-the-mamp-path/10653443#10653443] In your home folder /Users/David for exmaple, you can create a .bash_profile. In here you can export variables and then add them to your path. Open up the file to edit it Full Article…
Extract a zip file on a web server
Issue Many applications come pre-packaged in a compressed ZIP or TAR file. Instead of unpacking these files on your local computer and then uploading the many files via FTP you can upload the compressed file and extract the files directly on the server to save you time. Unfortunately Plesk doesn’t have a facility to do this Full Article…