Skip to content

Instantly share code, notes, and snippets.

View sairuk's full-sized avatar

sairuk sairuk

View GitHub Profile
https://au-mirror.bret.dk/armbian/dl/rockpi-4b/archive/
https://gist.github.com/gbaman/50b6cca61dd1c3f88f41
https://docs.armbian.com/User-Guide_Allwinner_overlays/
https://forum.armbian.com/topic/19206-rockpi-4abc-usb-otg-mode-in-currentmainline-kernels/
https://forum.radxa.com/t/mainline-support-for-rockpi-4/131/56
https://forum.armbian.com/topic/12455-rock-pi-4-usb-storage-is-flaky-on-usb-3-otg-port/
https://matt.olan.me/making-a-piscsi-usb-drive-part-1/
@sairuk
sairuk / compstat.sh
Created October 20, 2021 03:46
generate prontondb style output
#!/bin/bash
_log_output() {
local ITEM=$1
shift
echo "${ITEM}: $*"
}
_strip_string() {
@sairuk
sairuk / xfce_compile_plugins
Created October 20, 2021 02:17
xfce compile some plugins
#!/bin/bash
#set -x
export PREFIX=/opt/xfce4.16
export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="-O2 -pipe"
LOGDIR=$HOME/logs/xfce
@sairuk
sairuk / xfce_compile_all
Created October 20, 2021 02:17
xfce compile script
#!/bin/bash
#set -x
export PREFIX=/opt/xfce4.16
export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="-O2 -pipe"
LOGDIR=$HOME/logs/xfce
@sairuk
sairuk / brogue-cd-sdl2-custom.patch
Last active August 7, 2021 13:50
brogue-cd-sdl2-custom
diff --git a/src/platform/sdl2-platform.c b/src/platform/sdl2-platform.c
index cdcdbe4..d2b390c 100644
--- a/src/platform/sdl2-platform.c
+++ b/src/platform/sdl2-platform.c
@@ -3,7 +3,7 @@
#endif
#include <limits.h>
-#include <SDL_image.h>
+#include <SDL2/SDL_image.h>
@sairuk
sairuk / sdl2-compile-x11-vulkan-rpi4.sh
Last active August 7, 2021 13:51
sdl2-compile-x11-vulkan-rpi4
#!/bin/bash
#
# build SDL2 with x11/vulkan support on rpi4
# mostly to test vk(quake(1|2|3)|openarena)
#
# nb: the APTOPS are for twisteros being stupid, comment them out for other distros
DEVBASE=$HOME/devel
APTOPTS="-o Acquire::AllowInsecureRepositories=true"
PREFIX="/usr/local/lib"
@sairuk
sairuk / chaiki-rpi-compile.notes
Last active August 2, 2021 14:20
Compile chaiki rpi4
### 2021-08-02 still using qt5-opengl-dev_5.12.5_armhf.deb, need to check if it is still required
### update .bashrc with QT_SELECT
Add QT_SELECT to your bashrc
$ vi ~/.bashrc
export QT_SELECT=qt5-openg
### install Qt5.12 from https://github.com/koendv/qt5-opengl-raspberrypi
$ wget https://github.com/koendv/qt5-opengl-raspberrypi/releases/download/v5.12.5-1/qt5-opengl-dev_5.12.5_armhf.deb
# apt install ./qt5-opengl-dev_5.12.5_armhf.deb
@sairuk
sairuk / nofilename.txt
Created June 11, 2020 01:06
hosts sources
[sources]
source[1]=http://www.mvps.org/winhelp2002/hosts.txt
source[2]=http://someonewhocares.org/hosts/zero/hosts
source[3]=http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext
source[4]=http://adblock.mahakala.is
source[5]=http://adaway.org/hosts.txt
source[6]=http://www.malwaredomainlist.com/hostslist/hosts.txt
source[7]=http://www.hosts-file.net/ad_servers.txt
source[8]=https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts
source[9]=https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts
@sairuk
sairuk / gist:9c01ad2a067ff371cf2a0c56cbc3f35c
Created October 8, 2017 02:43
Patch PCSX2 so it can be streamed with OBS
OBS uses window title to ID certain scene elements, can't match with the constant PCSX2 title updates
Comment out title updates
// SetTitle(title);
pcsx2 -> gui -> FrameForGS.cpp
Line 668 accurate as of commit https://github.com/PCSX2/pcsx2/commit/af2278c3c28682134146ecff8bb028bd9075d49a
Compile