My Brain This Week Mar 11th-17th

Cthulhu Bunny at Starbucks?


Open a random Image in a directory

If you have a directory of images, and you want a random image, this bash one liner will do it:

open "$(find *  -type f -iname '*.png' -o -iname '*.jpg' -o -iname '*.jpeg' -o -iname '.gif' | sort -R | head -n 1)"

AG fast cli finder

AG (the silver searcher) is a fast finder like grep for text in files. Short tutorial here.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s