Skip to content

Instantly share code, notes, and snippets.

View johnnadeau's full-sized avatar

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 https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet#git

#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
johnnadeau / test.txt
Created January 20, 2016 17:33
Gist Test for Gitter
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
johnnadeau / trigger.cs
Last active August 29, 2015 14:06
Just a roughed out example of the structure we can use for the trigger system...
using System;
using System.Collections.Generic;
namespace Trigger
{
public class TriggerEvent
{
public int Id;
public TriggerEventType Type;
public DateTime EventDateTime; //UTC plz'

Description

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:

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

Results

@johnnadeau
johnnadeau / boxstarter.txt
Last active August 29, 2015 13:57
boxstarter script
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Install-WindowsUpdate
Set-TaskbarSmall
#dev tools
cinst git
cinst TortoiseGit
cinst 7zip
cinst fiddler