-
Install the following applications: Alfred App Chrome Dropbox Sublime Text 2 Xcode
-
Add the following to ~/.bash_profile
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
mongodump -h [HOST]:[PORT] -u [USERNAME] -d [DB NAME] --password [PASSWORD] | |
mongorestore -h [HOST]:[PORT] -u [USERNAME] -d [DB NAME] --password [PASSWORD] [SOURCE] |
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
The default installation of compass in a rails app that is deployed to Heroku can cause some issues due to the nature of Heroku's read only file system. | |
A quick fix to this problem (assuming you develop locally and just deploy to production) you can add the following lines of code to config/compass.rb | |
environment = Compass::AppIntegration::Rails.env | |
if environment == :production | |
Sass::Plugin.options[:never_update] = true | |
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
Create a new rails app | |
$ rails new [app_name] | |
Update your gem file to include mongoid and bson_ext | |
gem 'mongoid' | |
gem 'bson_ext' | |
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
# Git Workflow | |
1. Navigate to your sites folder with "cd ~/sites" | |
2. Clone your repo with "git clone <URL>" | |
3. Move into the repo with "cd <FOLDERNAME>" | |
4. Move onto the development branch with "git checkout development" |
#SOCIAL SHARING LINKS
##Copy and paste the following into the HEAD of your page:
<style>
#social_share span {display: inline; float: left; vertical-align: top;}
#social_share span.title {font-weight: bold; font-size: 1.2em; margin-right: 10px;}
</style>
##Copy and paste the following where you'd like the share buttons to appear:
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
/** | |
* Box Shadow | |
* | |
* @category Foundation | |
* @package Helper | |
* @subpackage BoxShadow | |
*/ | |
.bsis { | |
-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.25); | |
-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.25); |
Makre sure your home directory does not have a space in it or gcc will crap itself
3. Install Homebrew[http://mxcl.github.com/homebrew/]
$ brew install git
Make a backup: heroku pgbackups:capture
or heroku pgbackups:capture --expire
Get the URL: heroku pgbackups:url
Download: curl -o latest.dump "URL"
Import: $ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump
OlderNewer