- Some utilities:
sudo apt-get install vim tmux git- Copy/paste from the command line:
sudo apt-get install xclip| #!/usr/bin/env bash | |
| apt-get -y update | |
| apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev | |
| cd /tmp | |
| wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2 | |
| tar -xvjf ruby-1.9.3-p194.tar.bz2 | |
| cd ruby-1.9.3-p194/ | |
| ./configure --prefix=/usr/local | |
| make |
| namespace :spree do | |
| desc "Export Products to CSV File" | |
| task :export_products => :environment do | |
| require 'fastercsv' | |
| products = Product.find(:all) | |
| puts "Exporting to #{RAILS_ROOT}/products.csv" | |
| FasterCSV.open("#{RAILS_ROOT}/products.csv", "w") do |csv| | |
| csv << ["id", "name", "description","sku", "master_price" ] |
| #!/usr/bin/env ruby | |
| # To install: | |
| # about:config | |
| # create a new boolean network.protocol-handler.external.txmt with value true | |
| # create a new string network.protocol-handler.app.txmt with value path to the script | |
| require 'rubygems' | |
| require 'cgi' | |
| require 'uri' |