Command Line
Table of Contents
Here's a collection of sometimes usefull command line tools with usecases.
- Add Whitespace to PDFs for Notes
- ffmpeg for editing Audio & Video
- SSH
1. Disable bracketed pasting mode in Terminal
When pasting in terminal you may get some weird characters like: ~[200….~201]. This happens when an application tells the terminal that it handles backeted pasting mode. i.e. when pasting content the terminal should tell the application that pasting has started and ended. But if due to some reason bracketed pasting mode is enable but the application in the terminal doesn't handle this we need to disable it.
Run this to disable that mode:
;printf '\e[?2004l';
2. Update File Create Date of Images and Videos from Metadata
Update the file creation date
exiftool '-FileCreateDate<DateTimeOriginal' '-FileCreateDate<MediaCreateDate' -overwrite_original .
Update the file modified date to be same as file create date:
exiftool '-FileModifyDate<FileCreateDate' -overwrite_original .