Tag: fix

  • Drupal 8 notes – Transfer site to local system for development

    These are procedures and notes to download source code and database content for development use on a local workstation server. The goal is create a mirror of the Drupal based website for local development and testing. Prerequisites You should have a local or alternate development system ready. This systems will require a web server running […]

  • Drupal 8 – Composer: updating, module installs, & external library support notes

    This is a set of configuration steps used to setup the requirements for the Tulane Library website using Drupal. PHP-Composer with Bower and NPM integration is used for updating and installing Drupal core, modules, and libraries. Included are procedures, configurations, and websites with information. Prerequisites – May be necessary on the composer system used for […]

  • Drupal 8 content type, view, block, twig notes

    Large general tutorial video making a directory with content types and views:https://www.webwash.net/how-to-build-directory-using-drupal-8/ PathAuto module information. For helping to make more readable URLshttps://www.webwash.net/automatically-generate-url-aliases-using-pathauto-drupal-8/ Using Entity References in Views – Great overview of using entity references.https://www.ostraining.com/blog/drupal/drupal-8-entity-reference-view/ Drupal 8 theme twig template file reference. Includes various naming conventions for pages, views, blocks, nodes, etc.https://www.drupal.org/docs/8/theming/twig/twig-template-naming-conventions

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

  • Spying on a directory with auditd

    Files start coming up missing for me on a server and I get freaked out looking for security holes, but sometimes users and other utilities are spiking the bunch bowl. You can get serious with watching files with other utilities, but I went back to good ole auditd. A simple test to track stuff getting […]

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

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

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

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

  • Git local repositories

    These are some quick examples and notes related to using git with local repositories. Using local repositories can be helpful maintaining file changes without committing to larger repository systems like Github. Instead of syncing with a remote repository, synchronization and changes are committed to the local repository and recorded. First we create a new local […]