Skip to content

Instantly share code, notes, and snippets.

View sugoidogo's full-sized avatar

SugoiDogo sugoidogo

View GitHub Profile
@sugoidogo
sugoidogo / Sugoi_LargerOptionsWindow.js
Last active October 30, 2025 08:40
RPGMaker MZ plugin to increase the size of the Options window
/*:
* @target MZ
* @plugindesc Increases the size of the Options window
* @author SugoiDogo
* @license LGPL-3.0-or-later (https://www.gnu.org/licenses/lgpl-3.0.en.html)
* @help Sugoi_LargerOptionsWindow.js
*
* Increases the size of the Options window
*/
{
@sugoidogo
sugoidogo / Sugoi_JSONSaves.js
Last active October 30, 2025 08:40
RPGMaker MZ plugin to change save file format from rmmzsave (json+zip) to plain json
/*:
* @target MZ
* @plugindesc Changes save format from rmmzsave to json
* @author SugoiDogo
* @license LGPL-3.0-or-later (https://www.gnu.org/licenses/lgpl-3.0.en.html)
* @help Sugoi_JSONSaves.js
*
* Changes save format from rmmzsave to json
*/
@sugoidogo
sugoidogo / packwiz-server-test.sh.cmd
Last active October 26, 2025 16:01
use docker to test a packwiz pack for successful server startup before pushing updates
docker run -it --rm -v ./:/pack -e "PACKWIZ_URL=/pack/pack.toml" -e EULA=TRUE -e MAX_MEMORY=8G -e TYPE=<<CHANGEME>> -e VERSION=<<CHANGEME>> itzg/minecraft-server
@sugoidogo
sugoidogo / dnf-podman-automatic-update.conf
Last active June 3, 2025 22:46
podman auto update after dnf automatic update
# /etc/systemd/system/dnf-automatic.service.d/override.conf
# run podman-auto-update right after dnf-automatic
# both services are now started by dnf-automatic.timer
[Unit]
Wants=podman-auto-update.service
Before=podman-auto-update.service
[Install]
WantedBy=podman-auto-update.service
@sugoidogo
sugoidogo / videolink.js
Last active February 28, 2025 17:38
extract a working video url from a twitch embed url using my videolink service
import { DurableObject } from "cloudflare:workers";
export default {
/** @param {Request} request */
async fetch(request, env, ctx) {
if(request.headers.get('Accept')!='text/event-stream'){
return new Response()
}
let id = env.EVENT_SOURCE.idFromName('test');
let stub = env.EVENT_SOURCE.get(id);

Using CurseForge Overwolf API Key with Prism Launcher

Go to Settings > APIs > API Keys and put the following into the "CurseForge Core API" box

$2a$10$bL4bIL5pUWqfcO7KQtnMReakwtfHbNKh6v1uTpKlzhwoueEJQnPnm

image

If the API key changes, it may be found again with this guide

@sugoidogo
sugoidogo / smove.lua
Last active November 29, 2024 11:42
fuel and chunk safe movement for ComputerCraft turtles
local forward=0
local right=0
local up=0
local rotation=0
local function quit(reason)
if smove.print_status then
print(reason)
end
fs.delete('.smove_home')
[Unit]
Description=initialize nvidia devices and the nvidia container toolkit for podman containers
[Service]
Type=oneshot
ExecStart=nvidia-smi
ExecStart=nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
@sugoidogo
sugoidogo / fetch-retry.js
Created August 18, 2024 16:04
fetch polyfill with automatic retries in case of network issues
/**
* @param {RequestInfo | URL} input
* @param {RequestInit} init
* @returns {Promise<Response>}
*/
function fetch(input,init=undefined){
return window.fetch(input,init).catch(async error=>{
if(error.message==="Failed to fetch"){
await new Promise(function(resolve,reject){
setTimeout(resolve,1000)