Skip to content

Instantly share code, notes, and snippets.

View thingsiplay's full-sized avatar

Tuncay thingsiplay

View GitHub Profile
@thingsiplay
thingsiplay / ?
Last active May 28, 2024 18:12
cheat.sh - The only cheat sheet you need
#!/bin/env bash
cheat='curl -s cheat.sh'
menu='fzf --reverse'
pager='less -R -c'
cachefile_max_age_hours=6
# 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:
cachefile='/dev/shm/cheatlist' # GNU+LINUX
@thingsiplay
thingsiplay / qforceupdate
Last active February 26, 2024 11:24
qforceupdate - update a widget on your bar through shell command
#!/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 \
@thingsiplay
thingsiplay / .bashrc
Last active March 2, 2023 06:03
CDIRS - Set of functions for Bash, to add and jump to user defined folders
#
# ~/.bashrc
#
# CDIRS
# Set of functions for Bash, to add and jump to user defined folders.
#
# Examples:
# cadd
# cadd ~/Downloads/new
@thingsiplay
thingsiplay / custom-neogeo-aes.cfg
Created November 7, 2022 02:03
Neo Geo AES romnames
/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
@thingsiplay
thingsiplay / download-shaders.sh
Created October 31, 2022 16:30
Download additional Libretro Shaders
#!/bin/env bash
# Required non standard packages:
# lynx megatools
for option in "${@}"
do
if [[ "${option}" == "-q" ]]
then
quiet=1
@thingsiplay
thingsiplay / Arcade - A-Z Uncommon Arcade Games (Game Titles).txt
Created October 27, 2022 17:51
A-Z Uncommon Arcade Games Gamelists for FinalBurn Neo (fbneo) emulator
Avenging Spirit
B.Rap Boys
Chanbara
Dungeon Magic
Exvania
Fortress 2 Blue Arcade
Gundhara
Hopper Robo
Itazura Tenshi
Joinem
@thingsiplay
thingsiplay / vimtime
Created September 28, 2022 18:36
Some shell commands to investigate startup times of Vim.
# 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.
@thingsiplay
thingsiplay / balb_playlists.sh
Last active August 29, 2022 14:17
Download RetroArch playlists from balb and convert paths to native Linux installation.
#!/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.
@thingsiplay
thingsiplay / fontsearch.sh
Last active June 9, 2022 10:55
Cleaner output font name output when searching for font
#!/bin/sh
fc-list \
| grep -ioE ": [^:]*$1[^:]+:" \
| sed -E 's/(^: |:)//g' \
| tr , \\n \
| sort \
| uniq
@thingsiplay
thingsiplay / arcade_monitor.slangp
Last active June 12, 2022 13:52
My Shader Presets for RetroArch shaders_slang
#reference "shaders_slang/presets/crt-royale-kurozumi.slangp"
geom_mode_runtime = "3.000000"
interlace_detect_toggle = "0.000000"