Skip to content

Instantly share code, notes, and snippets.

@defremov
defremov / Makefile
Last active June 1, 2022 18:46
Convert raster images of Slazav's map series (https://slazav.xyz/maps/podm.htm) to Garmin JNX format files
View Makefile
.SUFFIXES:
map_files := $(wildcard *.map)
jnx_files := $(map_files:%.map=%.jnx)
.PHONY: all
all: $(jnx_files)
%.jnx: %.png %.map
bash slazav2jnx.sh $^ $@
@defremov
defremov / load-color-profile.sh
Last active June 21, 2020 08:56
Load default color profiles for all currently active displays
View load-color-profile.sh
#! /usr/bin/env bash
set -Eeuo pipefail
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
APP_TITLE='Load Color Profile'
PROGNAME="${0##*/}"
@defremov
defremov / PKGBUILD
Last active June 14, 2020 03:42
Arch Linux PKGBUILD for dcpTool 1.9.0
View PKGBUILD
# Maintainer: Dmitry Efremov defremovАТahaDОТru
# In order to build this package you need to manually download
# the Adobe XMP SDK source archive (XMP-Toolkit-SDK-CC201607.zip) from:
#
# https://www.adobe.com/devnet/xmp.html
#
# and the Adobe DNG SDK source archive (dng_sdk_1_5_1.zip) from:
#
# https://www.adobe.com/support/downloads/dng/dng_sdk.html
@defremov
defremov / foo2hbpl1.c.print-quality.patch
Last active October 10, 2021 20:10
Add print quality settings to foo2hbpl1 driver for HBPL1 printers, http://www.dechifro.org/hbpl/
View foo2hbpl1.c.print-quality.patch
diff --git a/foo2hbpl1.c b/foo2hbpl1.c
index fb4f448..d0ad6cd 100644
--- a/foo2hbpl1.c
+++ b/foo2hbpl1.c
@@ -52,11 +52,38 @@ static char Version[] = "$Id: foo2hbpl1.c,v 1.3 2014/03/30 05:08:32 rick Exp $";
/*
* Command line options
*/
-int MediaCode = 0;
+char *ClutFilePath = NULL;