Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Jacob Fliss erfg12

🏠
Working from home
View GitHub Profile
@erfg12
erfg12 / client.html
Last active Jul 6, 2022
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 Apr 6, 2022
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 Jan 7, 2022
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 Aug 24, 2021
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 Aug 16, 2021
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
@erfg12
erfg12 / Firebase_Forum_Functions.ts
Last active May 30, 2021
Firebase forum system functions.
View Firebase_Forum_Functions.ts
// ABOUT: These are functions for a Firebase forum system.
// You need NodeJS (nodejs.org) installed on your dev PC and create an Algolia and firebase project.
// Create an empty folder.
// Open terminal/cmd, navigate to the new folder and type in (NOTE: Use TypeScript):
// npm install -g firebase-tools
// firebase login
// firebase init
// npm install algoliasearch --save
// firebase functions:config:set algolia.appid="YOUR_APP_ID" algolia.apikey="YOUR_API_KEY"
@erfg12
erfg12 / node_express_post.js
Last active Mar 25, 2021
Simple Node.JS Express post parsing without Body-Parser.
View node_express_post.js
// Post data to `http://(host):(port)/handle` in JSON format.
var express = require("express");
//var WebSocket = require('ws');
//var sqlite3 = require("sqlite3").verbose();
var app = express();
app.use(express.json());
app.use(express.urlencoded({ extended: true }))
// Can change path to '/node/api/handle' to support iisnode.
@erfg12
erfg12 / gotify_web_sample.html
Last active Mar 23, 2021
Gotify web app sample code for send and receive.
View gotify_web_sample.html
<html>
<header>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
// VARIABLES, PLEASE CHANGE
var APP_TOKEN = "AhCGJ-BEC3z.g8Q";
var CLIENT_TOKEN = "C25iT7U7E1xlzSk";
var GOTIFY_SERVER = "localhost:80";
// SEND INFO TO MSG SERVER