- Download yt-dlp
- Download Video:
yt-dlp "https://www.youtube.com/watch?v=1Ut6RouSs0w" -o 1Ut6RouSs0w.webm
- Run ffmpeg to cut your fragment:
ffmpeg -ss 588.4 -t 15 -i 1Ut6RouSs0w.webm -y -c copy video-588.4-15-1Ut6RouSs0w.mp4
This file contains 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
ps -ef | grep 'mybot' | grep -v grep | awk '{print $2}' | xargs kill -9 |
This file contains 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
# Write to pickle | |
import pickle | |
filehandler = open(b"df_items.obj","wb") | |
pickle.dump(df_items,filehandler) | |
filehandler.close() | |
# Read | |
filehandler = open("df_items.obj",'rb') | |
df_items = pickle.load(filehandler) |
This file contains 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
@ECHO OFF | |
@ REM Download Audio from YouTube and encode to MP3 | |
TITLE Download YouTube MP3 | |
set /p url= "Enter Youtube URL:" | |
echo %url% | |
youtube-dl %url% --ignore-errors --format bestaudio --extract-audio --audio-format mp3 --audio-quality 160K --output %%(title)s.^%%(ext)s |
$ sudo apt-get update
$ sudo apt-get install ruby ruby-dev make gcc
$ sudo gem install jekyll bundler
see source
This file contains 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
du -m -h -c --max-depth=1 |
This file contains 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
sudo apt-get install openvpn | |
sudo openvpn --config /path/to/config.ovpn |