Skip to content

Instantly share code, notes, and snippets.

View Jay-Schneider's full-sized avatar

Jay Schneider Jay-Schneider

  • Zweitag GmbH
  • Steinfurt, Germany
View GitHub Profile
@Jay-Schneider
Jay-Schneider / alias_matchers.md
Created February 5, 2021 10:50 — 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
@Jay-Schneider
Jay-Schneider / docker_clean.md
Last active May 10, 2019 13:37
Docker Cleanup

Stop Docker.

docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker volume rm $(docker volume ls |awk '{print $2}')
rm -rf ~/Library/Containers/com.docker.docker/Data/*

Start Docker, you have yours GB back.

Props To: docker/for-mac#371 (comment)

# props to https://coderwall.com/p/qp2aha/ruby-pbcopy-and-pbpaste
def pbcopy(input)
input.tap {|s| IO.popen('pbcopy', 'w') {|c| c << s }}
end
def pbpaste
system 'pbpaste'
end