O_VID_FORMAT="mp4"
VID_URL="https://www.youtube.com/watch?v=jKPlGznbfZ0"
youtube-dl -f bestvideo+bestaudio --merge-output-format $O_VID_FORMAT $VID_URL
# For getting MP4 version
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' $VID_URL
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
# USAGE llog write to console | |
llog() { | |
echo "$(date '+%Y-%m-%d %H:%M:%S%s') $(printf ' %q' "$@")" | |
} |
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
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |
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
function isHidden(el) { | |
if(el) return (el.offsetParent === null); | |
else return false; | |
} | |
TotalUnfollowed = 0; | |
var LoadingAnimation = document.getElementsByClassName("initial-load-animation")[0]; | |
var CatchLoadingAnimation = setInterval(function(){ | |
if(isHidden(LoadingAnimation) == true) { |
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
from botocore.credentials import RefreshableCredentials | |
from botocore.session import get_session | |
from boto3 import Session | |
def assumed_session(role_arn, session_name, session=None): | |
"""STS Role assume a boto3.Session | |
With automatic credential renewal. |
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
yum -y install epel-release deltarpm wget \ | |
&& yum -y update \ | |
&& yum -y install net-tools bind-utils zip git | |
# Setup the Repo for Python 3 | |
yum -y install https://centos7.iuscommunity.org/ius-release.rpm | |
yum -y install python36u | |
yum -y install python36u-pip | |
python3.6 -V |
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 " | |
_____________________________ | |
|| || | |
|| Welcome to Valaxy Demo || | |
||_____________________________|| | |
|| || | |
|| _nnnn_ || | |
|| dGGGGMMb || | |
|| @p~qp~~qMb || | |
|| M|@||@) M| || |
NewerOlder