Skip to content

Instantly share code, notes, and snippets.

Igor A. Melekhine awsom82

  • Moscow, Russia
View GitHub Profile
awsom82 / search.go
Last active Mar 14, 2020
Count words on webpages. Usage: echo | go run search.go
View search.go
package main
import (
awsom82 /
Created Feb 14, 2020
OSX PDF operations

Merge pdf by Quartz

/System/Library/Automator/Combine\ PDF\ Pages.action/Contents/Resources/ --output all.pdf *.pdf

Compress PDF via GostScript

gs -q -dNOPAUSE -dBATCH -dSAFER -dPDFA=2 -dPDFACompatibilityPolicy=1 -dSimulateOverprint=true -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSubsetFonts=true -dAutoRotatePages=/None -dColorImageDownsampleType=/Bicubic -dColorImageResolution=150 -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=150 -dMonoImageDownsampleType=/Bicubic -dMonoImageResolution=15 -sOutputFile=./output.pdf ./input.pdf

awsom82 /
Created Feb 28, 2019
pdf optimisation
gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -dPDFSETTINGS=/-"screen" -dCompatibilityLevel=1.4 -sOutputFile="mel.pdf" "mel.pdf"
awsom82 /
Created Sep 22, 2016
Docker: Remove all images and containers
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)

Keybase proof

I hereby claim:

  • I am awsom82 on github.
  • I am awsom82 ( on keybase.
  • I have a public key whose fingerprint is 2B59 BDCD D826 5395 D43C D669 1795 4546 78EE E96F

To claim this, I am signing this object:

You can’t perform that action at this time.