# 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
############ 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)" |
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
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
# 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. |
http://www.wyliethomas.com/blog/2014/04/12/chromebook-for-web-development/
####(This wipes all the memory, so backup anything local)
esc + refresh then tap power
answer derived from: http://railscasts.com/episodes/241-simple-omniauth-revised?view=comments
- check comment reply from
Kori Roys
vim ~/.bash_profile
export TWITTER_KEY=your_twitter_key
export TWITTER_SECRET=your_twitter_secret
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://www.smashingmagazine.com/2013/08/09/absolute-horizontal-vertical-centering-css/ */ | |
.Absolute-Center { | |
height: 500px; | |
margin: auto; | |
position: absolute; | |
top: 0; left: 0; bottom: 0; right: 0; | |
} |
$ rails c
> ModelName.delete_all
> ActiveRecord::Base.connection.execute("DELETE from sqlite_sequence where name = 'table_name'")
sudo npm install -g localtunnel
lt --port
https://github.com/dnschneid/crouton/wiki/Running-servers-in-crouton
OlderNewer