This guide is for building your own Arch Linux ARM VM image and runnig in QEMU, UTM, Parallels...
1. qemu-img
2. fdisk
3. kpartx
4. bsdtar
import sys | |
import pygame | |
from pygame.locals import * | |
pygame.init() | |
fps = 60 | |
fpsClock = pygame.time.Clock() | |
loadkeys us-acentos | |
setfont Lat2-Terminus16 | |
timedatectl | |
fdisk -l | |
fdisk /dev/vda | |
g | |
n | |
<default> | |
<enter> | |
+512M |
// so a cool trick with macros in C (and C++) is that since macros inside of | |
// macros are stille evaluated by the preprocessor, you can use macro names as | |
// parameters to other macros (and even construct macro names out of out of | |
// parameters!) - so using this trick if we have some macro like | |
// this: | |
#include <stddef.h> | |
#define MY_TYPES_ITER(_F, ...) \ | |
_F(FOO, foo, 0, __VA_ARGS__) \ |
#include <stdio.h> | |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <unistd.h> | |
static void server() { | |
// create socket |