Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
from fabric.api import * | |
""" | |
Base configuration | |
""" | |
env.project_name = '$(project)' | |
env.database_password = '$(db_password)' | |
env.site_media_prefix = "site_media" | |
env.admin_media_prefix = "admin_media" | |
env.newsapps_media_prefix = "na_media" |
# | |
# This is a default deploy.rb | |
# it is included into the Rails 3 Basic Template by default. | |
# | |
require 'active_support' | |
require 'lib/deploy_helpers' | |
DEPLOY_CONFIG = YAML::load(File.open("#{Rails.root}/config/deploy.yml")) |
#!/bin/bash | |
sudo apt-get install ruby-full | |
wget http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz -O /tmp/gems | |
tar -xzvf /tmp/gems -C /tmp | |
cd /tmp/rubygems-1.6.2 | |
sudo ruby ./setup.rb | |
sudo dpkg-divert --rename --add /usr/bin/gem | |
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem | |
sudo gem update --system |
# First install tmux | |
brew install tmux | |
# For mouse support (for switching panes and windows) | |
# Only needed if you are using Terminal.app (iTerm has mouse support) | |
Install http://www.culater.net/software/SIMBL/SIMBL.php | |
Then install https://bitheap.org/mouseterm/ | |
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
@mixin gradient($from, $to) { | |
/* fallback/image non-cover color */ | |
background-color: $from; | |
/* Firefox 3.6+ */ | |
background-image: -moz-linear-gradient($from, $to); | |
/* Safari 4+, Chrome 1+ */ | |
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from), to($to)); |
Simple vim setup with some essential plugins
#Using Font-Awesome with Rails 3.1 using CSS
Download font-awesome from https://github.com/FortAwesome/Font-Awesome
Put the font folder in the app/assets. I renamed the folder from font to fonts to make it clearer
Add config.assets.paths << "#{Rails.root}/app/assets/fonts"
to config/application.rb
. This is to include the apps/assets/fonts folder in the asset pipeline
Put the font-awesome.css file in the app/assets/stylesheets folder
/** | |
* jQuery MD5 hash algorithm function | |
* | |
* <code> | |
* Calculate the md5 hash of a String | |
* String $.md5 ( String str ) | |
* </code> | |
* | |
* Calculates the MD5 hash of str using the » RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash. | |
* MD5 (Message-Digest algorithm 5) is a widely-used cryptographic hash function with a 128-bit hash value. MD5 has been employed in a wide variety of security applications, and is also commonly used to check the integrity of data. The generated hash is also non-reversable. Data cannot be retrieved from the message digest, the digest uniquely identifies the data. |