Ubuntu – Create a new User with custom Home Directory and add to “www-data” group

# copy from existing skel
cp -r /etc/skel /etc/skel-for-web-users
cd /etc/skel-for-web-users
sudo mkdir configs logs web web/public_html
cd logs
touch error.log
touch access.log

# verify contents with
tree /etc/skel-for-web-users
# should output
├── configs
├── logs
│   ├── access.log
│   └── error.log
└── web
    └── public_html

4 directories, 2 files

Cmder – Windows Setup

Using Git Bash Settings -> Integration: Command: `/single /icon D:\_cmder\icons\cmder_red.ico -run {Git Bash}` Icon File: `”D:\_cmder\icons\cmder_red.ico”`

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

youtube-dl – Download playlist

youtube-dl --download-archive downloaded.txt --no-post-overwrites -c -i -o '%(playlist_uploader)s-%(playlist_title)s/%(upload_date)s-%(playlist_index)s-%(title)s-%(id)s.%(ext)s' --restrict-filenames -f 22/18 -c --socket-timeout 120 --retries 9999 ''