Skip to content

Instantly share code, notes, and snippets.

View aep's full-sized avatar
🥬

Arvid E. Picciani aep

🥬
View GitHub Profile
@aep
aep / Makefile
Created November 2, 2022 18:57
static build of libcryptsetup
all: main
# download
SRC_MUSL=build/musl-1.2.3/Makefile
SRC_KERNELHEADERS=build/linux-headers-4.19.88-1/README.md
SRC_CRYPTSETUP=build/cryptsetup-2.5.0/configure
SRC_UTILLINUX=build/util-linux-2.38.1/configure
SRC_LVM2=build/lvm2-2.02.188/configure
@aep
aep / CLA.txt
Created October 27, 2022 08:30
CLA.txt
### 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'>
<name>a01550b3-f8c8-4c66-aed5-d3744287aa49</name>
<uuid>a01550b3-f8c8-4c66-aed5-d3744287aa49</uuid>
<memory unit="GB" >1</memory>
<currentMemory unit="GB" >1</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='q35'>hvm</type>
@aep
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 \
[probe]
## 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);
e.abort();
freenode-registration-for-zetz-by-aep-dd5d38e1
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)
{