Skip to content

Instantly share code, notes, and snippets.

View xetra11's full-sized avatar
🔨
insane in the maintain

Patrick Charles Höfer xetra11

🔨
insane in the maintain
  • Germany
View GitHub Profile
@xetra11
xetra11 / fieldValueOverride.kt
Last active September 10, 2020 15:52
Kotlin Property Override Extension
fun addBloodlineToCharacter(characterId: String, bloodlineId: String): CharacterOutput? {
val character: CharacterDocument = characterRepository.findById(characterId)
updatedCharacter = characterRepository.save(character.override(_bloodlineId = bloodlineId))
updatedCharacter.asOutput()
}
fun CharacterDocument.override(
_name: String = this.name,
_age: Short = this.age,
_bloodlineId: String? = this.bloodlineId,
@xetra11
xetra11 / arch.sh
Created April 11, 2019 22:03 — forked from eddmann/arch.sh
Arch Setup (with Awesome)
wifi-menu
ping www.google.com
# setup disk partitions
cfdisk.
# format disk partitions
lsblk /dev/sda
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2