Skip to content

Instantly share code, notes, and snippets.

View infinity-plus's full-sized avatar
🎯
Focusing

Harsh Navdhare infinity-plus

🎯
Focusing
View GitHub Profile
@infinity-plus
infinity-plus / hello.sh
Created July 21, 2020 05:05
getopts Example
name=""
while getopts "s:" opt; do
case $opt in
s)
name="$OPTARG"
;;
\?)
echo "Invalid option $OPTARG"
exit 1
;;
drive.mount("/content/drive")
print("Enter direct link of a file")
!read url && wget -P "/content/drive/My Drive" $url
::========================================================================+
:: Author: Harsh Navdhare |
:: Description: This script takes a video file as an arguement and |
:: compresses it by encoding it in H265. |
:: See https://unix.stackexchange.com/a/38380 |
:: Prerequisites : The script assumes you have ffmpeg installed on your |
:: computer and added to your path. |
:: If not, see |
:: https://spadebee.com/2020/06/02/how-to-install-ffmpeg/ |
:: |