Skip to content

Instantly share code, notes, and snippets.

Avatar

John Nadeau johnnadeau

View GitHub Profile
View quick_git_tips.md

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 Jan 20, 2016
Gist Test for Gitter
View test.txt
Testing 123
View vim_tmux.md

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 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'
View whiteboardCleaner.md

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 Aug 29, 2015
boxstarter script
View boxstarter.txt
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Install-WindowsUpdate
Set-TaskbarSmall
#dev tools
cinst git
cinst TortoiseGit
cinst 7zip
cinst fiddler
You can’t perform that action at this time.