Snippets

Rsync – Basic usage

rsync -avz -e "ssh -p 6395" user@host.com:/home/user/public_html/wp-content/uploads/* public_html/wp-content/uploads

HTTrack – Mirror online documentation for offline viewing

httrack -%v -v -qwr9999%e1C4%Ps0u1%s%uN0%Ip3DaK0H0%kf2A25000%f#f -F "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826" -%F "" -%l "en, *" +*.js +*.css +*.svg +*.woff2 +*.otf +*.ttf +fonts.googleapis.com/* +*.gif +*.jpg +*.jpeg +*.png +*.tif +*.bmp -github.com/* +en.wikipedia.org/* -O1 "." https://timber.github.io/docs/

WinHTTrack – scan rules

+*.css +*.js -ad.doubleclick.net/* -mime:application/foobar
+*.gif +*.jpg +*.jpeg +*.png +*.tif +*.bmp
+*.zip +*.tar +*.tgz +*.gz +*.rar +*.z +*.exe
+*.mov +*.mpg +*.mpeg +*.avi +*.asf +*.mp3 +*.mp2 +*.rm +*.wav +*.vob +*.qt +*.vid +*.ac3 +*.wma +*.wmv
+*.js
+*.css
-*[name].github.com/*
-github.com/*
-wikipedia.org/*
+*.svg
+*.woff2
+fonts.googleapis.com/*
-*[name].wikipedia.org/*

youtube-dl – Download playlist

youtube-dl -c -i -o '%(playlist_uploader)s-%(playlist_title)s/%(playlist_index)s-%(title)s-%(id)s.%(ext)s' --restrict-filenames -f 22/18 -c --socket-timeout 120 --retries 9999 ''