Skip to content

Instantly share code, notes, and snippets.

Avatar
🥬

Arvid E. Picciani aep

🥬
View GitHub Profile
View domain.xml
<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 Nov 17, 2021
simple archlinuxarm on macbook m1
View gist:b8ee58503bab4d91169bffb1549acba4
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 \
View gist:33d9104195232af1acdbcbac6777edd8
[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
View gist:b580260c2abadbdcb99f4b12b3f6a810
union madpack_Value_t {
uint64_t v_uint ;
int64_t v_sint ;
double v_float ;
slice_slice_Slice v_slice ;
}
View main.zz.cpp
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();
View eq.zz.cpp
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() {
View eq.zz
struct UdpLogger
{
udp::Socket sock;
string::String+1000 buf;
udp::ReceiveEvent ev;
}
fn my_udp_logger_poll(UdpLogger mut*self, async::Eq mut*eq)
{
View gist:11859967ea4df00fafd99644498b5c05
Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
0x00007ffff073a3c1 in ?? () from /usr/bin/_eeschema.kiface
(gdb) bt
#0 0x00007ffff073a3c1 in ?? () from /usr/bin/_eeschema.kiface
#1 0x00007ffff7e3f587 in ?? () from /usr/lib/libwx_gtk3u_adv-3.0.so.0
#2 0x00007ffff7e429c8 in ?? () from /usr/lib/libwx_gtk3u_adv-3.0.so.0
#3 0x00007ffff7e44033 in ?? () from /usr/lib/libwx_gtk3u_adv-3.0.so.0
#4 0x00007ffff66bbf3e in ?? () from /usr/lib/libgtk-3.so.0
#5 0x00007ffff66bbf08 in ?? () from /usr/lib/libgtk-3.so.0
#6 0x00007ffff66bc313 in ?? () from /usr/lib/libgtk-3.so.0
View JAE_DX07B024JJ1R1500.kicad_mod
(module JAE_DX07B024JJ1R1500 (layer F.Cu) (tedit 5EF46C7E)
(fp_text reference REF** (at -2.23618 -3.009) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.015)))
)
(fp_text value JAE_DX07B024JJ1R1500 (at 7.68067 9.4037) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.015)))
)
(fp_poly (pts (xy 6.454 5.092) (xy 6.454 4.65) (xy 6.453315 4.623832) (xy 6.451261 4.597736)
(xy 6.447844 4.571783) (xy 6.443074 4.546044) (xy 6.436963 4.52059) (xy 6.429528 4.495492)
(xy 6.42079 4.470816) (xy 6.410773 4.446632) (xy 6.399503 4.423005) (xy 6.387013 4.4)