Skip to content

Instantly share code, notes, and snippets.

Terry Burton terryburton

Block or report user

Report or block terryburton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@terryburton
terryburton / gist:eb78f283c8aed64444753cb41482e1de
Created Aug 22, 2016
FR process debian/control.in in debian/rules
View gist:eb78f283c8aed64444753cb41482e1de
# 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
View keybase.md

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:

View load_iptables.sh
#! /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
View build_iptables.pl
#!/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.
View gen_domains.sh
#! /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/
View gist:d3cc32a014e4cabd352d
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"
View gist:398f1b4c461e3d9f85c4
wikidocs
│ (Documentation build system)
├── __pandoc
│   │
│   ├── Makefile ①
│   │
│   │ (Symlink to wiki images directory)
│   │
View gist:510601fddd4706a01544
cd wikidocs
make -f __pandoc/Makefile
cp __pandoc/barcodewriter.pdf ../docs
View Makefile
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 \
View rewritepngtoeps.hs
#!/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]
You can’t perform that action at this time.