Skip to content

Instantly share code, notes, and snippets.

@cantor
cantor / booklet.sh
Created September 16, 2012 02:30
This script inputs a pdf file and outputs a pdf file that is in booklet format. You will then be able to print the output file using duplex (both sides of paper) and 2 pages per side. The script is also capable of printing multiple signatures.
#!/bin/bash
# booklet.sh - This script inputs a pdf file and outputs a pdf file that is in booklet
# format. You will then be able to print the output file using duplex
# (both sides of paper) and 2 pages per side. The end result is a printed
# document that can be stapled in the middle and folded so that it may be
# viewed like a book. The script is also capable of printing multiple
# signatures.
#
# This script is licensed under the GPL license v3.
# See https://www.gnu.org/copyleft/gpl.html for more information.
@cantor
cantor / hyperboria.sh
Last active July 15, 2017 12:56 — forked from thefinn93/README.md
cjdns Init Script (start|stop|restart|status|flush|update|install|delete)
#!/bin/sh -e
### BEGIN INIT INFO
# hyperboria.sh - An init script (/etc/init.d/) for cjdns
# Provides: cjdroute
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Cjdns router
# Description: A routing engine designed for security, scalability, speed and ease of use.