Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew J. McCullough matthewmccullough

View GitHub Profile
@matthewmccullough
matthewmccullough / git-compressing-and-deltas.md
Created May 14, 2012
Git, Compression, and Deltas - An explanation
View git-compressing-and-deltas.md

Git Compression of Blobs and Packfiles.

Many users of Git are curious about the lack of delta compression at the object (blob) level when commits are first written. This efficiency is saved until the pack file is written. Loose objects are written in compressed, but non-delta format at the time of each commit.

A simple run though of a commit sequence with only the smallest change to the image (in uncompressed TIFF format to amplify the observable behavior) aids the understanding of this deferred and different approach efficiency.

The command sequence:

Create the repo:

@matthewmccullough
matthewmccullough / game-theory-books.markdown
Created May 17, 2012
Game Theory Book list by Matthew McCullough
View game-theory-books.markdown

Economics & Software Development - Book List

The following books are ordered in descending order of Matthew's preference.

The Art of Strategy

by Avinash K. Dixit

Recommended by Ted Neward. A different perspective and writing style from the other volumes listed.

“I am hard pressed to think of another book that can match the combination of practical insights and reading enjoyment.”—Steven Levitt

View book-authoring-using-git-and-github.md
layout title description path
barewithrelated
Book Authoring Using GitHub and Git
Formats, tips and techniques for using GitHub and Git as the version control and collaborative platform for writing short and long form books.
usecases/_posts/2001-01-01-book-authoring-using-git-and-github.md

GitHub and Git are not just for writing programming code. They can also be an effective tool for writing articles and books. Matthew McCullough has written a quick guide to writing books in lightweight formats. This article will be folded into this Teaching repository over the coming months.

What is this?

@matthewmccullough
matthewmccullough / terminal.scpt
Created Jan 5, 2010
AppleScript to open a Terminal tab at the specified path
View terminal.scpt
-----------------------------------------------------------------------
-- A Script that opens a specified command line folder name in a new
-- terminal tab.
--
-- Composed by Matthew McCullough, 2010
-- MIT License. Share freely.
-----------------------------------------------------------------------
--Reference for tab opening
-- http://lambie.org/2007/11/03/tabs-in-terminal-using-applescript-on-leopard/
--Reference for other scripting approaches with Terminal
@matthewmccullough
matthewmccullough / gist:988077
Created May 24, 2011
Visualize Git Orphans via gitk and log
View gist:988077
# Put this in your .gitconfig file under the alias section
orphank = !gitk --all `git reflog | cut -c1-7`&
# Then run it by typing 'git orphank' on the command line.
# A text version of the same is
orphanl = !git --pretty=oneline --abbrev-commit --graph --decorate `git reflog | cut -c1-7`
@matthewmccullough
matthewmccullough / git-deletealltags.bsh
Created Apr 1, 2011
Script to delete all tags both locally and remotely
View git-deletealltags.bsh
for t in `git tag`
do
git push origin :$t
git tag -d $t
done
View implementation-specialist-list-of-questions.md

1st Round Interview

  • Q: How would you describe your demanor and how does that contribute to the outcome in a client engagement?

  • Q: When a customer says "We have all kinds of GHE problems and need your help." how would you narrow that down to a set of tasks that could be put into a statement of work?

  • Q: What tactics would you employ to suss out what the real (not just perceived) needs of a client are via a phone call?

  • Q: What is a process or criteria that you use to evaluate any kind of opportunity, such as a new technology, a new product feature, or a prospective client engagement?

  • Q: What are criteria by which you might prioritize the requests the Sales team makes of the Services team?

  • Q: What is a GitHub Integration that you find invaluable? Why do you find it useful?

  • Q: Have you investigated personal access tokens vs. OAuth flows for tools that use the GitHub platform?

  • Q: What type of questions do you find yourself asking in past client engagements?

@matthewmccullough
matthewmccullough / .zshrc
Created Jan 20, 2011
A configuration to maintain history across sessions and share it across terminals in ZShell
View .zshrc
##############################################################################
# History Configuration
##############################################################################
HISTSIZE=5000 #How many lines of history to keep in memory
HISTFILE=~/.zsh_history #Where to save history to disk
SAVEHIST=5000 #Number of history entries to save to disk
#HISTDUP=erase #Erase duplicates in the history file
setopt appendhistory #Append history to the history file (no overwriting)
setopt sharehistory #Share history across terminals
setopt incappendhistory #Immediately append to the history file, not just when a term is killed
View books.md
@matthewmccullough
matthewmccullough / O'Reilly-Fringes-Of-Git-Webinar.markdown
Created Apr 13, 2011
Matthew McCullough & Tim Berglund's O'Reilly "Fringes Of Git" Webinar Source
View O'Reilly-Fringes-Of-Git-Webinar.markdown

O'Reilly Git Webinar

The Fringes of Git

Overview

Matthew McCullough and Tim Berglund, authors of the O'Reilly Git Master Class videos will introduce you to the very edges of Git's capabilities. There are plenty of "Getting Started with Git" sessions on the web, but we'd like to take 40 minutes of your time in an entirely different direction. These 40 minutes will primarily be live coding with a few diagrams for reference. We'll show you how Git reaches farther than any other version control system to provide capabilities for both the novice and the master craftsperson.

Webinar Outline

Rebasing