Skip to content

Instantly share code, notes, and snippets.

View chorandrey's full-sized avatar

Andrey Chornyy chorandrey

View GitHub Profile
@chorandrey
chorandrey / generate-ssh-key.sh
Created March 15, 2021 10:42 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@chorandrey
chorandrey / thistype.scala
Last active September 5, 2020 17:56
Scala this.type example and how to introduce some type level security against supplied values
trait Person {
type PersonType = this.type
}
trait CreditRecord {
type Holder <: Person
val amount: Int