created: "2025-04-01" daily: "[[2025-04-01, Wk 14 - Tue]]" tags:
- ”notes” origin:
- https://github.com/mozilla/sccache
- https://github.com/marketplace/actions/sccache-action similar to:
created: "2025-04-01" daily: "[[2025-04-01, Wk 14 - Tue]]" tags:
| :root { | |
| --image-color: #1a1a1a; | |
| --image-effect: brightness(0) saturate(100%) invert(3%) sepia(7%) saturate(323%) hue-rotate(314deg) brightness(97%) contrast(86%); | |
| @media (prefers-color-scheme: dark) { | |
| --image-color: #dadada; | |
| --image-effect: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(1631%) hue-rotate(243deg) brightness(110%) contrast(71%); | |
| } | |
| } |
created: 2025-03-22 daily: "[[2025-03-22, Wk 12 - Sat]]" tags:
| # install dependencies | |
| cargo install wasm-tools auditable2cdx wkg | |
| # fetch the Rust http sample | |
| wkg oci pull ghcr.io/bytecodealliance/sample-wasi-http-rust/sample-wasi-http-rust:latest -o sample.wasm | |
| ls | |
| # print the metadata, including all dependencies | |
| wasm-tools metadata show sample.wasm | less |
| #![cfg(target_os = "macos")] | |
| use rustix::event::kqueue; | |
| use std::io::{Read, Write}; | |
| use std::net::{TcpListener, TcpStream}; | |
| use std::os::fd::AsRawFd; | |
| use std::time::Duration; | |
| fn main() { | |
| // kickoff a simple echo server we can hit for demo purposes |
| #| | |
| Written by Chuck in 2024 | |
| https://bogorad.github.io/ | |
| Based on the brilliant Miryoku_kmonad => Kinesis layout | |
| https://github.com/manna-harbour/miryoku_kmonad | |
| With enormous help from the author of Kanata | |
| https://github.com/jtroo |
| { | |
| "description": "Change caps_lock to left_control if pressed with other keys, change caps_lock to escape if pressed alone.", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] |