NPM and Yeoman update/install notes for MacOS

Had to deal with some issues introduced by bad homebrew installations and possible old NPM installs. My guess is that I probably cheated/screwed up using a sudo install when I should have done something different. This all started playing with the WebDevStudions WordPress plugin generator for yeoman. Get a Plugin Kickstart with Yeoman & generator-plugin-wp!… Continue reading NPM and Yeoman update/install notes for MacOS

Possum Wasp

So last night I attempted to fight off an urban possum with a can of wasp spray. It was all I had and the possum didn’t exactly run off and instead walked away sort of angry looking. Now if my poor choice of weaponry caused some angry mutation in downtown Houma you have my apologies.

Published
Categorized as Stuff

My Favorite Httrack commands

HTTrack is a website mirroring utility that can swamp your disks with mirror copies of the internet. I’ve had to use it several times to make off-line copies of websites for all sorts of weird reasons. You’ll find HTTrack at: www.httrack.com. You can get a full list of command line options at: https://www.httrack.com/html/fcguide.html. There is… Continue reading My Favorite Httrack commands

Apache log one-liners using tail, awk, sort, etc.

Good bunch of samples with other examples found at: https://blog.nexcess.net/2011/01/21/one-liners-for-apache-log-files/ [code] # top 20 URLs from the last 5000 hits tail -5000 ./transfer.log | awk ‘{print $7}’ | sort | uniq -c | sort -rn | head -20 tail -5000 ./transfer.log | awk ‘{freq[$7]++} END {for (x in freq) {print freq[x], x}}’ | sort -rn… Continue reading Apache log one-liners using tail, awk, sort, etc.

Using HyperDB to separate and share user and user_meta between WordPress installations

I need to remember to keep this example for some testing. This should be a good start for sharing a user and user_meta between websites. I do know that user_meta tends to have very site-centric settings at times. Original article was located at: http://wordpress.aspcode.net/view/63538464303732726666099/how-to-use-hyperdb-to-separate-and-share-a-user-dataset-between-wordpress-installs [code] $wpdb->add_database(array( //Connect to Users Database ‘host’ => DB_HOST, // I… Continue reading Using HyperDB to separate and share user and user_meta between WordPress installations

Create a new Git repo from and old repo

How to extend an old repository as a full copy in a new repository. This preserves the history of the old repository. Future changes will not affect the old repository, but will be committed to the new repository. This originally came from the info found at: http://stackoverflow.com/questions/10963878/how-do-you-fork-your-own-project-on-github [code] // This makes the new repo as… Continue reading Create a new Git repo from and old repo