Skip to content

Instantly share code, notes, and snippets.

View damiann's full-sized avatar
🏴
Ę̮̱͔͓ͯ͗ͫ̌̏ͫ͌́x̘̤͚̰̫̫̗̤̱̒̓ͨͯ͑̓ͥͫ̕å̰͚̓͒ͫm̛̤͕̫̳̺̩̄̓ͨͥ͜ͅp̰͉͗ͤl̵̖̗̫͍͓͋̍̐͌̐̒e̡̧̿͒͋̈́͡

Damian damiann

🏴
Ę̮̱͔͓ͯ͗ͫ̌̏ͫ͌́x̘̤͚̰̫̫̗̤̱̒̓ͨͯ͑̓ͥͫ̕å̰͚̓͒ͫm̛̤͕̫̳̺̩̄̓ͨͥ͜ͅp̰͉͗ͤl̵̖̗̫͍͓͋̍̐͌̐̒e̡̧̿͒͋̈́͡
View GitHub Profile

Keybase proof

I hereby claim:

  • I am damiann on github.
  • I am damiann (https://keybase.io/damiann) on keybase.
  • I have a public key whose fingerprint is C48C 19E5 A7C3 24D2 6402 9065 1682 296F B347 7DE0

To claim this, I am signing this object:

@damiann
damiann / gist:3a087a041e4ae2f8fb20ac4eefc38eb1
Created April 11, 2017 19:55
Rerun terminal command multiple times
cmd="..some command..."; for i in $(seq 5); do $cmd; sleep 1; done
@damiann
damiann / gist:fd94da2f6259b0d73df1c97bb3292d0a
Created February 26, 2018 23:53
Remove all docker containers with given name
docker ps -a | awk '{ print $1,$2 }' | grep name_of_fed_up_container | awk '{print $1 }' | xargs -I {} docker rm {}
def install_missing_gems(&block)
yield
rescue LoadError => e
gem_name = e.message.split('--').last.strip
install_command = 'gem install ' + gem_name
system(install_command) or exit(1)
Gem.clear_paths
require gem_name
retry
@damiann
damiann / alias_matchers.md
Created February 1, 2021 22:55 — 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
@damiann
damiann / github_context.yml
Created March 12, 2025 22:01
Output the GitHub environment for debugging
name: Check GitHub context
on:
pull_request:
types: [opened, synchronize]
jobs:
spell-check:
runs-on: self-hosted