Skip to content

Instantly share code, notes, and snippets.

View rkellermeyer's full-sized avatar

Richard Kellermeyer rkellermeyer

  • USA
View GitHub Profile
@ckabalan
ckabalan / best_bash_history.sh
Last active November 7, 2024 12:13
The Best Bash History Settings Ever
# /etc/profile.d/best_bash_history.sh
# Save 5,000 lines of history in memory
HISTSIZE=10000
# Save 2,000,000 lines of history to disk (will have to grep ~/.bash_history for full listing)
HISTFILESIZE=2000000
# Append to history instead of overwrite
shopt -s histappend
# Ignore redundant or space commands
HISTCONTROL=ignoreboth
# Ignore more
@chetan
chetan / yardoc_cheatsheet.md
Last active November 11, 2024 08:27
YARD cheatsheet
@JadedEvan
JadedEvan / unix-cli-tips.md
Last active December 12, 2019 06:41
UNIX Tips - a catalog of useful UNIX commands

find commands

find . -regextype posix-egrep -regex ".*(rb|js)$"

Find all files ending in .rb or .js.

find . -name "*js" -o -name "*rb"

Same as above, not using regular expressions.