Skip to content

Instantly share code, notes, and snippets.

Scott Nunemacher graphicsminded

  • Graphics Minded, LLC
  • Gilbert, Arizona
Block or report user

Report or block graphicsminded

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
@graphicsminded
graphicsminded / ask.sh
Last active Jul 15, 2018 — forked from davejamesmiller/ask.sh
Bash General-Purpose Yes/No Prompt Function ("ask")
View ask.sh
# 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() {
# https://djm.me/ask
local prompt default reply
while true; do
@graphicsminded
graphicsminded / makefile
Created Nov 19, 2016
New Project Makefile
View makefile
# Makefile for Scott Nunemacher
# Makefile format:
# target: dependencies
# actions
# By default, make these targets
all: newest.txt not-newest.txt variable-content.txt
View git-command-cheat-sheet.md

Git Commands in a Project Workflow

USERNAME is you
MYPROJECT is the name of your project

Create a MYPROJECT repository on GitHub but don't include ANY files (not even README.md or .gitignore). Then in a local directory create your local repository from the commandline.

Create a Project

mkdir MYPROJECT
cd MYPROJECT/
@graphicsminded
graphicsminded / git-alias-cheat-sheet.md
Last active Apr 16, 2016
Git Alias Cheat Sheet for ~/.gitconfig
View git-alias-cheat-sheet.md

Use Git Aliases to Reduce Fingertigue

Create

Include these aliases in your git workflow by adding them to: ~/.gitconfig

[alias]
    b = branch
    c = checkout
    h = help
    p = push
    s = status
You can’t perform that action at this time.