botanikanet / replace apt repo
0 likes
0 forks
1 files
Last active 4 months ago
| 1 | sed -i "s/\/[a-z]\+\.ubuntu\.com/\/mirror\.yandex\.ru/g" /etc/apt/sources.list |
botanikanet / pdf shrink
0 likes
0 forks
1 files
Last active 4 months ago
| 1 | gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf |
| 2 | |
| 3 | Here's a full list of the dPDFSETTINGS to choose from (based on this link): |
| 4 | -dPDFSETTINGS=/screen — Low quality and small size at 72dpi. |
| 5 | -dPDFSETTINGS=/ebook — Slightly better quality but also a larger file size at 150dpi. |
| 6 | -dPDFSETTINGS=/prepress — High quality and large size at 300 dpi. |
| 7 | -dPDFSETTINGS=/default — System chooses the best output, which can create larger PDF files. |
Newer
Older