Skip to content

Instantly share code, notes, and snippets.


Sathish Manohar sathishmanohar

View GitHub Profile
View gist:a2ae1a8349649aaa40e3
Verifying that +sathish is my openname (Bitcoin username).
sathishmanohar / Eric Meyer CSS Reset Improved.css
Created Feb 12, 2011
Made a few Manual Changes to Eric Meyer Reset
View Eric Meyer CSS Reset Improved.css
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,
sathishmanohar / gist:825672
Created Feb 14, 2011
How to Install LAMP on Ubuntu
View gist:825672
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
sathishmanohar / gist:1209649
Created Sep 11, 2011
Basic User Commands Linux
View gist:1209649
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>
View gist:1211102
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
sathishmanohar / gist:2818108
Created May 28, 2012
Set Default Shell Editors to VIM
View gist:2818108
# Check Present editors
# Now set all editors to VIM
export GIT_EDITOR=vim
export EDITOR=vim
export VISUAL=vim
sathishmanohar / deploy.rb
Created Aug 3, 2012
capistrano basic deploy file, tested with amazon ec2
View deploy.rb
# 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'
sathishmanohar / rails_app_advanced_setup
Created Oct 13, 2012
Advanced Setup for New Rails App - Shamelessly copied from Michael Hartl
View rails_app_advanced_setup
# 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
sathishmanohar / Gemfile.rb
Created Oct 13, 2012
Gemfile Skeleton for My Projects
View Gemfile.rb
source ''
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'
sathishmanohar / setup_devise.erb
Created Nov 17, 2012
Instructions to setup devise
View setup_devise.erb
# 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