ag the silver searcher

  • here

  • usually the_silver_searcher on homebrew

  • preserve color when paging! (This is amazing!)

    ag "search term" --pager "less -R"
    

Faster and more colorful find!

jq

  • command line json parsing
  • here

markdown to pdf

pandoc -f markdown -t latex hello.txt
  • Even --toc, --table-of-contents , --toc-depth=NUMBER , for automatic table of contents.

  • Specifically for double spaced output pdf this stackoverflow tip was amazing, to create a file like options.sty

 \usepackage{setspace}
 \doublespacing
 \usepackage[vmargin=1in,hmargin=1in]{geometry}
 \usepackage{lineno}
 \linenumbers) 

And then use pandoc -H options.sty blah.md -o blah.pdf . Amazing!

pdf for kindle !!

  • Equally as amazing is the k2pdf software which restructures pdf files to comfortable kindle viewing. This is absolutely mind blowing work!