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
| xattr -cr /path/to/application.app |
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
| qemu-img resize -f raw /Users/natevw/Library/Containers/com.utmapp.UTM/Data/Documents/My\ macOS\ VM.utm/Data/disk0.img +30G |
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
| # 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; |
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
| type nul > .gdignore |
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 | |
| 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 |
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
| brew install iproute2mac |
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
| curl -fsSL https://tailscale.com/install.sh | sh |
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
| build_and_push: | |
| name: Build image & push | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write |
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 fish | |
| set -gx BW_SESSION (tmux showenv BW_SESSION | cut -d= -f2) |
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
| #! /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 |