UTC: 2025-04-25 16:39
michidk/choco
This file is automatically generated by the update_all.ps1 script using the Chocolatey-AU module.
const std = @import("std"); | |
const net = std.net; | |
const io = std.io; | |
const mem = std.mem; | |
const heap = std.heap; | |
const http = std.http; | |
const Response = struct { | |
status: []const u8, | |
headers: []const u8, |
const std = @import("std"); | |
const net = std.net; | |
const io = std.io; | |
const Response = struct { | |
status: []const u8, | |
headers: []const u8, | |
body: []const u8, | |
}; |
We need some way to communicate. | |
-> Files. Dont even need a mount, since WSL/Windows has access to all files by default. | |
Windows filesystem notify events don't work in WSL filesystem mounted to windows. | |
-> Need to handle all logic in WSL | |
WSL can execute Windows .exe in Windows context. | |
Solution: |
BITS 32 | |
org 0x08048000 ; Default base address for 32-bit executables | |
ehdr: ; Elf32_Ehdr | |
db 0x7F, "ELF" ; e_ident: ELF magic | |
db 1, 1, 1, 0 ; e_ident: 32 bit, little endian, version 1, target System V | |
db 0, 0, 0, 0, 0, 0, 0, 0 ; e_ident: padding | |
dw 2 ; e_type | |
dw 3 ; e_machine |
BITS 64 | |
org 0x400000 ; Default base address for 64-bit executables | |
ehdr: ; Elf64_Ehdr | |
db 0x7F, "ELF" ; e_ident: ELF magic | |
db 2, 1, 1, 0 ; e_ident: 64 bit, little endian, version 1, target System V | |
db 0, 0, 0, 0, 0, 0, 0, 0 ; e_ident: padding | |
dw 2 ; e_type | |
dw 0x3E ; e_machine |
use std::borrow::BorrowMut; | |
use std::collections::HashMap; | |
use std::hash::Hash; | |
use std::sync::Arc; | |
use async_trait::async_trait; | |
use log::debug; | |
use ratatui::backend::CrosstermBackend; | |
use ratatui::layout::Rect; |
party: | |
module: party | |
class: Party | |
trigger_input: "input_boolean.party" | |
brightness_input: "input_number.party_brightness" | |
interval: 0.5 | |
light_group: "light.party_lights" | |
restore_state_delay: 2 |
# utiliy for opening devcontainers | |
vs() { | |
if [ -z "$1" ]; then | |
if [ -d ".devcontainer" ]; then | |
echo "Found devcontainer" | |
devcontainer open . | |
else | |
echo "No devcontainer found" | |
code . | |
fi |
UTC: 2025-04-25 16:39
michidk/choco
This file is automatically generated by the update_all.ps1 script using the Chocolatey-AU module.
1 0 0 2 | |
0 1 0 0 | |
0 0 1 0 | |
0 0 0 1 |