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 | |
# vimh - Open Vim in help page directly from terminal (fzf edition) | |
# | |
# Usage: | |
# If no argument is given, then a fuzzy finder search is initiated. | |
# | |
# vimh [tag] | |
# vimh '' | |
# vimh '<c-p>' |
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/sh | |
echo '' | xclip -selection clipboard -rmlastnl -in | |
xsel --clipboard --clear |
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 | |
# https://forum.manjaro.org/t/can-i-get-a-warning-about-eol-of-a-kernel/84079/10 | |
# check_eol_kernel | |
# Check if one of the current installed Linux kernels has reached EOL | |
# | |
# Usage: | |
# check_eol_kernel | |
# check_eol_kernel list | |
# |
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/sh | |
# Search matching lines with sed and print their non matching part of the lines. | |
# Usage: | |
# nogrep filter [sed_options] | |
# Examples: | |
# nogrep 'output' changelog.txt | |
# ls | nogrep '\(J\).*$' -E |
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 | |
# selectfile | |
# Use rofi to select file or folder until file is selected, then print it. | |
# Arguments | |
# $1=directory to start, defaults to "." (specified in variable default_dir) | |
# Source directory with systems folders. | |
default_dir="." |
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 | |
# lpl - Read entries from RetroArch .lpl playlist files in JSON format | |
# | |
# USAGE | |
# See `lpl -h` | |
# | |
# DEPENDENCIES | |
# getopts - Arguments parser (Bash built-in function) | |
# readlink - Get fullpath from path (standard program) |
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 | |
# Execute Windows programs with Proton from Steams installation folder, without | |
# starting Steam client. | |
# | |
# 1. Create a directory for Proton environment to run in. As an example make a | |
# folder "proton" in your home directory. This folder must exist in order | |
# to make Proton work. | |
# | |
# 2. Point the variable "env_dir" in this script to that folder or... |
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 | |
# vimd by Tuncay D. | |
# Select textfile in dmenu and open it in Vim. | |
# | |
# Usage: | |
# vimd | |
# Or: | |
# vimd DIRECTORY |
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/bash | |
# RetroArch playlist key extractor | |
# Dirty way of reading and printing values from .lpl playlist files. | |
# | |
# EXAMPLES: | |
# lplpath | |
# lplpath "~/.config/retroarch/playlists/Nintendo - Game Boy.lpl" | |
KEY=path |
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/sh | |
# rscript: Rust script interpreter | |
# Shebang in rust.rscript: #!/usr/bin/env -S rscript 2018 | |
# Directory where compiled binaries are saved to. | |
# Example: /var/tmp/rscript or /tmp | |
output_dir=/var/tmp/rscript | |
# -C panic=abort | |
# abort, unwind |