Skip to content

Instantly share code, notes, and snippets.

View nravic's full-sized avatar

Niranjan Ravichandra nravic

View GitHub Profile

Keybase proof

I hereby claim:

  • I am nravic on github.
  • I am nravic (https://keybase.io/nravic) on keybase.
  • I have a public key whose fingerprint is 2C2A C0FE FA01 CAB0 BD1C 6C5F 22B1 1775 5B97 E4F4

To claim this, I am signing this object:

@nravic
nravic / html2pdf.sh
Last active July 14, 2016 16:21
wkhtmltopdf wrapper for downloading entire websites and saving 'em as pdfs
#wkhtmltopdf wrapper for multiple html input and other oddities
#requires wkhtmltopdf with patched QT library
#!bin/bash
echo "Enter webpage url to download and save as pdf, followed by [ENTER]:"
read url
echo "Enter name to save pdf as, followed by [ENTER]:"
read output
wget -r --no-parent -P temp_dir/ $url && cd "$_" > /dev/null 2&>1
temp=""