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
$Playlist = ((Invoke-WebRequest "https://www.youtube.com/watch?v=XXXXXXX&list=XXXXXXXXXXXXXXXXXX&index=1").Links | Where {$_.class -match "playlist-video"}).href | |
ForEach ($Video in $Playlist) { | |
Write-Output ("https://www.youtube.com" + $Video) | |
} |
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 | |
#755 folders | |
#644 files | |
rsync -a --chmod=Du=rwx,Dgo=rx,Fu=rw,Fog=r --files-from=/path/rsync-files.txt --ignore-existing -r /path/from user@host:/path/to -v --progress --stats |
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 | |
while [ 1 ] | |
do | |
sshpass -p "PASSWORD" rsync --ignore-existing -r USER@HOST:/path/from/host /path/to/local -v --progress --stats | |
if [ "$?" = "0" ] ; then | |
echo "RSYNC FINISH" | |
exit | |
else | |
echo "RSYNC FAIL. WAIT, RECONNECTING..." |
NewerOlder