Skip to content

Instantly share code, notes, and snippets.

View anosatsuk124's full-sized avatar
💜
ℒℴνℯ

Satsuki Akiba anosatsuk124

💜
ℒℴνℯ
View GitHub Profile
qemu-img resize -f raw /Users/natevw/Library/Containers/com.utmapp.UTM/Data/Documents/My\ macOS\ VM.utm/Data/disk0.img +30G
# Horrible example of how to interface with a C++ engine ... ;-)
{.link: "/usr/lib/libIrrlicht.so".}
{.emit: """
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
#!/usr/bin/env bash
filename="$(basename "$1")"
temp="$(mktemp -d)/$filename"
pandoc -i "$1" -o "$temp".1.html
cat "$temp".1.html | perl -pe 's/<\/?ruby>//g' | perl -pe 's/<\/?rb>//g' | perl -pe 's/<rt>.*<\/rt>//g' | perl -pe 's/<svg.+$//g' > "$temp".2.html
pandoc "$temp".2.html --pdf-engine=lualatex -V documentclass=bxjsarticle -V classoption=pandoc -V pagestyle=empty -o "$filename".pdf
curl -fsSL https://tailscale.com/install.sh | sh
build_and_push:
name: Build image & push
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
#! /usr/bin/env fish
set -gx BW_SESSION (tmux showenv BW_SESSION | cut -d= -f2)
@anosatsuk124
anosatsuk124 / IDE
Last active October 26, 2022 20:49
This is my tmux configuration that makes your terminal the ide-like usage.
#! /bin/sh
CURRENT_WINDOW=$(tmux display-message -p '#I')
if [ "$1" = "kill" ] ; then
PANES_LENGTH=$(($(tmux list-panes | wc -l) - 1))
tmux swap-pane -s 0 -t $PANES_LENGTH
for i in $(seq 0 $(($PANES_LENGTH - 2))); do
nohup tmux kill-pane -t $i > /dev/null 2>&1 &
done