Skip to content

Instantly share code, notes, and snippets.

View qguv's full-sized avatar
vibing

Quint Guvernator qguv

vibing
View GitHub Profile
@qguv
qguv / ed_keys.md
Created July 21, 2021 18:11
Elite Dangerous key bindings

Mouse

  • Reset mouse: Mouse4

Flight throttle

  • 75%: C

Flight landing overrides

  • Thrust forward: W
  • Thrust backward: S
#!/bin/sh
set -e
tr=tr
if hash gtr 2> /dev/null; then
tr=gtr
fi
if [ "$1" = -2 ]; then
shift
@qguv
qguv / baghrir_recept.txt
Created January 14, 2021 17:09
Baghrir recipe (Dutch)
350 gr meel
150 gr griesmeel
Zakje bakpoeder
Zakje instant gist
800 ml lauw water
Snufje zout
Goed met elkaar mengen. Plaats t in n badje met lauw water en niet met gekookt water. Laat t rusten voor ongeveer 20 min.
Pan na iedere pannenkoek omspoelen met water
@qguv
qguv / basics.scm
Last active December 29, 2020 23:18
; this can be evaluated at https://inst.eecs.berkeley.edu/~cs61a/fa14/assets/interpreter/scheme.html
(define
(square x)
(* x x)
)
(define
(range start length)
(if
@qguv
qguv / template.sh
Created December 17, 2020 13:35
Simple template renderer in POSIX sh
#!/bin/sh
# see https://serverfault.com/a/699377 and https://serverfault.com/a/925072
PROG=$(basename $0)
usage() {
echo "${PROG} <template-file> [config-file]"
}
expand() {
@qguv
qguv / GMSE01.ini
Created October 23, 2020 23:42
Dolphin Emulator settings for Super Mario Sunshine (GameCube, NTSC, USA)
# Dolphin game-specific settings for: Super Mario Sunshine (GameCube, NTSC, USA)
# https://wiki.dolphin-emu.org/index.php?title=Super_Mario_Sunshine
[Core]
# Avoids crashing after long periods of play
SyncGPU = True
[Video_Enhancements]
@qguv
qguv / example.com.conf
Created July 29, 2020 13:00
nginx host static files, add trailing slash when using implicit index.html, preserve anchors and queries
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name example.com;
# ends in slash
location ~ /$ {
root /var/www/example.com;
try_files $uri/index.html =404;
}
@qguv
qguv / example.com.conf
Created July 29, 2020 12:43
nginx host static files, add trailing slash when using implicit index.html, preserve anchors and queries
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name example.com;
# ends in slash
location ~ ^([^#?]*/)([#?].*)?$ {
root /var/www/example.com;
try_files $1/index.html =404;
}
@qguv
qguv / install_bubbleupnp.sh
Last active March 11, 2021 09:00
Install BubbleUPnP on CoreELEC/LibreELEC/OpenELEC
#!/bin/sh
set -e
jre_url='https://cdn.azul.com/zulu-embedded/bin/zulu8.46.0.225-ca-jdk8.0.252-linux_aarch32hf.tar.gz'
jre_sha1sum=ac884e478a58db9aa3c109d2d43b819504ba6969
jre_dest=/storage
bubbleupnp_url='https://bubblesoftapps.com/bubbleupnpserver/BubbleUPnPServer-distrib.zip'
bubbleupnp_sha1sum=ac87fe841b407413c35b1bfe06ee572fbe1c81d8
bubbleupnp_dest=/storage/bubbleupnp
@qguv
qguv / Makefile
Created June 26, 2020 18:15
Makefile for ras52/bootstrap (WIP)
.DEFAULT_GOAL := stage-3/ld
ELF_BIN := stage-1/elfify
BIN := stage-1/unhexl stage-2/as stage-3/ld stage-3/test1 stage-3/test2 stage-3/test3
stage-0/_unhex: stage-0/unhex.x
$(info #1)
printf $$(printf '\\x%s' $$(<$<)) >$@
chmod u+x $@