➜ ffmpeg -i in.mp4 -vf "crop=1240:720:0:0" out.mp4
# cropped width and height ^ (we're removing 40px from the height)
# coordinates of the top-left corner ^ (we're setting the top-left corner to the top-left of the screen so we cut out the bottom 40px)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # **A quick & dirty script for removing audio from mp4 files in a given dir.** | |
| ## Check if path given as arg: | |
| if [ $# -eq 0 ]; then | |
| echo "ERR! No path supplied"; exit 1; | |
| fi | |
| ## Check if give path exists: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # **A quick & dirty hugo website build + upload script.** | |
| # Place this file in your hugo website's root directory, run `chmod +x` | |
| # Setup the config variables and enjoy a more streamlined experience! | |
| FTP_LOGIN="" | |
| FTP_PASS="" | |
| FTP_HOST="" |
ffmpeg -i in.mp4 -vf "crop=1920:1040:0:0" out.mp4
# cropped width and height ^ (we're removing 40px from the height)
# coordinates of the top-left corner ^ (we're setting the top-left corner to the top-left of the screen so we cut out the bottom 40px)This snippet will (in current dir):
- Convert all files of
.heic/.HEICextension to ones with.png. - Remove all original
.heicfiles.
find . -type f -iname '*.heic' -print0 | while IFS= read -r -d '' file; do heif-convert "$file" -f "png" && rm "$file"; doneA script that adds time of block next to it's start / end times in the timetable.
- Install a Userscript browser extension
- Tampermonkey (I use this one)
- Violentmonkey
- etc.
This little script works for both ordinary and part time timetables + has a bunch of cool QoL features ;)
(It displays the nicer timetable under the original one)
- Go to your courses page (for me its: https://usosweb.ansb.pl/kontroler.php?_action=dla_stud/studia/oceny/index)
- Open the browser Dev Tools F12
- Paste in the code:
This little script works for both ordinary and part time timetables + has a bunch of cool QoL features ;)
(It displays the nicer timetable under the original one)
- Go to your courses page (for me its: https://usosweb.ansb.pl/kontroler.php?_action=dla_stud/studia/oceny/index)
- Open the browser Dev Tools F12
- Paste in the code:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # THIS ONLY CHECK THE DIFF IN AMOUNT OF FILES, NOT ACTUAL CONTENT!!! | |
| # Make sure the SRC path has more files than the DST. | |
| SRC_PATH="/d/Games/SteamLibrary/steamapps/common/assettocorsa/content/cars" | |
| DST_PATH="//192.168.1.5/home/Backupy/AC Content Manager/content/cars" | |
| DIFF_RESULT=$(diff --brief "$DST_PATH" "$SRC_PATH" \ | |
| | sed --quiet "s~^Only in \($SRC_PATH\): \(.*\)~'\1\/\2'~p") |
NewerOlder