A micro-gem DSL for compound conditionals.
Allowable lets you decompose large/long conditional chains into readable, testable, and inspectable segments with Ruby blocks.
| head, meta[name="description"], meta[property^="og:"] { display: block } | |
| head { | |
| position: relative; | |
| z-index: 9999; | |
| font: 21px/1.4 Didot; | |
| color: #444; | |
| -webkit-hyphens: auto; | |
| padding: 2em; | |
| background: #fff; | |
| -webkit-font-smoothing: subpixel-antialiased; | 
| # encoding: utf-8 | |
| require 'minitest/autorun' | |
| # `gem install unicode_utils` | |
| require 'unicode_utils/downcase' | |
| require 'unicode_utils/upcase' | |
| module HumanName | |
| def self.all_lower_case?(name) | 
A micro-gem DSL for compound conditionals.
Allowable lets you decompose large/long conditional chains into readable, testable, and inspectable segments with Ruby blocks.
| # lib/tasks/db.rake | |
| namespace :db do | |
| desc "Dumps the database to db/APP_NAME.dump" | |
| task :dump => :environment do | |
| cmd = nil | |
| with_config do |app, host, db, user| | |
| cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
| end | |
| puts cmd | 
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm