Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Jacob Fliss erfg12

🏠
Working from home
View GitHub Profile
View ps2sdk-setup-easy.md

For Ubuntu (WSL)

Setup your system environment variables:

rm ~/.profile
echo >>~/.profile "export PS2DEV=$HOME/ps2dev"
echo >>~/.profile "export PS2SDK=\$PS2DEV/ps2sdk"
echo >>~/.profile "export GSKIT=\$PS2DEV/gsKit"
echo >>~/.profile "export PATH=\$PATH:\$PROGRAMFILES/Git/bin"
echo >>~/.profile "export PATH=\$PATH:\$PROGRAMFILES/Mercurial"
View kos-sdl-with-opengl.md

Follow kos-setup-easy.md first.

sudo apt install unrar
git clone https://github.com/ianmicheal/SDL-dreamhal--GLDC.git
cp "SDL-dreamhal--GLDC-main/Precompiled libs/*.a" "/opt/toolchains/dc/kos/addons/lib/dreamcast/"
unrar x "SDL-dreamhal--GLDC-main/Precompiled libs/include.rar" "/opt/toolchains/dc/kos/addons/include/"
View kos-setup-easy.md

On Linux (Ubuntu) (WSL for Windows)

sudo mkdir /opt/toolchains/dc
sudo chown -R YOUR_USERNAME_HERE /opt/toolchains/dc
sudo chmod -R ugo+rwx /opt/toolchains/dc
git clone git://git.code.sf.net/p/cadcdev/kallistios /opt/toolchains/dc/kos
cd /opt/toolchains/dc/kos/utils/dc-chain
sh download.sh
sh unpack.sh
make
@erfg12
erfg12 / client.html
Last active July 6, 2022 20:45
RSS --> JS (CORS bypass)
View client.html
<body>
<!-- host this on GitHub.com pages for free -->
<div id="DisplayData"></div>
<script>
fetch('https://cnet-rss-cors.herokuapp.com/')
.then(response => response.text())
.then(data => {
parser = new DOMParser();
xmlDoc = parser.parseFromString(data, "text/xml");
@erfg12
erfg12 / Makefile
Created April 6, 2022 20:27
Programming Games in C/C++ on DOS
View Makefile
obj = main.obj
bin = main.exe
CC = wcc
CFLAGS = -zq
LD = wlink
$(bin): $(obj)
$(LD) name $@ file { $(obj) }
@erfg12
erfg12 / Retro_Console_Streaming.md
Last active January 7, 2022 07:12
Old Console Streaming
View Retro_Console_Streaming.md

Stream Original Xbox

REQUIRED HARDWARE:

INSTRUCTIONS:

  1. Plug the OGX360 into your Xbox controller slot, plug in a USB cable from your game console into the Titan Two's Output port. The Program port's USB cable should plug into your PC.
  2. Plug in your Xbox video to the HDMI input hardware.
@erfg12
erfg12 / plotPDF.scr
Last active August 24, 2021 14:55
AutoCAD script file to convert DXF or DWG files to PDF. Run with accoreconsole.exe in AutoCAD directory. Works with AutoCAD LT.
View plotPDF.scr
; C:\Program Files\Autodesk\AutoCAD LT 2021\accoreconsole.exe /i "FILE_PATH_HERE\test.dwg" /s "FILE_PATH_HERE\plotPDF.scr"
; This example script file expects there to be a `Layout1` layout for each file.
_PLOT
_Y
Layout1
DWG To PDF.pc3
ANSI full bleed A (8.50 x 11.00 Inches)
_Inches
_Landscape
_No
@erfg12
erfg12 / makefile
Created August 16, 2021 18:08
C GCC makefile
View makefile
# [Windows] Install MinGW (https://sourceforge.net/projects/mingw), add C:\MinGW\bin to Environment Variables PATH. Run command mingw32-make
# [MacOS] https://discussions.apple.com/thread/5250041
# [Ubuntu] "sudo apt install build-essential"
EXECUTABLE = main
CC = "gcc"
LDFLAGS = -lgdi32
src = $(wildcard *.c)
View HTTPS.md

RIGHT CLICK ON OpenSSL.exe AND RUN AS ADMIN

req -x509 -nodes -new -sha256 -days 1024 -newkey rsa:2048 -keyout RootCA.key -out RootCA.pem -subj "/C=US/CN=Example-Root-CA"

x509 -outform pem -in RootCA.pem -out RootCA.crt

MOVE RootCA.key > backend\message\certificates\private.key
MOVE RootCA.crt > backend\message\certificates\certificate.crt
MOVE RootCA.pem &gt; frontend\cert.pem
View BREW Mobile Games
Bioshock 3D - https://archive.org/details/bioshock3d
Doom RPG - https://archive.org/details/doomrpg_brew
Pac-Mania - https://archive.org/details/arcade_pacmania
Orcs & Elves - https://archive.org/details/orcsandelves_brew
Need For Speed Most Wanted - https://archive.org/details/nfsmw_202107
Need For Speed Underground 2 - https://archive.org/details/nfsu2mobile
Ratchet and Clank - https://mega.nz/file/bOQz2ART#oPD8E_bqtHcHZKV6mGqoW-sscP4XqKRd6b0mDipLnuw
Random Games - https://archive.org/details/qualcomm-brew-games
Contra 4 Redux - https://mega.nz/file/3bgRnSxS#uxMukrqGvn5YxZKVU4BAs09OZAWNvKY1OHJmiQ8-Ldk