Skip to content

Instantly share code, notes, and snippets.

Joshua Canfield jcanfield

Block or report user

Report or block jcanfield

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
View gist:dbea452188b9f93419ff352117972791 # - Netia # - Netia # - Google # - Google # - OpenDNS # - OpenDNS # - OpenDNS # - OpenDNS # #
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
jcanfield /
Created Jul 15, 2018 — forked from fibergames/
DigitalOcean dynamic DNS updater script for your subdomain
# Created by // Loranth Moroz // v.0.5
# Required tools to run this script as is: curl ( & jq (
# This only works for Digitalocean - 10$ credit referral link:
# Edit token, domain, subdomain to fit your needs
# Substitute with your own ip-checker e.g.
# This is to be used with crontab -> example entry to run it every 3hours:
# 0 */3 * * * sh /path/to/script/
# Don't forget to make it executable: chmod +x /path/to/script/
jcanfield / .bash_aliases
Created Jul 10, 2018 — forked from insane-dev/.bash_aliases
Commonly used bash aliases
View .bash_aliases
# Colors
jcanfield /
Created Jul 9, 2018 — forked from davejamesmiller/
Bash General-Purpose Yes/No Prompt Function ("ask")
# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.
ask() {
local prompt default reply
while true; do
jcanfield /
Created Mar 7, 2018 — forked from jknight2014/
Installer for the Atomic Toolkit by HTPC Beginner
#The one step installer for the AtoMiC-ToolKit
#Written by
touch /var/log/atomic-install.log
echo "Updating APT ..."
apt-get -y update > /var/log/atomic-install.log
echo "Installing Prerequsits"
apt-get -y install git-core nano python-software-properties dialog > /var/log/atomic-install.log
dialog --title "The AtoMiC Tool Kit installer" --yesno "This will install the AtomMiC toolkit as well as some prerequsits. Please be aware this software is provided with no warranties. Proceed at your own risk. Would you like to continue?" 8 100
# Cloaning into the OPT folder for organization.
jcanfield / html-head-boilerplate.html
Created Jan 16, 2018 — forked from nunosans/html-head-boilerplate.html
HTML Head Boilerplate & Reference
View html-head-boilerplate.html
<!doctype html>
<!-- Priority tags. These must come first. -->
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge; chrome=1"> <!-- Render Chrome if available or using latest version of Internet Explorer (Recommended). -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<!-- Document Title -->
<title>Page Title</title>
<!-- Allows control over where resources are loaded from. Place as early in the document as possible, only applies to content below this tag. -->
jcanfield /
Created Dec 27, 2017 — forked from jxson/ template


At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.


jcanfield /
Created Nov 25, 2017 — forked from intfrr/
Things to setup/install on a new macOS
# change default shell to zsh (asks for password)
chsh -s /bin/zsh
# install xcode command line tools
xcode-select --install
# download my custom .zshrc
curl > ~/.zshrc
jcanfield / .bash_profile
Created Nov 25, 2017 — forked from stephenll/.bash_profile
.bash_profile file on Mac OS X
View .bash_profile
# ---------------------------------------------------------------------------
# Description: This file holds all my BASH configurations and aliases.
# Much of this was originally copied from:
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
You can’t perform that action at this time.