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
@damiann
damiann / used_car_ranking.csv
Last active June 24, 2026 20:35
Used car ranking based on reliability under $7k
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
Rank,Make,Year Range,Model,Vehicle Type,Reliability Rating (10),MPG (City/Hwy),Avg Used Price,Common Reliability Issues,Est. Yearly Maintenance Cost,4WD/AWD?,Why It’s Good for a Teen Driver,Reference Links
1,Toyota,2005-2010,Corolla,Sedan,9.5,26-35,"$4,500-$6,800","Occasional oil consumption, aging suspension, starter/alternator with age","$350-$450",No,"Extremely reliable, cheap to maintain, excellent parts availability","https://repairpal.com https://www.fueleconomy.gov https://www.kbb.com"
2,Honda,2006-2011,Civic,Sedan/Coupe,9.2,25-36,"$4,800-$7,000","Cracked engine blocks on some older years, AC compressor issues, worn mounts","$375-$525",No,"Great fuel economy and strong reliability reputation","https://repairpal.com https://www.edmunds.com https://www.fueleconomy.gov"
3,Toyota,2004-2008,Matrix,Hatchback,9.1,25-31,"$4,500-$6,900","Minor oil use, wheel bearings, suspension wear","$350-$500","AWD available","Practical, safe-feeling, Toyota reliability with cargo space","https://repairpal.com https://www.kb
@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
@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
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 / 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 {}
@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

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:84adad982e71fbb510b95e482064a0e4
Created July 11, 2016 02:32
Random Generated Background
<p style="line-height: 18px; font-size: 18px; font-family: times;">
<script>
for (var line=1; line<60; line++) {
for(var i=1;i<29;i++) {
var s = (Math.floor((Math.random()*2)%2)) ? "╱" : "╲";
document.write(s);
}
document.writeln("<br>");
}
@damiann
damiann / gist:dac6857601f48de6c3e87c90f1d09c12
Created July 11, 2016 02:32
Random Generated Background
<p style="line-height: 18px; font-size: 18px; font-family: times;">
<script>
for (var line=1; line<60; line++) {
for(var i=1;i<29;i++) {
var s = (Math.floor((Math.random()*2)%2)) ? "╱" : "╲";
document.write(s);
}
document.writeln("<br>");
}
@damiann
damiann / face_replace.py
Created January 6, 2016 21:03 — forked from robertskmiles/face_replace.py
A script to automatically replace faces in group photos
#!/usr/bin/python
# face_replace.py
# Usage: python face_replace.py <image_file> [face index]
import sys
from opencv.cv import *
from opencv.highgui import *
from PIL import Image, ImageEnhance
import random