Skip to content

Instantly share code, notes, and snippets.

View terryburton's full-sized avatar

Terry Burton terryburton

View GitHub Profile
@terryburton
terryburton / gist:eb78f283c8aed64444753cb41482e1de
Created August 22, 2016 15:39
FR process debian/control.in in debian/rules
# Add libsystemd-dev to Build-Depends if it is known
ifeq ($(shell apt-cache policy libsystemd-dev &>/dev/null && echo yes),yes)
CONTROL_BUILDDEPS = libsystemd-dev,
endif
...
clean:
...
# Regenerate debian/control file with additional deps

Keybase proof

I hereby claim:

  • I am terryburton on github.
  • I am tez (https://keybase.io/tez) on keybase.
  • I have a public key whose fingerprint is 3E9C 9D19 0755 6BF3 4AB6 0F65 26F4 C4DF AB21 9358

To claim this, I am signing this object:

#! /bin/sh
# load_iptables.sh
#
# Script that uses build_iptables.pl to create a ruleset from files for the
# next two days then load it with iptables-restore.
# Copyright (c) 2009 Terry Burton
#
# http://www.terryburton.co.uk
#!/usr/bin/perl -Tw
# build_iptables.pl domain_list [ domain_list... ]
#
# Create a firewall ruleset in iptables-restore format to create a layer 4 DNS
# proxy using NAT that filters domains from given lists.
# In this example:
# - 123.123.123.158 is the proxy address.
# - 123.123.123.{152,154,156} are the real DNS resolvers.
#! /bin/sh
# gen_domains.sh output_dir
#
# Script to generate sorted lists of rendezvous domains used by the
# conficker.{a,b,c} worm.
#
# Requires:
#
# Downatool2 - http://net.cs.uni-bonn.de/wg/cs/applications/containing-conficker/
pandoc
  --from=markdown_github
  --to=latex
  --filter __pandoc/__rewritewikilinks.hs ②
  --filter __pandoc/__rewritepngtoeps.hs ③
  -M title="Barcode Writer in Pure PostScript"
  -M author="http://bwipp.terryburton.co.uk"
wikidocs
│ (Documentation build system)
├── __pandoc
│   │
│   ├── Makefile ①
│   │
│   │ (Symlink to wiki images directory)
│   │
cd wikidocs
make -f __pandoc/Makefile
cp __pandoc/barcodewriter.pdf ../docs
PANDOC_DIR = __pandoc
PANDOC_TEMPLATE_LATEX = $(PANDOC_DIR)/templates/template.latex
EPS_IMAGES = $(wildcard images/*.eps)
PDF_DOCS  = $(PANDOC_DIR)/barcodewriter.pdf
define MD_FILES =
  ../README.md \
  kb/Quick-Guide.md \
  ../src/README.monolithic \
  ../src/README.resource \
#!/usr/bin/env runhaskell
import Text.Pandoc.JSON
import System.FilePath
main = toJSONFilter rewritepngtoeps
rewritepngtoeps :: Inline -> [Inline]
rewritepngtoeps ( Image txt (url,title) ) = [ ( Image txt (rewritefile url,title) ) ]
rewritepngtoeps x = [x]