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://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 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 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 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 | |
# py - check Python script with mypy and flake8, then execute it | |
export PATH=".:$PATH" | |
file=$(/usr/bin/which --skip-alias --skip-functions "$1") | |
shift | |
export MYPY_CACHE_DIR="/tmp/.mypy_cache" | |
mkdir -p "$MYPY_CACHE_DIR" | |
mypy "$file" \ |
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
# cdd - jump to a directory you visited previously | |
# A Function for ZSH config file. | |
# | |
# Usage: | |
# $ cdd | |
# $ cdd "regex" | |
# | |
# Don't forget to enable "setopt auto_pushd", so that each "cd" command will | |
# add a folder to the list automatically. | |
# |
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 | |
# Count unread mails in Thunderbird and write to stdout. | |
# Usage: | |
# checkmails.sh | |
# Path to your Thunderbird profile. | |
profile="$HOME/.thunderbird/aabbcc007.default" | |
# Regex to find the unread message lines. |
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 | |
# biggest - list biggest files and folders | |
# | |
# Usage: | |
# biggest | |
# biggest *.png | |
du --apparent-size --all --max-depth 1 --one-file-system "$@" \ | |
| sort --numeric-sort --ignore-leading-blanks --reverse \ |
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" |
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/sh | |
fc-list \ | |
| grep -ioE ": [^:]*$1[^:]+:" \ | |
| sed -E 's/(^: |:)//g' \ | |
| tr , \\n \ | |
| sort \ | |
| uniq |