Skip to content

Instantly share code, notes, and snippets.

{
"Working Directory" : "\/Users\/bli\/workspace\/jumpsuit",
"Prompt Before Closing 2" : false,
"Selected Text Color" : {
"Green Component" : 0.92142927646636963,
"Red Component" : 0.90730977058410645,
"Blue Component" : 0.93115901947021484
},
"Rows" : 25,
"Ansi 11 Color" : {
@libin0120
libin0120 / bosh-cheatsheet.md
Created April 7, 2021 01:09 — forked from bgandon/bosh-cheatsheet.md
BOSH CLI cheatsheet

BOSH command line interface cheatsheet

Introduction

BOSH is a powerful tool to install and manage your deployments. You can find docs on https://bosh.io/docs. Consider using bosh-init tool to install to a cloud of your choice MicroBOSH instance (MicroBOSH is a single VM BOSH installation, it has everything that you need to deploy and manage).

Installing of BOSH CLI

BOSH command line interface is implemented as a ruby gem and can be run on every platform that supports ruby, you'll need to have ruby 2.1.x or higher to run it. To install it you can run gem install bosh_cli and gem update bosh_cli to update to a newer version.

@libin0120
libin0120 / alias_matchers.md
Created December 15, 2020 01:11 — forked from JunichiIto/alias_matchers.md
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@libin0120
libin0120 / inherited_resource.rb
Created November 17, 2011 02:14
Able to have CANCAN's new record attributes initialization feature when using inherit_resources
CanCan::InheritedResource.class_eval do
# Copied from CACAN added attributes initialization for new_actions
def load_resource_instance
if parent?
@controller.send :association_chain
@controller.instance_variable_get("@#{instance_name}")
elsif new_actions.include? @params[:action].to_sym
# [[[ - initialize new object attributes according capability.
resource = @controller.send :build_resource
initial_attributes.each do |attr_name, value|