Skip to content

Instantly share code, notes, and snippets.

View bocajnotnef's full-sized avatar

Jake Fenton bocajnotnef

  • Middesk, Inc
  • Chicago
View GitHub Profile
@bocajnotnef
bocajnotnef / instructions.md
Last active March 28, 2024 08:17
scripts for converting the 1993 annotated RTF files of "A Fire Upon The Deep" to HTML

source material

You'll need the download of the Hugo 1993 files, available from here. If that link dies, you can scour the original HackerNews post to see if anyone has a mirror, or if there's other helpful files

deps

mac

  • libreoffice installed to the Applications/ dir
  • xmllint I think comes for free?
  • coreutils from brew (e.g. brew install coreutils)
@bocajnotnef
bocajnotnef / namecheap_dynamic_dns_updater.sh
Last active September 22, 2018 02:15
script to update namecheap dynamic dns
#!/usr/bin/env bash
# script to update the dynamic dns address of a namecheap domain
# usage: ./updater.sh <host> <domain> <password>
if [ "$#" -ne 3 ]; then
echo "Illegal number of parameters"
echo "usage: ${0} <host> <domain> <password>"
exit -1
fi
@bocajnotnef
bocajnotnef / index.html
Created March 17, 2017 18:49
Emily Dolson's D3 Demo from ACM 3.16.2017
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id=chart_area>
</div>
<input type="range" name="range" class="slider" id="year_slider" value="2007" min="1952" max="2007" step="5" ><br>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="main.js"></script>
# the next command will create a '50m.ht' and a '50m.tagset',
# representing the de Bruijn graph
scripts/load-graph.py -k 32 -N 4 -x 12e9 25k 25k-casava1_8.fq.bz2
# this will then partition that graph. should take a while.
# update threads to something higher if you have more cores.
# this creates a bunch of files, 50m.subset.*.pmap
scripts/partition-graph.py --threads 4 -s 1e5 25k
# now, merge the pmap files into one big pmap file, 50m.pmap.merged