This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /etc/systemd/system/minecraft.service: | |
| [Unit] | |
| Description=Start Minecraft | |
| After=network.target | |
| [Service] | |
| WorkingDirectory=/opt/minecraft/ | |
| Type=simple | |
| User=mc |