Skip to content

Instantly share code, notes, and snippets.

View W5ALC's full-sized avatar

Jon Poindexter W5ALC

  • Pueblo, Colorado USA
View GitHub Profile
@W5ALC
W5ALC / bashrc
Created February 22, 2023 00:30 — forked from mhoffman/bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# .see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If running non interactively, do nothing
########################################################
#|# Preamble #
########################################################
[ -z "$PS1" ] && return
@W5ALC
W5ALC / gs-resample.sh
Created February 22, 2023 00:21 — forked from lkraider/gs-resample.sh
Ghostscript PDF quality downsample
#!/bin/sh
# It seems it's very hard to set resample output quality with Ghostscript.
# So instead rely on `prepress` preset parameter to select a good /QFactor
# and override the options we don't want from there.
gs \
-o resampled.pdf \
-sDEVICE=pdfwrite \
-dPDFSETTINGS=/prepress \