short url to these instructions: caseywatts.com/darken
Other gists & tricks: http://caseywatts.com/gists-and-tricks
- obtain your ugly, gray pdf
brew install imagemagickbrew install ghostscript- magic command!
short url to these instructions: caseywatts.com/darken
Other gists & tricks: http://caseywatts.com/gists-and-tricks
brew install imagemagickbrew install ghostscript| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| #!/bin/bash | |
| usage="Input piped docker-compose logs -t, or a file created from this command, to show logs lines sorted by time.\n\n Usage:\n\n $(basename "$0") [-h|--help] - this message\n $(basename "$0") - runs default docker-compose logs -t and sorts'em\n docker-compose logs -t|$(basename "$0") - pipe logs to this command\n $(basename "$0") my-compose.log - or choose file with logs to display\n\n" | |
| [ $# -ge 1 -a -f "$1" ] && input="$1" || input="-" | |
| case "$1" in | |
| -h|--help) printf "$usage" | |
| exit | |
| ;; | |
| esac | |
| if [ -t 0 ]; then | |
| docker-compose logs -t|sort -t "|" -k +2d |
| #!/bin/bash | |
| # -- Set up environment variables for unattended installation of packages | |
| export DEBIAN_FRONTEND=noninteractive | |
| export DEBIAN_PRIORITY=critical | |
| # -- Update to a newer debian-archive-keyring | |
| aptitude update | |
| aptitude -q -y install debian-archive-keyring |