Skip to content

Instantly share code, notes, and snippets.

View aep's full-sized avatar

Arvid E. Picciani aep

View GitHub Profile
aep / Makefile
Created November 2, 2022 18:57
static build of libcryptsetup
all: main
# download
aep / CLA.txt
Created October 27, 2022 08:30
### KraudCloud Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects ("Projects")
made available by devguard GmbH ("KraudCloud") or its affiliates. This Individual Contributor License Agreement ("Agreement")
sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications,
documentation, data, materials, feedback, information or other works of authorship that you
submit or have submitted, in any form and in any manner, to KraudCloud in respect of any of the
Projects (collectively 'Contributions").
<domain type='kvm'>
<memory unit="GB" >1</memory>
<currentMemory unit="GB" >1</currentMemory>
<vcpu placement='static'>1</vcpu>
<type arch='x86_64' machine='q35'>hvm</type>
aep / gist:b8ee58503bab4d91169bffb1549acba4
Created November 17, 2021 21:47
simple archlinuxarm on macbook m1
qemu-system-aarch64 \
-accel hvf \
-cpu cortex-a57 -M virt,highmem=off -smp 8 \
-m 4096 \
-nographic \
-no-reboot \
-kernel boot/Image.gz \
-append "root=/dev/vda rw kernel.panic=-1" \
-initrd boot/initramfs-linux-fallback.img \
-drive if=none,file=disk.qcow2,format=qcow2,id=hd0 \
## Inductive Probe
## This probe is not used for Z height, only Quad Gantry Leveling
## Z_MAX on mcu_z
## If your probe is NO instead of NC, add change pin to !z:P0.10
pin: ^z:P0.10
x_offset: 0
y_offset: 25.0
z_offset: 0
speed: 10.0
union madpack_Value_t {
uint64_t v_uint ;
int64_t v_sint ;
double v_float ;
slice_slice_Slice v_slice ;
using async;
using time;
using buffer;
using err;
using log;
export fn main() -> int {
new+1000 e = err::make();
new+64 driver = async::system(&e);
struct UdpEcho
udp::Socket sock;
udp::Receive+1000 recv;
udp::Receive+1000 send;
fn poll(UdpEcho mut*self, async::Eq mut*eq)
switch self->send.state() {
struct UdpLogger
udp::Socket sock;
string::String+1000 buf;
udp::ReceiveEvent ev;
fn my_udp_logger_poll(UdpLogger mut*self, async::Eq mut*eq)