Skip to content

Instantly share code, notes, and snippets.

View htr3n's full-sized avatar

Alex T. htr3n

View GitHub Profile

Find & Copy

find /path/to/find -name '*.txt' -exec cp {} /new/path \;

  Find & Handling Spaces in File Names

find . -print0 | xargs -0 
@htr3n
htr3n / tex.md
Last active January 19, 2018 08:42

(La)TeX Dev Notes

Converting PDF file to a certain compatibility level

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.10 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=new_file.pdf old_file.pdf
@htr3n
htr3n / google-book-search-parameters.txt
Last active January 19, 2018 08:34
Google book search parameters
-inurl:htm -inurl:html intitle:"index of" +("/ebooks") +(pdf|zip) +"wiley"
 
-inurl:htm -inurl:html intitle:"index of" mp3 Iron maiden
 
-inurl:htm -inurl:html intitle:"index of" mp3 Metallica
 
-inurl:htm -inurl:html intitle:"index of" "Last modified" mp3