Skip to content

Instantly share code, notes, and snippets.

View Pobega's full-sized avatar
🤔

Pobega Pobega

🤔
View GitHub Profile
@Pobega
Pobega / docker.sh
Created November 20, 2025 17:25
Run Docker using flatpak-spawn (for development inside toolbx/distrobox)
#!/bin/bash
# Save this as ~/.local/bin/docker
if [ ! -x /usr/bin/docker ]; then
flatpak-spawn --host /usr/bin/docker "$@"
else
/usr/bin/docker "$@"
fi
@Pobega
Pobega / gist:e9a0f509258eee42b1766a70031d00ba
Created November 19, 2025 21:48
Operius DX Patchscript fixes (for non-bash shells) (NextUI)
137c137,139
< if [ -z "${!var}" ]; then
---
> # Use POSIX eval over indirect parameter expansion
> eval "var_value=\$$varname"
> if [ -z "$var_value" ]; then
169c171,172
< basename="${item##*/}"
---
> # Use POSIX basename command instead of bash parameter expansion
@Pobega
Pobega / gist:9a276203bf8b17993f4efea7cba1d455
Last active November 20, 2025 14:55
Balatro diff for TrimUI Brick / NextUI
diff --git a/cardarea.lua b/cardarea.lua
index 6507fe0..61d6ddc 100644
--- a/cardarea.lua
+++ b/cardarea.lua
@@ -229,7 +229,7 @@ end
function CardArea:move(dt)
--Set sliding up/down for the hand area
if self == G.hand then
- local desired_y = G.TILE_H - G.hand.T.h - 1.9*((not G.deck_preview and (G.STATE == G.STATES.SELECTING_HAND or G.STATE == G.STATES.DRAW_TO_HAND)) and 1 or 0)
+ local desired_y = G.TILE_H - G.hand.T.h - 1.9*((not G.deck_preview and (G.STATE == G.STATES.SELECTING_HAND or G.STATE == G.STATES.DRAW_TO_HAND)) and 1 or 0) + 2 -- Bring hand area down to the bottom of the screen
@Pobega
Pobega / gist:6fd3fb48a81525591eb283f332b23b44
Created October 22, 2025 19:58
NextUI - SMB1R Launch Script
#!/usr/bin/env bash
# PORTMASTER: smb1r.zip, Super Mario Bros Remastered.sh
XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}
# Detect PortMaster control folder
if [ -d "/opt/system/Tools/PortMaster/" ]; then
controlfolder="/opt/system/Tools/PortMaster"
elif [ -d "/opt/tools/PortMaster/" ]; then
controlfolder="/opt/tools/PortMaster"
#!/usr/bin/env python3
import argparse
import requests
from bs4 import BeautifulSoup, SoupStrainer
def main():
parser = argparse.ArgumentParser(
prog='TIC Scraper',
description='Scrape the top games from tic80.com')
/etc/systemd/system/minecraft.service:
[Unit]
Description=Start Minecraft
After=network.target
[Service]
WorkingDirectory=/opt/minecraft/
Type=simple
User=mc