I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis
onto
the box and here's how I did it and some things to look
out for.
To install:
Spree Guides | |
Products | |
1. Track uniq products | |
2. Option Types -> denote the different options for a variant | |
3. Option Values -> values for option types | |
4. Product must be assigned at least one option type if you wish to create variants for that product | |
5. Variants -> individual variants of a Product | |
6. Master Variant -> tracks basic information such as a count on hand, a price and a SKU |
# === EDITOR === | |
Pry.editor = 'vi' | |
require 'awesome_print' | |
# == Pry-Nav - Using pry as a debugger == | |
Pry.commands.alias_command 'c', 'continue' rescue nil | |
Pry.commands.alias_command 's', 'step' rescue nil | |
Pry.commands.alias_command 'n', 'next' rescue nil | |
# === CUSTOM PROMPT === |
#!/bin/bash | |
# ssh-multi | |
# D.Kovalov | |
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
# a script to ssh multiple servers over multiple tmux panes | |
starttmux() { | |
if [ -z "$HOSTS" ]; then |
class ImageUploader < CarrierWave::Uploader::Base | |
include CarrierWave::MiniMagick | |
storage :file | |
def thumb(size) | |
begun_at = Time.now | |
size.gsub!(/#/, '!') | |
uploader = Class.new(self.class) | |
uploader.versions.clear | |
uploader.version_names = [size] |