Skip to content

Instantly share code, notes, and snippets.

View 0x4c756e61's full-sized avatar
🏳️‍⚧️

Luna 0x4c756e61

🏳️‍⚧️
  • Out of bounds memory
  • 04:11 (UTC +02:00)
View GitHub Profile
@0x4c756e61
0x4c756e61 / csocket.zig
Last active April 15, 2024 14:37
C socket programming in Zig
// compile with zig build-exe srv.c.zig -lc (zig @master)
const c = @cImport({
@cInclude("sys/socket.h");
@cInclude("sys/types.h");
@cInclude("arpa/inet.h");
@cInclude("unistd.h");
@cInclude("netinet/in.h");
});
@0x4c756e61
0x4c756e61 / battery.py
Last active January 15, 2023 11:57
Numwors Battery test script
import ion
import time
def work():
start = time.monotonic()
while (time.monotonic() - start < 30):
_ = 9999**9999