WP CLI – Change Blog Domain

If you are changing the domain of a WordPress blog, for development purposes or just moving to a new domain, there is a simple way to achieve this using WP CLI (WordPress Command line Interface). Instead of having to rely … Continued

Git; Get All Branches Last Commit Date and Time

for k in git branch | perl -pe s/^..//; do echo -e git show –pretty=format:”%Cgreen%ci %Cblue%cr%Creset” $k — | head -n 1\\t$k; done | sort -r The set of piped commands above produces easy-to-read output of all your repo’s branch … Continued

Count IP Occurrences in Apache / Nginx Logs

This command will parse an Apache or Nginx log file and print-out the 50 highest occurring IP’s, along with the number of occurrences, to the shell prompt. machine:~ User$ cat access.log | awk ‘{print $1}’ | sort -n | uniq … Continued

Bootstrap v4, hidden-*, visible-* replacements

Bootstrap v4 has replaced the following classes: hidden-sm-down, hidden-md-down, hidden-lg-down, hidden-xl-down, hidden-xs-up, hidden-sm-up, hidden-md-up, hidden-lg-up, hidden-xl-up, hidden-xs, hidden-sm, hidden-md, hidden-lg, hidden-xl, visible-xs, visible-sm, visible-md, visible-lg, visible-xl Below is an example of what classes you now need to have in order … Continued