Skip to content

Instantly share code, notes, and snippets.

View sugoidogo's full-sized avatar

SugoiDogo sugoidogo

View GitHub Profile

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 / 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 / 0-pve.sh
Last active May 15, 2025 07:50
customized install proxmox ve on debian - only tested on buster, bullseye
#!/usr/bin/env bash
# wget -qO 0-pve.sh https://gist.github.com/sugoidogo/4684e4659431e17d15be20171160c1f9/raw/ && bash 0-pve.sh
set -e
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
function download { wget $* || curl -fLO $*; }
function stream { wget -qO- $* || curl -fsSL $*; }
function package { apt $* } #|| dnf $*; }
echo "This script will download and run the installation script in a screen session"
echo "The installation script will download post-installation scripts to $HOME and reboot the system upon successful installation"
#!/bin/bash
set -e
# wget -qO- https://gist.github.com/sugoidogo/1df06591d9dc4a8852fcbe2dd9757985/raw/ | bash
GIST_USER=sugoidogo
GIST_ID=1df06591d9dc4a8852fcbe2dd9757985
GIST=https://gist.github.com/$GIST_USER/$GIST_ID/raw
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
function download { wget $* || curl -fLO $*; }
@sugoidogo
sugoidogo / pacman-steamos3.conf
Created July 6, 2022 06:31
official steam pacman repos used by the steam deck
[jupiter]
Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/$repo/os/$arch
[holo]
Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/$repo/os/$arch
[core]
Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/$repo/os/$arch
[extra]
@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);
@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)