git (private server)
Alternative: github
Cashboard
| require 'net/http' | |
| module Net | |
| class HTTP | |
| def self.enable_debug! | |
| raise "You don't want to do this in anything but development mode!" unless Rails.env == 'development' | |
| class << self | |
| alias_method :__new__, :new | |
| def new(*args, &blk) | |
| instance = __new__(*args, &blk) | |
| instance.set_debug_output($stderr) |
| # installing curb gem on Ubuntu require libcurl | |
| sudo apt-get install libcurl3-dev | |
| Or new version, but it conflicts if some libraries. | |
| sudo apt-get install libcurl4-dev | |
| (some other packages libcurl4-openssl-dev libcurl4-gnutls-dev) | |
| gem install curb |
| set :rails_env, "production" | |
| set :passenger_port, 9292 | |
| set :passenger_cmd, "#{bundle_cmd} exec passenger" | |
| namespace :deploy do | |
| task :start, :roles => :app, :except => { :no_release => true } do | |
| run "cd #{current_path} && #{passenger_cmd} start -e #{rails_env} -p #{passenger_port} -d" | |
| end | |
| task :stop, :roles => :app, :except => { :no_release => true } do |
| ## If you are using under a rails project, | |
| ## I recommend to put this script onto config/initializer instead of applying the patch | |
| module Compass::SassExtensions::Functions::GradientSupport | |
| class ColorStop < Sass::Script::Literal | |
| def initialize(color, stop = nil) | |
| self.options = {} | |
| if color.is_a?(Sass::Script::String) && color.value == 'transparent' |
| <?php | |
| function themename_customize_register($wp_customize){ | |
| $wp_customize->add_section('themename_color_scheme', array( | |
| 'title' => __('Color Scheme', 'themename'), | |
| 'priority' => 120, | |
| )); | |
| // ============================= |
| # Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files | |
| # for Pry binding references | |
| # | |
| # Installation | |
| # | |
| # ln -s /path/to/pre-commit.sh /path/to/project/.git/hooks/pre-commit | |
| # | |
| # Based on | |
| # | |
| # http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/ |
| 'Label[platform=android]': { | |
| color: '#000' // all platforms except Android default to black | |
| } | |
| 'Window': { | |
| backgroundColor: '#fff' // white background instead of default transparent | |
| } | |
| 'Window[platform=android]': { | |
| modal: false // make android windows all heavyweight |
| # Speed things up by not loading Rails env | |
| config.assets.initialize_on_precompile = false |