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 | |
# Run a command n-times or infinite times. | |
# by Tuncay D. (thingsiplay) | |
# | |
# Usage: loop [N] COMMAND | |
# | |
# If the first argument N is a number, then it will run the command that many | |
# times. If N is not a number, then it will be interpreted as part of the | |
# actual command and run indefinitely. |
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/env bash | |
# Check Updates List | |
# Report and notify only when specific packages needs an update on Archlinux. | |
# | |
# Usage: | |
# checkupdateslist [package]... | |
# | |
# Example: | |
# $ checkupdateslist |
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/env bash | |
# Lookup section meaning in `man man`. | |
sections='1,8,6,5,7' | |
show_manual () { | |
man -- "${1%% *}" 2> /dev/null | |
} | |
export -f show_manual |
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
# save - Capture and reuse output of command | |
# A Bash function | |
# | |
# usage: save [file] | |
# | |
# On start of the Bash session a new temporary file is created that lives as | |
# long as this terminal session lives. This is the default file. It's path can | |
# be looked up in the environmental variable $SAVE. Anytime `save` runs, it | |
# will lookup this variable. The first argument to `save` is a file path that | |
# will be used as $SAVE file. A manual set file won't be deleted automatically. |
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
shaders = "22" | |
feedback_pass = "0" | |
shader0 = "shaders_slang/stock.slang" | |
wrap_mode0 = "clamp_to_border" | |
mipmap_input0 = "false" | |
alias0 = "mdapt_refpass" | |
float_framebuffer0 = "false" | |
srgb_framebuffer0 = "false" | |
shader1 = "shaders_slang/dithering/shaders/mdapt/passes/mdapt-pass0.slang" | |
filter_linear1 = "false" |
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 | |
cheat='curl -s cheat.sh' | |
menu='fzf --reverse' | |
pager='less -R -c' | |
cachefile_max_age_hours=6 | |
explain='https://explainshell.com/explain?cmd' | |
# Path to temporary cache file. If your Linux system does not support /dev/shm | |
# or if you are on MacOS, then change the path to your liking: |
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/env bash | |
# Usage: | |
# qforceupdate | |
# qforceupdate checkupdates | |
if [ "${#}" == 0 ] | |
then | |
# requires ln -s ~/.cache/qtile/qtilesocket.\:0 ~/.cache/qtile/qtilesocket.\:0.0 | |
qtile cmd-obj -o cmd -f list_widgets \ |
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
# | |
# ~/.bashrc | |
# | |
# CDIRS | |
# Set of functions for Bash, to add and jump to user defined folders. | |
# | |
# Examples: | |
# cadd | |
# cadd ~/Downloads/new |
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
/home/pi/RetroPie/roms/neogeo/3countb.zip | |
/home/pi/RetroPie/roms/neogeo/alpham2.zip | |
/home/pi/RetroPie/roms/neogeo/androdun.zip | |
/home/pi/RetroPie/roms/neogeo/aodk.zip | |
/home/pi/RetroPie/roms/neogeo/aof2a.zip | |
/home/pi/RetroPie/roms/neogeo/aof3.zip | |
/home/pi/RetroPie/roms/neogeo/aof.zip | |
/home/pi/RetroPie/roms/neogeo/bjourney.zip | |
/home/pi/RetroPie/roms/neogeo/blazstar.zip | |
/home/pi/RetroPie/roms/neogeo/breakers.zip |
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/env bash | |
# Required non standard packages: | |
# lynx megatools | |
for option in "${@}" | |
do | |
if [[ "${option}" == "-q" ]] | |
then | |
quiet=1 |