Skip to content

Instantly share code, notes, and snippets.

View SensibleSalmon's full-sized avatar

Iridian Fenton SensibleSalmon

  • Instacart
  • Toronto
  • 07:03 (UTC -05:00)
View GitHub Profile
@SensibleSalmon
SensibleSalmon / instructions.md
Last active September 27, 2024 22:38
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)
@SensibleSalmon
SensibleSalmon / 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
@SensibleSalmon
SensibleSalmon / 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