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

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

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

/* 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 ******
<?php
/**
* Template Name: Fullpage Slider
* @author: VLThemes
* @version: 1.0.2
*/
get_header();

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

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)

# Run Go Access
# When prompted select the first format,NCSA combined (press space) then hit enter
goaccess -f /var/log/apache2/id.log -c
# List only directories in the current location
ls -d */
# List files and directories with permissions and dates
ls -lh
# Remove white-sapce (tabs, spaces, and new lines)
sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' -e 's/[\t ]//g;/^$/d'
# Apache logs location on Ubuntu
cd /var/log/apache2
# Apache logs location on my local macOS
cd ~/Sites/logs
# Tail Logs, only show rows with specific info (like my ip address)
tail -f /var/log/apache2/[site].log | grep [search term]
# Search through zipped log files for some piece of data (ip/email etc.)