Skip to content

Instantly share code, notes, and snippets.

View jmbarbier's full-sized avatar

Jean-Matthieu BARBIER jmbarbier

View GitHub Profile
@jmbarbier
jmbarbier / HTML2PDF.pl
Created March 15, 2018 01:30 — forked from PhilterPaper/HTML2PDF.pl
Wrapper to add page numbers to TOC and links for wkhtmltopdf processing
# wrapper for wkhtmltopdf and pdftk to update links with actual page numbers
# TOC entries get leader dots and page number . . . NN
# internal links (#id) get [page NN]
# written by Phil M Perry
# (c) copyright 2015, Phil M Perry
# license: GNU Lesser General Public License (LGPL) v3
#
use warnings;
# it's a quick & dirty job that doesn't have many safeguards. use at your own
# risk. anyone is welcome to improve upon it!
@jmbarbier
jmbarbier / nginx.conf
Last active August 29, 2015 14:13 — forked from thoop/nginx.conf
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;