Skip to content

Instantly share code, notes, and snippets.

View erfg12's full-sized avatar
🏠
Working from home

Jacob Fliss erfg12

🏠
Working from home
View GitHub Profile

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 > frontend\cert.pem
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 21:27
Firebase forum system functions.
// 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 March 25, 2021 14:47
Simple Node.JS Express post parsing without Body-Parser.
// 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 September 20, 2022 20:10
Gotify web app sample code for send and receive.
<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
<html>
<head>
<script
src="https://cdn.jsdelivr.net/npm/instantsearch.js@2.8.1"></script>
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@4.5.1/dist/algoliasearch.umd.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.8.1/dist/instantsearch.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.8.1/dist/instantsearch-theme-algolia.min.css">
</head>
<body>
// ABOUT: This is how you import and sync your Firestore data in Algolia via Firebase functions.
// You need NodeJS and NPM installed prior on your dev PC and have created your Algolia and firebase project(s).
// Open terminal/cmd 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"
// Open 'functions/src/index.ts' with VSCode/Atom/NotePad and put this code in it.
@erfg12
erfg12 / Console Video Playback.md
Last active February 4, 2021 20:19
Convert videos to play on Video Game Console platforms.
// dllmain.cpp : Defines the entry point for the DLL application.
#include "pch.h"
#include <string>
HMODULE globalhModule;
VOID PipeFunctions(std::string func) {
if (func.compare("remove") == 0) {
FreeLibraryAndExitThread(globalhModule, 0);
}
@erfg12
erfg12 / wp_cors.php
Last active August 11, 2020 18:31
3rd Party WordPress CORS
<?php
$WPSite = "https://WordPressSite.com"; // CHANGE THIS
// Make CORS accessible
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=UTF-8");
error_reporting(E_ALL);
// Pull data via Curl
function GetURLData($url) {