Skip to content

Instantly share code, notes, and snippets.

@mppatterson
mppatterson / install.sh
Created October 10, 2014 01:20
Install Ruby MySQL Gem Requirements on Ubuntu
#! /bin/bash
apt-get install mysql-server libmysql-ruby libmysqlclient-dev
@mppatterson
mppatterson / alias
Created October 10, 2014 21:17
Git alias with autocomplete
# Alias 'g' to 'git' and provide autocomplete functionality.
alias g='git'
complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null || complete -o default -o nospace -F _git g
@mppatterson
mppatterson / php.ini
Created November 13, 2014 22:16
mailcatcher php.ini config with mailcatcher installed via rvm
SMTP = 0.0.0.0
smtp_port = 1025
sendmail_from = yourname@localhost
; Find catchmail path with "which catchmail"
sendmail_path = /usr/local/rvm/wrappers/ruby-1.9.3-p392@global/catchmail --ip 0.0.0.0 -f yourname@localhost
; Then run mailcatcher with:
; mailcatcher --ip=0.0.0.0
@mppatterson
mppatterson / gist:56662799846addcc028a
Created February 16, 2015 16:35
Enable key repeat for phpstorm and rubymine
# This was noted, but did not seem to work
# defaults write -g ApplePressAndHoldEnabled -bool false
# This one seemed to work, and is supposed to be specific to phpstorm and rubymine
defaults write com.jetbrains.intellij.ce ApplePressAndHoldEnabled -bool false

# open C:\Users\michael.patterson\AppData\Local\slack

# go to the current version directory

# go to app.asar.unpacked/src/static

# add the following to ssb-interop.js:

document.addEventListener('DOMContentLoaded', function() { $.ajax({