Skip to content

Instantly share code, notes, and snippets.

@cantor
cantor / booklet.sh
Created Sep 16, 2012
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.
View booklet.sh
#!/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 Jul 15, 2017 — forked from thefinn93/README.md
cjdns Init Script (start|stop|restart|status|flush|update|install|delete)
View hyperboria.sh
#!/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.