A growing collection of tools and commands to aid my fragmented memeory.
type enter ~.
ImageMagick:
# Resize based on width, maintaining aspect ratio
convert image.jpg -resize 1280 image.jpg
# Convert from one format to another:
convert image.jpg image.png
# Rotate:
convert image.png -rotate 90 image.png
openssl req -x509 -newkey rsa:4096 -keyout od_key.pem -out od_cert.pem -days 365 -nodes -subj '/CN=oppen.digital'
Process Manager 2:
pm2 list - lists current managed processes
pm2 monit - nice dashboard including logs
pm2 restart id - restart a process
pm2 logs - display logs
pm2 flush - delete all logs
© 2019 - 2021 ÖLAB view in Gemini