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
# | |
# ~/.bashrc | |
# | |
# CDIRS | |
# Set of functions for Bash, to add and jump to user defined folders. | |
# | |
# Examples: | |
# cadd | |
# cadd ~/Downloads/new |
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
/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 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 |
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
Avenging Spirit | |
B.Rap Boys | |
Chanbara | |
Dungeon Magic | |
Exvania | |
Fortress 2 Blue Arcade | |
Gundhara | |
Hopper Robo | |
Itazura Tenshi | |
Joinem |
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
# Some shell commands to investigate startup times of Vim. | |
# Intended to be used on their own, in example by copy-paste. | |
# Measure the startup time. | |
vim --startuptime /dev/stdout +qall && echo && time vim +q | |
# Remove the first column and sort the output based on time elapsed for that particular entry. | |
vim --not-a-term --startuptime /dev/stdout +qall | awk '{$1="" ; print $0}' | grep -E '^ *[0-9]' | sort | |
# Get detailed information. |
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
#!/usr/bin/bash | |
# Print current GAME ROW. | |
# https://www.reddit.com/r/gamerow/comments/u9587m/rgamerow_lounge/ | |
link="https://thingsiplay.eu.pythonanywhere.com/game-random-of-the-week" | |
if [ $# -eq 0 ] | |
then | |
curl -s "$link" \ | |
| sed 's/<[^>]\+>//g' \ |
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/env bash | |
# https://gist.github.com/thingsiplay/21595bf70743dde56539696f7bd942ad | |
# Downloads playlists from "balb" user to be used in RetroArch under native | |
# installation for Linux. It will download all playlists, convert internal | |
# paths, change the filename and move it to the playlists folder. You have to | |
# set all three "_dir" variables below, as the default values are only my | |
# personal setup. |
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/sh | |
fc-list \ | |
| grep -ioE ": [^:]*$1[^:]+:" \ | |
| sed -E 's/(^: |:)//g' \ | |
| tr , \\n \ | |
| sort \ | |
| uniq |
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
#reference "shaders_slang/presets/crt-royale-kurozumi.slangp" | |
geom_mode_runtime = "3.000000" | |
interlace_detect_toggle = "0.000000" |
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/env bash | |
input="$(mktemp)" | |
output="$(mktemp)" | |
import "$input.png" | |
tesseract -l eng "$input.png" "$output" 2> /dev/null | |
cat "$output.txt" | |
rm -f "$input" |