This file contains 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 | |
source="$1" | |
if [[ "$source" == "" ]]; then | |
echo "Error: No source provided!" | |
exit 1 | |
fi | |
if ! [[ -e "$source" ]]; then |
This file contains 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 | |
source="$1" | |
keep_dir=${keep_dir:-false} | |
tar_wrap=${tar_wrap:-true} # for wrapping a single file | |
if [[ "$source" == "" ]]; then | |
echo "Error: No source provided!" | |
exit 1 |
This file contains 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 | |
# Note: make sure the card / hwmon indexes correspond to your GPU! | |
# They can differ depending on your set up. | |
gpu_hwmon="/sys/class/drm/card0/device/hwmon/hwmon2" | |
# Takes cap parameter in Watts. "max" sets it to max allowed. | |
cap_watts=$1 |
This file contains 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 | |
# | |
# Uses ripgrep (rg) | |
# | |
length=${length:-5} | |
tries=${tries:-6} | |
# All words of given length from a dictionary |
This file contains 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 | |
# Extractor for game ROMs from Konami Collector's Series. | |
# | |
# Usage: gog_extract_konami_collectors_series.sh <path_to>/cc.exe | |
# | |
# Make sure you have xxd hexdump tool and dd installed. | |
# | |
# Games locations: |
This file contains 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 | |
# Builds Wine-staging | |
# Notes: | |
# 1. Targeted for usage inside a VM (use shared directory $HOME/mnt/vmshare between host and guest). | |
# 2. You'd need to separately push the result on the host to whatever location you want (like to /opt). | |
# 3. Place any manual patches in ${HOME}/build/patches | |
# 4. Override arch to something else if you aren't using Ryzen. | |
# |
This file contains 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 | |
# Notes: | |
# | |
# For Debian build of dxvk and vkd3d-proton. | |
# | |
# 1. To build 64-bit and 32-bit dxvk: | |
# | |
# for bitness in 64 32; do project=dxvk bitness=$bitness dxvk_build.sh; done | |
# |
This file contains 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 | |
# Assumes Mesa libraries are installed in: | |
# /opt/${mesa}/<arch_dir> | |
# or in | |
# ${mesa_path}/<arch_dir> | |
# For explicit control of the run | |
mesa_run=${mesa_run:-true} | |
if ! $mesa_run; then |
This file contains 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 | |
# Configuration: | |
# | |
# WINEPREFIX what prefix to use (or will use the default). | |
# wine_path custom location of Wine if needed (custom variable for the script). | |
# | |
# Uses wine_env.sh | |
# Note, winetricks requires using WoW64 build of Wine. |
This file contains 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 | |
# Configuration (set through environment variables): | |
# | |
# WINEPREFIX - what prefix to use. | |
# wine_path - to use custom location of Wine (e.g. /opt/wine-main). | |
# wine - shortcut for the above, to assume /opt/$wine | |
# | |
# Notes: |
NewerOlder