Useful command when Alt+power fails in macbook installation
- Determine the disk number
# Enter grub cmdline by pressing Right-Shift and c
grub> ls
(proc) (hd0) ...
Useful command when Alt+power fails in macbook installation
# Enter grub cmdline by pressing Right-Shift and c
grub> ls
(proc) (hd0) ...
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.
ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
Other options for PDFSETTINGS:
# Next time you need to install something with python setup.py -- which should be never but things happen. | |
python setup.py install --record files.txt | |
# This will cause all the installed files to be printed to that directory. | |
# Then when you want to uninstall it simply run; be careful with the 'sudo' | |
cat files.txt | xargs sudo rm -rf | |