Skip to content

Instantly share code, notes, and snippets.

View Vagrantfile
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.box = "ubuntu-14.04"
config.vm.provision "shell",
inline: <<-CMD
sudo apt-get install git vim python-virtualenv -y
@mattjmorrison
mattjmorrison / .vimrc
Last active Aug 1, 2020
Vimfiler Config
View .vimrc
set nocompatible
if !1 | finish | endif
if has('vim_starting')
set nocompatible " Be iMproved
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
let neobundle_readme=expand($HOME.'/.vim/bundle/neobundle.vim/README.md')
if !filereadable(neobundle_readme)
silent !curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh | sh
endif
@mattjmorrison
mattjmorrison / chess_clock.sh
Created Oct 3, 2014
Tmux Chess Clock Pairing
View chess_clock.sh
#!/bin/bash
`tmux set-option -g display-time 2000`
IFS=$'\n'
CLIENTS=()
for CLIENT in $(tmux list-clients); do
CLIENTID="${CLIENT%:*}"
if [[ $CLIENT == *\(ro\) ]]
then
@mattjmorrison
mattjmorrison / .gitignore
Last active Jan 3, 2019
Tool Instructions
View .gitignore
.vagrant/
*.swp
View gist:3eb726730fab078592e7
https://gist.github.com/mattjmorrison/2712d13932da8b35b187/edit
@mattjmorrison
mattjmorrison / templates.md
Last active Aug 29, 2015
Pyowa - Django Templates
View templates.md

Template Loaders

TEMPLATE_LOADERS = (
    ('django.template.loaders.cached.Loader', (
        'django.template.loaders.filesystem.Loader',
        'django.template.loaders.app_directories.Loader',
    )),
)
@mattjmorrison
mattjmorrison / prototypes.md
Created May 30, 2014
6-10-2014 DSMJS Prototype Talk
View caps_lock.md

How to use Caps Lock as both Ctrl and Esc on OS X

  1. Get [Homebrew][homebrew]
  2. Get [Homebrew Cask][cask]
  3. Install Seil using brew cask install seil
  4. Install Karabiner using brew cask install karabiner
  5. Disable Caps Lock
    • Open System Preferences
    • Open Keyboard Preferences
    • On the Keyboard Tab click "Modifier Keys..."
@mattjmorrison
mattjmorrison / setup.sh
Created Dec 4, 2013
New imtapps macbook setup
View setup.sh
curl https://raw.github.com/toranb/osx-workstation/master/installer | bash
git clone https://github.com/JarrodCTaylor/imt_dotfiles.git
cd ~/imt_dotfiles/Mac
bash symlink.sh
View .zshrc
#!/bin/zsh
# vim: set foldmarker=<<,>> foldlevel=1 foldmethod=marker:
#===================================================================================
# .__
# ________ _____| |_________ ____
# \___ / / ___/ | \_ __ \_/ ___\
# / / \___ \| Y \ | \/\ \___
# /_____ \/____ >___| /__| \___ >
# \/ \/ \/ \/
#===================================================================================