Skip to content

Instantly share code, notes, and snippets.

View antonzaytsev's full-sized avatar
🕚
Take your time

Anton Zaytsev antonzaytsev

🕚
Take your time
View GitHub Profile
@praveendhawan
praveendhawan / Spree guides notes
Created March 27, 2018 08:00
SpreeGuides Notes
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
@devonzuegel
devonzuegel / .pryrc
Last active August 7, 2023 06:16
My .pryrc file
# === 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 ===
@dmytro
dmytro / ssh-multi.sh
Created October 31, 2012 03:46
Start multiple synchronized SSH connections with Tmux
#!/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
@DAddYE
DAddYE / image_uploader.rb
Created December 30, 2011 22:57
CarrierWave on the fly resizer (work as dragonfly)
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]
@bdotdub
bdotdub / redis.markdown
Created November 24, 2010 22:18
Running redis using upstart on Ubuntu

Running redis using upstart on Ubuntu

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: