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
Verifying that +sathish is my openname (Bitcoin username). https://onename.com/sathish |
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://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
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
sudo apt-get install apache2 | |
Restart apache server > > sudo /etc/init.d/apache2 restart | |
sudo apt-get install php5 libapache2-mod-php5 | |
Restart apache server > > sudo /etc/init.d/apache2 restart | |
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql |
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
adduser <username> #Adds User with username given. Enter Password when Prompted. Other Details are Optional | |
usermod -g <groupname> <username> #Adds Existing <username> to **<groupname>** and removes all other memberships of <username> | |
usermod -G <groupname> <username> #Adds Existing <username> to **Secondary** Group sales and keeps his existing memberships | |
usermod -G group1,group2 <username> #Add user to group2, but keep his existing membership of group1 when manually entered | |
userdel <username> #deletes user account with <username> |
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
gem install passenger #Install Passenger Gem First | |
sudo passenger-install-apache2-module #walks you through the installation of apache2 module | |
paste the apache config lines into /etc/apache2/httpd.conf #these lines are shown during apache2 module installation | |
paste virtual host line inside apache conf #these lines are also shown during apache2 module installation | |
# If theres error encountered during apache restart add "ServerName localhost" (without quotes) outside of virtual host tag |
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
# Check Present editors | |
echo $GIT_EDITOR $VISUAL $EDITOR | |
# Now set all editors to VIM | |
export GIT_EDITOR=vim | |
export EDITOR=vim | |
export VISUAL=vim |
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
# cd into_project | |
# Add Following Contents to the Gemfile | |
# gem 'capistrano' | |
# gem 'rvm-capistrano' | |
# run capify . | |
# Use the generated config/deploy.rb and populate/customize it with below content | |
require 'bundler/capistrano' | |
require 'rvm/capistrano' |
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 Rails app and skip-bundle and Test Framework creation and specifiy database | |
rails new app_name -T -d mysql --skip-bundle | |
# Copy appropriate Gemfile | |
# Add necessary Gems to Gemfile then run `bundle install` | |
bundle install | |
# Then init Guard | |
bundle exec guard init rspec |
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.8' | |
gem 'bootstrap-sass', '2.0.4' | |
gem 'bcrypt-ruby', '3.0.1' | |
gem 'faker', '1.0.1' | |
gem 'will_paginate', '3.0.3' | |
gem 'bootstrap-will_paginate', '0.0.6' | |
gem 'jquery-rails', '2.0.2' |
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
# Add devise to Gemfile | |
gem 'devise' | |
# Run bundle | |
bundle install | |
# Run devise install | |
rails generate devise:install | |
# Make sure alert code in application.html.erb |
OlderNewer