Skip to content

Instantly share code, notes, and snippets.

View Bioblaze's full-sized avatar

Bioblaze Payne Bioblaze

View GitHub Profile
// Steam auth-ticket server.
//
// DATABASE_URL postgres DSN (required)
// WEB_API_KEY Steam publisher Web API key (required)
// STEAM_AUTH_IDENTITY identity passed to GetAuthTicketForWebApi (required)
// DISCORD_WEBHOOK_URL Discord webhook (required)
// GAME_STEAM_ID default app id (default 1742110)
// LISTEN_ADDR listen address (default :8080)
//
// POST /v1/auth/steam {"ticket":"<hex ticket from GetAuthTicketForWebApi>","app_id":1742110}
@Bioblaze
Bioblaze / Testing.cs
Created May 26, 2024 23:29
Morse Code Generator/Reader
public static class MorseCodeConverter
{
private static readonly Dictionary<char, string> _morseCodeDictionary = new Dictionary<char, string>()
{
{ 'A', ".-" }, { 'B', "-..." }, { 'C', "-.-." }, { 'D', "-.." }, { 'E', "." },
{ 'F', "..-." }, { 'G', "--." }, { 'H', "...." }, { 'I', ".." }, { 'J', ".---" },
{ 'K', "-.-" }, { 'L', ".-.." }, { 'M', "--" }, { 'N', "-." }, { 'O', "---" },
{ 'P', ".--." }, { 'Q', "--.-" }, { 'R', ".-." }, { 'S', "..." }, { 'T', "-" },
{ 'U', "..-" }, { 'V', "...-" }, { 'W', ".--" }, { 'X', "-..-" }, { 'Y', "-.--" },
{ 'Z', "--.." }, { '0', "-----" }, { '1', ".----" }, { '2', "..---" }, { '3', "...--" },
@Bioblaze
Bioblaze / AnotherFile.js
Created January 25, 2017 02:45
One-way EventEmitter to Multiple Files
var Event = require('./Events').eventBus;
Events.on("test", function() {
console.log('it worked');
});
@Bioblaze
Bioblaze / ffmpeg.sh
Created June 26, 2020 05:23 — forked from chrisstubbs93/ffmpeg.sh
auto-restart FFMPEG when it stops sending frames to youtube
#!/bin/sh
sleep 5
ffmpeg -re -f mjpeg -r 10 -i "http://localhost/?action=stream" -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 1k -strict experimental -s 640x360 -vcodec h264 -pix_fmt yuv420p -g 20 -vb 500k -preset ultrafast -crf 31 -r 10 -f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx" 2> /home/pi/ffmpeg.log
@Bioblaze
Bioblaze / MakehumanUE4BoneFix.py
Created April 8, 2017 04:23
This is a Fix for Makehuman to UE4 Skeleton Reassignment When you import a avatar from Makehuman, normally you`ll retarget the UE4 Skeleton to Match. When you do that, as you import animations from the UE4 Skeleton it changes them slightly, joints are out of line, bones are resized. This fixes that, bring them into Blender, and run this script. …
import bpy
bl_info = {
"name": "Fix Makehuman UE4 Animation",
"description": "Goes through and fixes all the Scale and Location of all Bones other then Root.",
"author": "Bioblaze Payne",
"version": (0,1),
"location": "View3D > Pose Mode > Unreal Engine",
"category": "Animation"
}
@Bioblaze
Bioblaze / LICENSE
Created September 2, 2020 05:14 — forked from Techcable/LICENSE
All rights reserved License
All Rights Reserved
Copyright (c) ${project.inceptionYear} ${owner}
Created by Techcable
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@Bioblaze
Bioblaze / gist:c0d896acff74891765846b5bb3d3e656
Last active August 30, 2020 22:07
Contributor License Agreement ~ Trovobot
<section class="text-center">
## Fiduciary License Agreement 2.0
<span id="tmp-subtitle-based">based on the</span>
## <span id="tmp-contributor-type">Individual</span> Contributor <span id="tmp-contributor-exclusivity-1">exclusive</span> License Agreement
## (including the <span id="tmp-patent-option">Traditional Patent License</span> OPTION)
@Bioblaze
Bioblaze / install.ps1
Last active July 31, 2020 07:39
Installer for TrovoBot on the Windows 10 OS using Powershell.
if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {
if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) {
$CommandLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments
Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine
Exit
}
}
Write-Host "Setting up Temp Directory...."
@Bioblaze
Bioblaze / CLA
Created July 31, 2020 03:44
CLA for Trovobot
<section class="text-center">
<h2 id="tmp-title">Fiduciary License Agreement 2.0</h2>
<span id="tmp-subtitle-based">based on the</span>
<h2 id="tmp-subtitle"><span id="tmp-contributor-type">Individual</span> Contributor <span id="tmp-contributor-exclusivity-1">exclusive</span> License Agreement</h2>
<h2 id="tmp-subtitle-patent">(including the <span id="tmp-patent-option">Traditional Patent License</span> OPTION)</h2>
</section>
<p>Thank you for your interest in contributing to <span id="tmp-beneficiary-name">Randolph "Bioblaze Payne" Aarseth</span>'s <span id="tmp-project-name">Trovobot</span> ("We" or "Us").</p>
<p>The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at <span id="tmp-submission-instructions">https://cla-assistant.io/</span>.</p>