Skip to content

Instantly share code, notes, and snippets.

@AlisterH
AlisterH / gjoinpdf
Last active December 6, 2022 09:53
gtkdialog gui for Puppy Linux to recursively find and combine pdf files
#! /bin/bash
# gjoinpdf: gtkdialog gui for Puppy Linux to recursively find and combine pdf files.
# Requires qpdf (or pdfunite from poppler, or gs) and basename.
# See joinpdf for command-line only version.
# Version 7 by disciple, 06/12/2022.
# http://www.murga-linux.com/puppy/viewtopic.php?p=149208#149208
# Currently has NO ERROR HANDLING for the actual join operation.
# You may experience errors if you have pdfs that are corrupted.
# The use of all those symlinks is an ugly hack from when I couldn't get gs to join files with spaces in the path otherwise :(
# Maybe we should fix it if we aren't using gs anymore!
@AlisterH
AlisterH / joinpdf
Last active December 14, 2022 03:11
script for Puppy Linux to recursively find and combine pdf files
#! /bin/bash
# joinpdf: script for Puppy Linux to recursively find and combine pdf files.
# Required: basename and qpdf.
# Also: which, realpath, file and gawk (any awk would work)
# Recommended: natsort
# Command line only version. See gjoinpdf for gui version.
# Version 9 by disciple, 14/12/2022.
# Switched back to processing each file with qpdf in a separate thread before merging - generally faster on a multiprocessor machine, but will be slower with some files than just using pdfunite.
# Sejda may be better, but will generate larger files in some cases, and requires java.
# http://www.murga-linux.com/puppy/viewtopic.php?p=149208#149208
@AlisterH
AlisterH / GIS notes
Last active December 17, 2017 22:38
gdalbuildvrt:
- use the raster menu, not the processing toolbox as it doesn't allow custom options!
- use either -vrtnodata 255 or -addalpha
Note that if you use addalpha you can't convert the result to a tiff with jpeg compression
gdalwarp:
- if using JPEG compression, use -ot=Byte
- use tiled output
- generate a world file
- for better JPEG compression, use -co PHOTOMETRIC=YCBCR
# ignore file permission changes
git config core.filemode false
http://joaquin.windmuller.ca/2011/11/16/selectively-select-changes-to-commit-with-git-or-imma-edit-your-hunk
https://web.archive.org/web/20170630184446/http://www.naleid.com/blog/2012/01/12/how-to-use-kdiff3-as-a-3-way-merge-tool-with-mercurial-git-and-tower-app/
http://blog.wuwon.id.au/2010/09/painless-merge-conflict-resolution-in.html
C:\Users\alistair\AppData\Roaming\PulseAudio\bin\pulseaudio.exe --exit-idle-time=-1 -vvvv
I: [(null)] pulsecore/core-util.c: Successfully gained high priority class.
I: [(null)] daemon/main.c: This is PulseAudio 1.1
D: [(null)] daemon/main.c: Compilation host: i686-w64-mingw32
D: [(null)] daemon/main.c: Compilation CFLAGS: -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -W -Wextra -Wno-long-long -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: [(null)] daemon/main.c: Running on host: Windows 6.2 (9200)
D: [(null)] daemon/main.c: Found 1 CPUs.
I: [(null)