Skip to content

Instantly share code, notes, and snippets.

View nullscm's full-sized avatar

nullscm nullscm

View GitHub Profile
@nullscm
nullscm / core_input_keys.lisp
Last active December 25, 2023 10:52
generate-raylib.lisp & samples/core_input_keys.lisp - Vector2 Error?
#!/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
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);
@nullscm
nullscm / guix-system-infect.sh
Last active September 1, 2022 17:15
guix-system-infect.sh - Guix System Infect Script for a (Debian 11/maybe not required) VPS-Host (without EFI *till now)
#!/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}')"
@nullscm
nullscm / guix-wsl-infect.sh
Created September 1, 2022 13:06
guix-wsl-infect.sh - Guix System on WSL2
# 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
@nullscm
nullscm / void-rpi0.sh
Last active June 28, 2022 09:35
Void Linux on Raspberry PI Zero W Headless Install
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