This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Things to keep in mind: | |
## | |
## Choose the name of your user account wisely to avoid the hassle of renaming it. | |
## I suggest something generic like "nixos" | |
## | |
## If you don't run a desktop environment it will probably be hard to do stuff like mount internal disks | |
## unless you start a policykit authentication agent - see https://wiki.archlinux.org/title/Polkit | |
## Todo: confirm Nixos doesn't start one by default | |
## | |
## Nix language reference https://nixos.wiki/wiki/Nix_by_example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |