Skip to content

Instantly share code, notes, and snippets.

View miend's full-sized avatar

Michael Endsley miend

  • Wisetack
  • San Antonio, TX
View GitHub Profile
@miend
miend / .bash_profile
Created September 14, 2012 16:05 — forked from joshkraemer/.bash_profile
AWS Local Machine Bash Configuration
# Load Amazon EC2 API tools
source ~/.ec2/setup_env.sh
@miend
miend / useful-terminal.sh
Last active October 10, 2015 17:07 — forked from joshkraemer/useful-terminal.sh
Useful Terminal Commands
# Start an application in the background (leaving terminal free for other use once it starts)
application-name [whatever options] &
# No really, just put & on the end of it. Trust me.
# Recursively find all files named config and replace a string using sed. The -i flag requires a blank suffix '' to work on Mac.
find . -name config -type f -print | xargs sed -i '' 's/git@github.com:CollegePlus/git@github.com:collegeplus/g'
# Recursively find all files with a certain file extension and replace a string using perl.
find . -name "*.fileext" -print | xargs perl -i -p -e 's/STRINGTOFIND/STRINGTOREPLACE/g'
@miend
miend / unicorn
Created September 14, 2012 15:59 — forked from joshkraemer/unicorn
Unicorn init.d script
#!/bin/sh
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: unicorn initscript
# Description: unicorn
### END INIT INFO
@miend
miend / mime.types
Created September 14, 2012 15:57 — forked from joshkraemer/mime.types
Nginx Configuration Optimized for Unicorn Rails Apps
# /etc/nginx/mime.types
# Global Nginx mime.types file
types {
text/html html htm shtml;
text/css css;
text/xml xml rss;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;