Skip to content

Instantly share code, notes, and snippets.

View cdesch's full-sized avatar
🏠
Working from home

cdesch cdesch

🏠
Working from home
View GitHub Profile
@cdesch
cdesch / fix.rs
Created November 27, 2021 16:22
Rust Vector
for account in &accounts {
println!("ID: {} Name: {}", account.id, account.name);
}
// Choose Random Account from Accounts
let account = accounts.choose(&mut rand::thread_rng()).unwrap();
println!("{}", account.id);
asHook: true
auth:
register: true
clickhouse:
clickhouse:
configmap:
builtin_dictionaries_reload_interval: "3600"
compression:
cases:
- method: zstd
@cdesch
cdesch / pc-rules.erb
Last active July 17, 2024 16:24 — forked from jamietre/pc-rules.erb
Karabiner Elements config to map home/end keys to PC-like behavior on MacOS X
{
"title": "MacOS -> PC Shortcuts",
"rules": [
{
"description": "Top/bottom of document (ctrl+home/ctrl+end)",
"manipulators": [
{
"type": "basic",
"from": <%= from("home", ["command"], ["any"]) %>,
"to": <%= to([["up_arrow", ["left_command"]]]) %>,