Skip to content

Instantly share code, notes, and snippets.

View skwid138's full-sized avatar
🐅
Tiger Style

Hunter Rancourt skwid138

🐅
Tiger Style
View GitHub Profile
# Run Go Access
# When prompted select the first format,NCSA combined (press space) then hit enter
goaccess -f /var/log/apache2/id.log -c

Vim/Vi Commands

Delete an entire line dd (cannot be in Insert mode)

Enter Insert mode to edit the file i

Exit Insert mode esc

Save and Exit Vim :wq (cannot be in Insert mode)

Vim Setup

Vim Package Manager

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

note: You may be able to skip curling the file as the config should automatically download it for you

<?php
/**
* Template Name: Fullpage Slider
* @author: VLThemes
* @version: 1.0.2
*/
get_header();
/* h Styles */
h1, h2, h3, h4, h5, h6 {
font-family: futura-pt-bold, sans-serif, Helvetica Neue, Helvetica, Arial !important;
font-weight: 700;
margin: 0;
color: #fff; /* Hunter Added this because it seemed like the right thing to do at the time */
}
/****************
***** FONT ******

Big Sur Indexing

After updating to Big Sur the spotlight search no longer finds apps

Temporary Fix (reboot will require doing this again)

Run sudo mdutil -E / Open Activity Monitor and force quit the SystemUIServer process

Credit: https://developer.apple.com/forums/thread/667316

Update and/or Upgrade fail with various git errors

Running brew upgrade or brew update results in some sort of git error

  • Merge conflict
  • Unfinished rebase

Use brew update-reset instead which I beleive downloads all the updates/upgrades fresh

Use brew doctor to get tips on what can be done to improve your local brew setup

Debug with the CLI

fwrite(STDERR, print_r($thing_to_debug, true));

Helpful Composer Commands

Verbose Flag composer update -vvv composer update [package name] -vvv

Update Autoloaded class map

This is helpful if you've changed the file structure. I beleive this also occurs when running composer update