sudo mv Sublime\ Text\ 2 /opt/
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
sudo sublime /usr/share/applications/sublime.desktop
Copy/Paste to file
[Desktop Entry]
Version=1.0
var jq = document.createElement('script'); | |
jq.src = '//code.jquery.com/jquery-2.0.3.min.js'; |
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: { |
sudo mv Sublime\ Text\ 2 /opt/
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
sudo sublime /usr/share/applications/sublime.desktop
Copy/Paste to file
[Desktop Entry]
Version=1.0
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:
# Summary from: https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04 | |
# 1. Check if swap exists returns single line output if swap doesn't exist | |
$ sudo swapon -s | |
Filename Type Size Used Priority | |
# 2. Check disk space on root (/) with DF command: | |
$ df | |
Filesystem 1K-blocks Used Available Use% Mounted on |
*, *: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+ */ | |
} |
$ sudo apt-get install update-motd | |
$ sudo apt-get install landscape-common |
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" | |
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 |
#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{ |