Assuming you've created a directory called project_dir
and all your code/files/folders/assets etc are in this folder then you can initialize your git repo by running the following in your $
shell/terminal prompt:
project_dir$ git init
export PATH=/usr/local/bin:$PATH | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source $GITAWAREPROMPT/main.sh | |
export PS1="\u@\h \W \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function |
#stripe{ | |
height:5px; | |
background:url('/static/img/stripe.gif') repeat-y center top; | |
-webkit-background-size:1000px 1px; | |
-moz-background-size:1000px 1px; | |
background-size:1000px 1px; | |
} | |
@media screen and (-webkit-device-pixel-ratio:2.0){ | |
#stripe{ |
http://blog.mirotin.net/35/mamp-1-9-5-mysql-5-5-9-and-ruby-mysql2 | |
sudo install_name_tool -change libmysqlclient.18.dylib /Applications/MAMP/Library/lib/libmysqlclient.18.dylib ~/.rvm/gems/ruby-2.0.0-p0/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle | |
gem install mysql2 -- --with-mysql-config=/Applications/MAMP/Library/bin/mysql_config | |
database.yml | |
socket: /Applications/MAMP/tmp/mysql/mysql.sock | |
http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion |
require 'fog' | |
# Please replace these with the approprate values | |
RACKSPACE_USERNAME = ENV['RACKSPACE_USERNAME'] | |
RACKSPACE_API_KEY = ENV['RACKSPACE_APIKEY'] | |
RACKSPACE_TEMP_URL_KEY = ENV['RACKSPACE_CLOUDFILES_TEMPURL_KEY'] # Self generated random string used like an auth token | |
puts "Creating Storage Service" | |
$ sudo apt-get install update-motd | |
$ sudo apt-get install landscape-common |
*, *:before, *:after { | |
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ | |
-moz-box-sizing: border-box; /* Firefox, other Gecko */ | |
box-sizing: border-box; /* Opera/IE 8+ */ | |
} |
Digital Ocean recently released private networking support in their NYC2 Data center.
They also published a blog post on how to setup a new droplet with private networking. But one thing the post doesn't do is tell you how to scale your private network for many boxes. One approach is obviously to edit /etc/hosts (but this gets annoying when you add a new box). A better way is to create an internal DNS zone (via the digital ocean web interface) and have your droplets use it:
options: { | |
port: 9000, | |
// change this to '0.0.0.0' to access the server from outside | |
hostname: 'localhost' | |
}, | |
rules: [ | |
// Internal rewrite | |
{from: '(^((?!css|html|js|images|fonts|\/$).)*$)', to: '/index.html#$1'} | |
], | |
dev: { |
var jq = document.createElement('script'); | |
jq.src = '//code.jquery.com/jquery-2.0.3.min.js'; |