# Quiet Assets
group :development do
gem 'webrick', '~> 1.3.1'
end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/a/14114909/1180523 | |
:filetype indent on | |
:set filetype=html # abbrev - :set ft=html | |
:set smartindent # abbrev - :set si | |
# Then gg=G | |
# In my experience this doesn't ALWAYS work (like it should)... but sometimes it does. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO table_name (column_name1, column_name2, etc) | |
VALUES | |
('value1','value2','etc'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Slow Method */ | |
SHOW COLUMNS FROM table_name; | |
/* Fast Method */ | |
DESC table_name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############ FROM http://rocksolidwebdesign.com/notes-and-fixes/ubuntu-server-ssh-agent/ ########### | |
# Check to see if SSH Agent is already running | |
agent_pid="$(ps -ef | grep "ssh-agent" | grep -v "grep" | awk '{print($2)}')" | |
# If the agent is not running (pid is zero length string) | |
if [[ -z "$agent_pid" ]]; then | |
# Start up SSH Agent | |
# this seems to be the proper method as opposed to `exec ssh-agent bash` | |
eval "$(ssh-agent)" |
NewerOlder