Skip to content

Instantly share code, notes, and snippets.

@defremov
defremov / crrcsim-hg-pkgbuild-a.diff
Created April 2, 2023 21:40
crrcsim-hg PKGBUILD update for pkgver 0.9.13.r3.1fc598ff00b1-1
View crrcsim-hg-pkgbuild-a.diff
diff -Naru crrcsim-hg/PKGBUILD crrcsim-hg.patched/PKGBUILD
--- crrcsim-hg/PKGBUILD 2017-10-30 12:31:34.000000000 +0300
+++ crrcsim-hg.patched/PKGBUILD 2023-02-17 23:52:43.103406527 +0300
@@ -14,12 +14,12 @@
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/crrcsim/"
license=('GPL')
-depends=('sdl>=1.2.5' 'portaudio' 'libjpeg' 'cgal')
+depends=('sdl>=1.2.5' 'portaudio' 'libjpeg' 'gmp')
groups=()
@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 / 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;
@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