Skip to content

Instantly share code, notes, and snippets.

🐅
Tiger Style

Hunter Rancourt skwid138

🐅
Tiger Style
Block or report user

Report or block skwid138

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@skwid138
skwid138 / fortune-cowsay-lolcat.md
Last active Nov 26, 2019
When you open new shell/terminal window on macOS show cowsay with a fortune in rainbow colors.
View fortune-cowsay-lolcat.md

Fortune with random Cowsay character and lolcat

  • On macOS using Homebrew run the following to install the packages

    brew install cowsay fortune lolcat

  • Next add the following to ~/.bash_profile

# If brew installed fortune, cowsay, and lolcat
# Upon opening a new shell show a cowsay character with a random forutune in rainbow colors
@skwid138
skwid138 / wp-ngrok.md
Last active Oct 21, 2019
WordPress local development with ngrok
View wp-ngrok.md

WordPress Local Development and ngrok (macOS)

Setup

  • Install ngrok with hombrew brew cask install ngrok
  • Run ngrok for your local site ngrok http -host-header=my.site.local 80
  • Copy the https url that appears in the terminal and use it below to replace the ngrok.io url
  • If using the standard WP setup add the following to the bottom of wp-config.php
<?php
// Add a value if using NGROK
@skwid138
skwid138 / accept-github-invites.sh
Created Nov 2, 2018
Accept all invitations to collaborate on Github
View accept-github-invites.sh
#!/bin/bash
# must install JQ
# https://stedolan.github.io/jq/download/
# on OSX brew install jq
# must set Github Personal Access Token with full repo access only
### Set named arguments -t
while getopts ":t:" opt; do
@skwid138
skwid138 / git-check.sh
Last active Nov 14, 2019
Git How far local branch is behind/ahead of remote branch
View git-check.sh
#!/bin/bash
###
# Use -r to compare against a remote branch
###
## Example w/o this script
## git fetch --all | git rev-list --left-right --count origin/master...master
$USAGE="$0 [-r <remote branch>]"
You can’t perform that action at this time.