Skip to content

Instantly share code, notes, and snippets.


John Nadeau johnnadeau

View GitHub Profile

Some Quick tips for using git, that I wish I knew years ago...

#Alias git and common commands

  • at a minimum, alias g="git", it's a tool you use all the time save those keystrokes!
  • go further, alias common commands: ga="git add", gst="git status", gc="git commit", etc
  • if you use zsh, the oh-my-zshconfiguration framework has tons of aliases for git(and other things)
  • if you don't want to take a whole framework, you can checkout the aliases it sets here

#Use git stash or WIP commit messages when changing branches

  • git stash is a quick way to just put some changes to the side when you need to change the focus of your work
johnnadeau / test.txt
Created Jan 20, 2016
Gist Test for Gitter
View test.txt
Testing 123

Why I use VIM and tmux.

  • I'm more efficient and productive in an environment like this. I can move around a file more quickly. Change the file I'm looking at in an instant. Have a console window and several source files open in the same terminal window, neatly organized as I see fit.

  • When I say VIM and tmux, I actually mean anything that makes you more productive. Use VIM/screen, emacs/screen, emacs/tmux, etc...

johnnadeau / trigger.cs
Last active Aug 29, 2015
Just a roughed out example of the structure we can use for the trigger system...
View trigger.cs
using System;
using System.Collections.Generic;
namespace Trigger
public class TriggerEvent
public int Id;
public TriggerEventType Type;
public DateTime EventDateTime; //UTC plz'


This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2


johnnadeau / boxstarter.txt
Last active Aug 29, 2015
boxstarter script
View boxstarter.txt
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
#dev tools
cinst git
cinst TortoiseGit
cinst 7zip
cinst fiddler