Skip to content

Instantly share code, notes, and snippets.

View ssiegler's full-sized avatar

Simon Siegler ssiegler

View GitHub Profile
@ssiegler
ssiegler / detailed-home-assistant-os-installation-in-vm-on-truenas-scale.md Comprehensive instructions for installing Home Assistant OS in a VM on TrueNAS SCALE.
@ssiegler
ssiegler / lib.rs
Created October 16, 2024 22:45
Diamon Kata in Rust
pub fn diamond(c: char) -> String {
('A'..=c)
.chain(('A'..c).rev())
.map(|row| line(c, row))
.collect::<Vec<_>>()
.join("\n")
}
fn line(c: char, row: char) -> String {
('A'..=c)
@ssiegler
ssiegler / gist:6576799
Created September 16, 2013 04:52
Truly ergonomic keyboard with neo2
┌───┬───┬───┬───┬───┬───┬───┬─────┬───┬───┬───┬───┬───┬───┬───┐
│ESC│ T1│ 1 │ 2 │ 3 │ 4 │ 5 │ Ins │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ T2│
├───┼───┼───┼───┼───┼───┼───┼─────┼───┼───┼───┼───┼───┼───┼───┤
│Tab│ y │ x │ v │ l │ c │ w │ Del │ k │ h │ g │ f │ q │ ß │ T3│
├───┴───┼───┼───┼───┼───┼───┼─────┼───┼───┼───┼───┼───┼───┴───┤
│ Mod3_L│ u │ i │ a │ e │ o │Enter│ s │ n │ r │ t │ d │ Mod3_R│
├───────┼───┼───┼───┼───┼───┼─────┼───┼───┼───┼───┼───┼───────┤
│ ShiftL│ ü │ ö │ ä │ p │ z │BkSp │ b │ m │ , │ . │ j │ ShiftR│
├───────┼┬┬┬┼───┼┬┬┬┼───┴───┼─────┼───┴───┼┬┬┬┼───┼┬┬┬┼───────┤
│ StrgL ├┴┴┴┤G_L├┴┴┴┤ Mod4L │Space│ Mod4R ├┴┴┴┤G_L├┴┴┴┤ StrgR │