This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ol | |
; temporarily use raylib without installation | |
(define *path* (cons ".." *path*)) | |
;; Initialization | |
(import (lib raylib)) | |
(define screenWidth 800) | |
(define screenHeight 450) | |
(InitWindow screenWidth screenHeight "raylib [core] example - keyboard input") | |
(SetTargetFPS 60) | |
;; Main game loop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/dwl.c b/dwl.c | |
index a2a0b692..d3a5d651 100644 | |
--- a/dwl.c | |
+++ b/dwl.c | |
@@ -240,6 +240,7 @@ static void focusmon(const Arg *arg); | |
static void focusstack(const Arg *arg); | |
static void fullscreennotify(struct wl_listener *listener, void *data); | |
static Client *focustop(Monitor *m); | |
+static void gaplessgrid(Monitor *m); | |
static void incnmaster(const Arg *arg); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# used on Debian 11 / Check the output of the variables / edit config manually to be sure! | |
# RUN: wget -q -S -O - URL_TO_THIS_GIST_IN_RAW 2>&1 | tail -n +9 | bash -x | |
HOSTNAME="$(hostname)" | |
IP="$(ip r | tail -n 1 | awk '{print $9}')" | |
BRD="$(ip r | tail -n 1 | awk '{print $1}' | cut -d '/' -f1 | cut -d '.' -f1-3 ).1" | |
DEV="$(ip r | tail -n 1 | awk '{print $3}')" | |
NS="$(cat /etc/resolv.conf | grep nameserver | head -n1 | awk '{print $2}')" | |
ROOT="$(mount | grep "/ " | awk '{print $1}')" | |
ROOTFS="$(mount | grep "/ " | awk '{print $5}')" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wget https://github.com/0xbadfca11/miniwsl/releases/download/release3041562/rootfs.tgz | |
# wsl --import guix /guix rootfs.tgz --version 2 | |
# wsl -d guix /bin/busybox sh -c "/mnt/c/sys/misc/guix-infect.sh" | |
mkdir -p /root /etc /tmp /var/run /run /home | |
chmod 1777 /tmp | |
rm /etc/passwd | |
cat <<EOM >> /etc/passwd | |
root:x:0:0:root:/root:/bin/bash | |
guixbuilder01:x:999:999:Guix build user 01:/var/empty:/usr/sbin/nologin | |
guixbuilder02:x:998:999:Guix build user 02:/var/empty:/usr/sbin/nologin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ROOTFS=/mnt | |
#parted --script /dev/sdc mktable msdos mkpart primary fat32 2048s 256MB toggle 1 boot mkpart primary ext4 256MB 100% | |
#mkfs.vfat -F32 /dev/sdc1 -n BOOT | |
#mkfs.ext4 /dev/sdc2 -L rootfs | |
#mount /dev/sdc2 /mnt | |
#mkdir /mnt/boot | |
#mount /dev/sdc1 /mnt/boot | |
#cd /tmp && curl -O https://repo-default.voidlinux.org/live/current/void-rpi-musl-PLATFORMFS-20210930.tar.xz | |
#tar xvfJp /tmp/void-rpi-musl-PLATFORMFS-20210930.tar.xz -C /mnt |