defaults write com.apple.screencapture type jpg; killall SystemUIServer
# Your options are JPG, TIFF, GIF, PDF and PNG.
Code Snippets
There are 13 posts filed in Code Snippets (this is page 1 of 3).
Directly send an e-mail in rails without template
Snippet to directly send an e-mail in Rails, without templates
ActionMailer::Base.mail(
from: "gamecreatre@example.com",
to: "receiver@example.com",
subject: "Sample Subject",
body: "Message Body"
).deliver
Snippet to find string files of a given filename
find . -name config.rb -print0 | xargs -0 grep 'search-thing'
Extract single table from a MySQL dump
sed -n -e '/DROP TABLE.*`table_name`/,/UNLOCK TABLES/p' dump.sql > table_name.sql
Source: https://ruleoftech.com/2019/restore-single-table-from-full-mysql-database-dump
Find to find files newer than
find . -newermt '14 days ago' ## minutes/hours etc.. see date input formats