Skip to content

Instantly share code, notes, and snippets.

View z010107's full-sized avatar

Andrey Krasilnikov z010107

View GitHub Profile
@z010107
z010107 / clone site using wget.txt
Created August 30, 2018 14:10 — forked from vpadhariya/clone site using wget.txt
Clone site and remove query string values from the files in linux.
# Clone entire site.
wget --content-disposition --execute robots=off --recursive --no-parent --continue --no-clobber http://example.com
# Remove query string from a static resource.
for i in `find $1 -type f -name "*\?*"`; do mv $i `echo $i | cut -d? -f1`; done
@z010107
z010107 / clean-up-boot-partition-ubuntu.md
Created June 21, 2018 13:19 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r