TODO: make gem for this
This was tested using Rails 3.2 and Rails 4.0 on Ruby 2.0.0.
-
Set the install directory for Bower components:
// .bowerrc
$("#selectBox").append('<option value="option6">option6</option>'); |
## | |
Lets say we have YoloFont.otf | |
1. We add it to vendor/assets/fonts/ folder | |
2. Me personaly creates a file named fonts.css.scss in app/assets/stylesheets | |
In it I have | |
@font-face{ | |
font-family: 'YoloFont'; |
class @GoogleAnalytics | |
@load: -> | |
# Load the analytics code | |
window['GoogleAnalyticsObject'] = 'ga' | |
window['ga'] = window['ga'] || -> | |
(window['ga'].q = window['ga'].q || []).push arguments | |
window['ga'].l = 1 * new Date() | |
# Add the script |
<select class="ddlList"> | |
<option value="3">Three</option> | |
<option value="1">One</option> | |
<option value="1">one</option> | |
<option value="1">a</option> | |
<option value="1">b</option> | |
<option value="1">A</option> | |
<option value="1">B</option> | |
<option value="0">Zero</option> | |
<option value="2">Two</option> |
Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
Most of this I got from the DigitalOcean file.
ssh [email protected]
. Enter your password if needed.passwd
into the console to change the password of root to something you can remember.adduser [username]
in the console. Feel free to fill out the FuPlease refer Ruby on Rails installation in this link | |
https://gorails.com/setup/ubuntu/14.10 | |
Please refer phusion passenger installation in this link: | |
https://www.digitalocean.com/community/tutorials/how-to-install-rails-and-nginx-with-passenger-on-ubuntu | |
TLDR; Install phusion passenger to ubuntu server using: | |
- gem install passenger | |
- rvmsudo passenger-install-nginx-module |
class @GoogleAnalytics | |
@load: -> | |
# Load the analytics code | |
window['GoogleAnalyticsObject'] = 'ga' | |
window['ga'] = window['ga'] || -> | |
(window['ga'].q = window['ga'].q || []).push arguments | |
window['ga'].l = 1 * new Date() | |
# Add the script |
PS1='${c_user}\h${c_reset}:${c_path}\w${c_reset}$(git_prompt)\$ ' | |
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
c_reset=`tput sgr0` | |
c_user=`tput setaf 2; tput bold` | |
c_path=`tput setaf 4; tput bold` | |
c_git_clean=`tput setaf 2` | |
c_git_dirty=`tput setaf 1` | |
else | |
c_reset= |