This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p /mnt/gentoo | |
mount -t proc proc /mnt/gentoo/proc | |
mount --rbind /sys /mnt/gentoo/sys | |
mount --make-rslave /mnt/gentoo/sys | |
mount --rbind /dev /mnt/gentoo/dev | |
mount --make-rslave /mnt/gentoo/dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SaleFilterForm | |
include ActiveModel::Model | |
include Virtus.model(nullify_blank: true) | |
attribute :from_price, Integer | |
attribute :to_price, Integer | |
attribute :from_year, Integer | |
attribute :to_year, Integer | |
attribute :with_images, Boolean, default: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Append issue number for every commit message | |
# | |
ISSUE_NO=$(git branch | grep -oP '(?<=\* issue\/)\d+') | |
APPEND="Task number: #$ISSUE_NO" | |
if [[ -n "$ISSUE_NO" ]]; then | |
MESSAGE=$(cat $1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
ActiveAdmin.register Section do | |
config.filters = false | |
index do | |
column :name do |s| | |
" #{ "――" * s.depth } #{s.name}" | |
end | |
default_actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Activate the gem you are reporting the issue against. | |
gem 'activerecord', '4.2.6' | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
$logger = Logger.new(STDOUT) | |
# This connection will do for database-independent bug reports. | |
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group :test do | |
gem 'rspec' | |
gem 'cucumber', '1.2.5' #Version needed explicity for a bug at 23.05.13 | |
gem 'cucumber-rails', '1.3.0', require: false #Version needed explicity for a bug at 23.05.13 | |
gem 'capybara' | |
gem 'spork' | |
gem 'guard' | |
gem 'guard-rspec' | |
gem 'guard-spork' | |
gem 'guard-cucumber' |
NewerOlder