Skip to content

Instantly share code, notes, and snippets.

@pederkl
pederkl / ddns_nsupdate.sh
Created November 7, 2014 20:51
How to update a dynamic DNS zone in Synology DSM with nsupdate directly, without going through the various web services.
#!/bin/sh
# Copyright (c) 2014, Peder O. Klingenberg
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
@pederkl
pederkl / test-linebreaks.lisp
Last active September 14, 2015 05:10
Example code showing weird word spacing.
(in-package :cl-user)
(asdf:load-system "cl-pdf")
(asdf:load-system "cl-typesetting")
(defun test-linebreaks (&optional (data '("Here is a line with some descriptive text, enough that it needs to linewrap. Which means lots of text if we let it use the entire page width."
"Line with less text, but still seeing weird spacing.")))
(pdf:with-document ()
(pdf:with-page ()
(let* ((lines (tt:compile-text (:font-size 8)