Skip to content

Instantly share code, notes, and snippets.

Matt M. theothermattm

Block or report user

Report or block theothermattm

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

Tom Chi - Learning Through Prototyping


  • Better to reason with experience/data than guesses
    • Find the quickest path to experience
    • Doing is the best kind of thinking.
  • Smart people will always have good defenses of their guesses
  • "Am I hearing a guess, or am I hearing direct experience?"
    • We want experience
theothermattm /
Created Jul 28, 2017
Sync files using .gitignore
rsync -azP --delete --filter=":- .gitignore" . targethost:/targetdirectory
theothermattm /
Created Jul 20, 2016
Convert .crt to .pem for CA's
# from
openssl x509 -inform der -in /Path/to/the.crt -out /Path/to/the/file.pem
theothermattm /
Created Oct 7, 2015
An Event Apart - Austin, TX 2015 - Notes

Follow ups:

  • stand up webpage test internally:
    • docker image?
    • convert AMI to an VMware image?
    • need windows machines for agents
  • sign up for podcast - @jensimmons
  • responsive design podcast - ethan marcotte and karen mcgrane
  • - for travel
theothermattm /
Created Oct 7, 2015
Rsync files using .gitignore
# sync everything excluding things in .gitignore
# delete anything on target not in source
# include dotfiles and symlinks, also use compression
rsync -azP --delete --filter=":- .gitignore" . my-target-host:/my/target/directory
theothermattm /
Created Feb 25, 2015
Attach to a docker image by image name
# attaches to the first running docker container containing the name passed
# in as the first argument to the command
# example: attachto projects
function attachto () {
echo "Attaching to first running docker container with name: $1 You might need to press ctrl+c to start entering commands..."
docker attach $( docker ps | grep $1 | head -n 1 | cut -d' ' -f1)
theothermattm / gist:ff8d689cf2405a504b28
Created Sep 16, 2014
Cut a section of lines using sed
View gist:ff8d689cf2405a504b28
sed -n 16224,16482p filename > newfile
theothermattm / .tmux.conf
Last active Aug 29, 2015
My Tmux Conf file
View .tmux.conf
#Below configs from
#Prefix is Ctrl-a
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
theothermattm / .matt_profile
Last active Sep 30, 2015
My Bash/Zsh Common Dotfile
View .matt_profile
# for homebrew, make sure homebrew stuff is last in path
export PATH=/usr/local/bin:/usr/local/sbin:~/bin:$PATH
function mi() { mvim "$@" ;}
# git
alias gs='clear; git status'
alias sstatus='clear; svn status'
function gadd() { git add "$@" ;}
You can’t perform that action at this time.