Mike Gerwitz

Free Software Hacker+Activist

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Gerwitz <mtg@gnu.org>2019-01-08 00:11:20 -0500
committerMike Gerwitz <mtg@gnu.org>2019-01-11 23:46:13 -0500
commitb182ea79b3a7ac07f673870edab1bd3d6074c618 (patch)
tree3ce02ad905ace0498829d52b4b223790b9d63266 /src
parent643a9858f125e2fc2c4557a9c0d706b72c09259a (diff)
downloadthoughts-b182ea79b3a7ac07f673870edab1bd3d6074c618.zip
thoughts-b182ea79b3a7ac07f673870edab1bd3d6074c618.tar.gz
thoughts-b182ea79b3a7ac07f673870edab1bd3d6074c618.tar.bz2
Majority of work on generation of new static site
I didn't originally intend for all of this to be in a single commit. But here we are. I don't have the time to split these up more cleanly; this project is taking more time than I originally hoped that it would. This is a new static site generator. More information to follow in the near future (hopefully in the form of an article), but repo2html is now removed. See code comments for additional information; I tried to make it suitable as a learning resource for others. It is essentially a set of shell scripts with a fairly robust build for incremental generation. The site has changed drastically, reflecting that its purpose has changed over the years: it is now intended for publishing quality works (or at least I hope), not just a braindump. This retains most of the text of the original pages verbatim, with the exception of the About page. Other pages may have their text modified in commits that follow. Enhancements to follow in future commits.
Diffstat (limited to 'src')
-rw-r--r--src/404.htm20
-rw-r--r--src/about.htm90
-rw-r--r--src/about/githubbub.md126
-rw-r--r--src/about/inside.htm47
-rw-r--r--src/about/resume.html835
-rw-r--r--src/about/resume/.gitignore2
-rw-r--r--src/about/resume/style-print.css42
-rw-r--r--src/about/resume/style.css452
-rw-r--r--src/footer.tpl.htm107
-rwxr-xr-xsrc/h12title43
-rw-r--r--src/header.tpl.htm30
-rwxr-xr-xsrc/index.sh133
-rwxr-xr-xsrc/mkheader53
-rw-r--r--src/pandoc.tpl28
-rw-r--r--src/papers.rec41
-rwxr-xr-xsrc/papers.sh183
-rwxr-xr-xsrc/post2html96
-rwxr-xr-xsrc/post2meta80
-rwxr-xr-xsrc/posts.sh103
-rwxr-xr-xsrc/rss.sh115
-rw-r--r--src/talks.rec81
-rwxr-xr-xsrc/talks.sh101
22 files changed, 2808 insertions, 0 deletions
diff --git a/src/404.htm b/src/404.htm
new file mode 100644
index 0000000..4a1231e
--- /dev/null
+++ b/src/404.htm
@@ -0,0 +1,20 @@
+<article>
+ <h1>Page Not Found</h1>
+
+ <p>
+ Sorry&nbsp;the page you requested cannot be found; it may have been removed
+ or you may have stumbled across a broken link. If you believe that you
+ have received this message in error, please contact Mike directly. If
+ you have arrived at this page from an external link, please contact the
+ author of that website instead.
+ </p>
+
+ <p>
+ [This is where one would insert the obligatory &ldquo;we apologize for the
+ inconvenience&rdquo;...but this is a personal site, not a business, so I'm not all
+ that sympathetic. If it's a bug, it'll be fixed. If you think that the page
+ you're looking for should exist (and that it did in the past), consider looking
+ through this site's repository (available on the Projects page) and seeing what
+ might have happened to it. Good day to you, kind sir/madam/otherwise.]
+ </p>
+</article>
diff --git a/src/about.htm b/src/about.htm
new file mode 100644
index 0000000..c8622ef
--- /dev/null
+++ b/src/about.htm
@@ -0,0 +1,90 @@
+<aside class="sm">
+ <img src="/images/me-libreplanet-2016.png"
+ alt="Photo of Mike Gerwitz holding a microphone in front of a blackboard"
+ title="Mike Gerwitz giving LibrePlanet 2016 Talk 'Restore Online Freedom!'"
+ class="inline-img avatar" />
+
+ <p>
+ GPG Fingerprint: <tt>D6E9 B930 028A 6C38 F43B 2388 FEF6 3574 5E6F 6D05</tt>
+ <a href="https://emailselfdefense.fsf.org/">[?]</a>
+ </p>
+ <ul class="links">
+ <li><a href="about/resume">View my résumé/CV.</a></li>
+ </ul>
+</aside>
+
+<article class="abstract">
+ <h1>About</h1>
+
+ <p>
+ I am a <a href="http://www.gnu.org/philosophy/">free (as in
+ freedom) software</a> <a href="https://stallman.org/articles/on-hacking.html">hacker</a>
+ and user freedom activist with a focus on user privacy and security.
+ I am a professional software developer dealing primarily with web development;
+ compiler construction; and software architecture, and have been
+ programming for about twenty years.
+ My other personal interests include mathematics, cryptography,
+ philosophy and ethics, pedagogy, writing, law, and various other fields.
+ I also closely follow the work of
+ the <a href="http://www.gnu.org/philosophy/">Free Software
+ Foundation</a>, <a href="http://eff.org/">Electronic Frontier
+ Foundation</a>, and other entities devoted to free information and free
+ society.
+ </p>
+ <p>
+ I am the author of <a href="https://gnu.org/software/easejs">GNU
+ ease.js</a>;
+ a member of the <a href="https://www.gnu.org/help/evaluation.html">GNU evaluation</a>
+ team;
+ hold an administrative role within GNU;
+ and volunteer for various other aspects of
+ the <a href="https://gnu.org/">GNU Project</a> and
+ the <a href="https://fsf.org/">Free Software Foundation</a>.
+ </p>
+ <p>
+ I am a <a href="https://stallman.org/articles/on-hacking.html">hacker</a>,
+ not a <a href="https://stallman.org/articles/on-hacking.html">cracker</a>&mdash;the
+ latter breaks the security of systems, while the former expresses playful
+ creativity in their work.
+ </p>
+ <p>
+ Outside of my field,
+ I enjoy time with my family&mdash;including my wife and two
+ sons&mdash;who
+ keep me very busy and help to keep me sane.
+ I also have a fascination with a wide range of sciences that I wish I had
+ the time to devote to researching.
+ </p>
+ <p>
+ Much of this site is devoted to my thoughts and ramblings on various
+ matters and so will contain material that is subject to strong bias;
+ you are encouraged to construct your own opinions.
+ Formal papers contain no such influence without rationale and references.
+ </p>
+ <p>
+ I may be contacted at mtg at gnu dot org.
+ I do not make use of &ldquo;social media&rdquo; websites,
+ though I may (or may not) respond to queries on websites that I am a
+ member of,
+ and I do host my <a href="https://social.mikegerwitz.com/">own GNU
+ Social instance</a>.
+ </p>
+ <p>
+ (Note: This website itself is free/libre&mdash;the source code is
+ available via the commit hash links in the footer of various pages and
+ the content is licensed for free distribution and, in most cases,
+ modification.)
+ </p>
+ <p>
+ I changed GPG keys in October&nbsp;2016;
+ see my <a href="/about/key-transition.txt">key transition statement</a>,
+ signed with both my <a href="/about/key-transition.txt.new.asc">new</a>
+ and <a href="/about/key-transition.txt.old.asc">old</a> keys.
+ </p>
+ <p>
+ <span class="attribution"><a href="https://media.libreplanet.org/u/libreplanet/m/session-03-c-ms-png-libreplanet-2016-sessions-ec00/">LibrePlanet
+ 2016 Photo</a> Copyright&nbsp;©&nbsp;2016 Kori&nbsp;Feener,
+ <a href="https://creativecommons.org/licenses/by/4.0/">CC&nbsp;BY&nbsp;4.0</a>;
+ used with permission.</span>
+ </p>
+</article>
diff --git a/src/about/githubbub.md b/src/about/githubbub.md
new file mode 100644
index 0000000..9893929
--- /dev/null
+++ b/src/about/githubbub.md
@@ -0,0 +1,126 @@
+# GitHubbub! GitHub Does Not Value Software Freedom.
+
+<div class="inline-img octoflop">
+ ![GitHub](/images/octoright-large.png "GitHub logo rotated 270° to resemble a Copyright symbol")\
+</div>
+
+If you hit this page expecting to have been taken to my GitHub profile,
+ then this is probably not what you were looking for;
+ but let me tell you why you're here.
+
+Before providing a link to something hosted on a service,
+ it is important to consider whether the service or website is antithetical
+ to the message you are trying to convey to your readers/visitors,
+ and whether it deserves clarification;
+ there's a little bit of both here.
+
+If you're looking for a host friendly toward free software,
+ take a look at the [GNU ethical repository criteria][gnu-repo],
+ which sets standards for acceptable hosts to parts of the
+ [GNU operating system][gnu].
+
+
+## Non-Free JavaScript
+[Free software][freesw] guarantees your freedom to study,
+ modify,
+ and share the software that you use.
+We value these freedoms on the desktop,
+ so why should we compromise when websites serve proprietary JavaScript
+ [just because it creates the illusion of remote execution][whyfreejs]?
+When you visit a website that serves JavaScript to the client,
+ your web browser is automatically [downloading and executing][jstrap]
+ (often without your permission) ephemeral, unsigned, untrusted software.
+If that JavaScript is not [freely licensed][librejs],
+ then the software running in your web browser is proprietary.
+
+**When you visit `github.com`,
+ you download over 200kB of obfuscated code,
+ much of which is proprietary.**
+This code provides many website features that are fairly essential,
+ and *do not work with JavaScript disabled*:
+
+- Change repository names or descriptions;
+- Delete repositories;
+- Add an SSH key to your account;
+- Fork repositories;
+- Create pull requests;
+- Enable and disable project features;
+- Use the wiki and issue trackers;
+- View graphs of statistics;
+- And others.
+
+That is---GitHub forces you to run proprietary software in order to use much
+ of their website.
+This is a bit startling for a host that owes its very existence to the
+ success and development of free software.
+
+## Desire To Remain Non-Free
+I contacted GitHub back in April 2014 pointing out these concerns and
+ asking if they would be able to either liberate their JavaScript or make
+ GitHub's essential functionality work without JavaScript enabled.
+The first response I received was from one of their "JavaScript Developers":
+
+> Hi Mike,
+>
+> Thanks for getting in touch with us here. Some of our internal projects are
+> specific to running GitHub, and as such will probably remain closed. We do
+> make an effort to open source projects that we create that we think would be
+> beneficial to the community, some of which is JavaScript.
+>
+> You can see a list of some of the open source projects that power GitHub
+> here:
+>
+> https://github.com/showcases/projects-that-power-github
+
+This response is unfortunately misguided---yes,
+ it is good that GitHub produces free software,
+ but it is a false assumption that their proprietary code would serve no
+ benefit to the community:
+ the very existence of their proprietary software [gives them unjust
+ control over their users][unjust];
+ relinquishing that control is of benefit to the community.
+
+I replied to the above message to clarify my point.
+After receiving no response,
+ I forwarded the e-mail to GitHub's original founders:
+ [Tom Preston-Werner][tom],
+ [Chris Wanstrath][chris],
+ and [PJ Hyett][pj].
+The response I received from Chris was blunt and discouraging:
+
+> Hey Mike,
+>
+> We have no plans to release github.com's JavaScript as free software at
+> this time, nor do we have plans to remove the site's dependence on
+> JavaScript. Thanks for the interest.
+
+The original correspondence is provided here:
+
+1. [Original request][gh-request] to `support@github.com`, Tom, Chris, and
+ PJ.
+2. [Reply to my original request][gh-request-reply] from one of the developers.
+3. [My reply to the developer][gh-request2] providing more information and
+ asking for a commitment.
+4. [Forward of my reply][gh-request3] to Tom, Chris, and PJ, after having
+ received no response from the developer.
+5. [Response from Chris Wanstrath][gh-request3-reply] stating that GitHub
+ has "no plans" to liberate its JavaScript or "remove the site's
+ dependence on JavaScript".
+
+
+[gnu-repo]: https://www.gnu.org/software/repo-criteria.html
+[gnu]: https://www.gnu.org/gnu/gnu.html
+[freesw]: https://www.gnu.org/philosophy/free-sw.html
+[whyfreejs]: https://www.gnu.org/software/easejs/whyfreejs.html
+[jstrap]: https://www.gnu.org/philosophy/javascript-trap.html
+[librejs]: https://www.gnu.org/software/librejs/free-your-javascript.html
+[unjust]: https://www.gnu.org/philosophy/free-software-even-more-important.html
+[tom]: https://github.com/mojombo
+[chris]: https://github.com/defunkt
+[pj]: https://github.com/pjhyett
+
+[gh-request]: /docs/gh/email-request.txt
+[gh-request-reply]: /docs/gh/email-request-reply.txt
+[gh-request2]: /docs/gh/email-request2.txt
+[gh-request3]: /docs/gh/email-request3.txt
+[gh-request3-reply]: /docs/gh/email-request3-reply.txt
diff --git a/src/about/inside.htm b/src/about/inside.htm
new file mode 100644
index 0000000..6a815da
--- /dev/null
+++ b/src/about/inside.htm
@@ -0,0 +1,47 @@
+<article>
+ <h1>GNU/Linux Inside</h1>
+
+ <img src="/images/heckert-gnu.png" alt="A Big GNU Head"
+ title="GNU" />
+
+ <p>
+ This website and the server on which it is hosted is run entirely
+ by <a href="https://www.gnu.org/philosophy/">free software</a>.
+ </p>
+ <p>
+ Do you use GNU/Linux or other free software on your website? Flaunt it!
+ Feel free to place the image below on your own website, blog, or
+ anywhere else you see fit to let others know that you support GNU and
+ free software.
+ </p>
+ <p>
+ This image also helps to bring awareness to
+ the <a href="https://www.gnu.org/">GNU operating system</a> as well as
+ <a href="https://www.gnu.org/philosophy/">GNU’s philosophy</a>. The
+ majority of users today consider the operating system to be called
+ &ldquo;Linux&rdquo;, which is false—this is the name of the kernel;
+ <a href="http://www.gnu.org/gnu/linux-and-gnu.html">GNU is the operating
+ system</a>.
+ </p>
+ <p>
+ <em>The page fold is transparent</em>; it will therefore work well with
+ any background color. Please note that this is a PNG with
+ alphatransparency—older browsers that users shouldn’t be using anymore
+ (such as IE 6) will not render it properly unless you take the necessary
+ precautions.
+ </p>
+ <p>
+ <img src="/images/gnu-inside.png" alt="GNU/Linux Inside Page Fold"
+ title="GNU/Linux Inside!">
+ </p>
+ <p>
+ Feel free
+ to <a href="https://www.gnu.org/graphics/gnu-inside.html">download the
+ source file (GIMP)</a>, released under
+ the <a href="https://creativecommons.org/licenses/by-sa/2.0/">Creative
+ Commons Attribution-ShareAlike 2.0 Unported License</a>. It
+ incorporates <a href="https://www.gnu.org/graphics/heckert_gnu.html">``A
+ Bold GNU Head’’</a> by Aurelio A. Heckert, which appears at the top of
+ this page.
+ </p>
+</article>
diff --git a/src/about/resume.html b/src/about/resume.html
new file mode 100644
index 0000000..1da2d19
--- /dev/null
+++ b/src/about/resume.html
@@ -0,0 +1,835 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Mike Gerwitz&mdash;Résumé</title>
+ <link rel="stylesheet" href="resume/style.css" type="text/css" />
+ <link rel="stylesheet" href="resume/style-print.css" type="text/css" media="print" />
+ <meta charset="utf-8" />
+ <meta name="viewport" content="initial-scale=1.0" />
+ </head>
+ <body>
+ <div id="header">
+ <div class="leftcol">
+ <h1 class="name">Michael T. Gerwitz</h1>
+ <h2 class="name-subline">
+ <a href="http://gnu.org/philosophy/free-sw.html">Free Software</a>
+ Hacker+Activist
+ </h2>
+ </div>
+ <div id="infobox">
+ <address>
+ <span class="street-address">
+ 26 Culpepper Rd.<br />
+ Williamsville, NY, 14221
+ </span>
+ </address>
+ <dl class="contact">
+ <dt>E-mail:</dt>
+ <dd>
+ <a href="mailto:mike@mikegerwitz.com">mike@mikegerwitz.com</a>
+ </dd>
+ <dt>Website:</dt>
+ <dd>
+ <a href="https://mikegerwitz.com/">https://mikegerwitz.com/</a>
+ </dd>
+ <dt>Phone:</dt>
+ <dd>
+ <span class="nocss">
+ My phone number is obscured using CSS as a precaution against
+ scrapers.
+ Since you're not using a stylesheet,
+ simply reverse this string: 09299096171.
+ Ignore the garbage that follows:
+ </span>
+ +1 <div class="phone">9<span class="phony">76</span>80</div>
+ </dd>
+ <dt>GPG:</dt>
+ <dd>
+ <tt>D6E9 B930 028A 6C38 F43B</tt><br />
+ <tt>2388 FEF6 3574 5E6F 6D05</tt>
+ </dd>
+ </dl>
+ </div>
+ <ul class="links">
+ <li>
+ <a href="https://gitlab.com/u/mikegerwitz">
+ <img src="/images/gitlab.svg"
+ width="42" height="42"
+ alt="See me on Gitlab"
+ title="See me on Gitlab" />
+ </a>
+ </li>
+ <li>
+ <a href="/about/githubbub">
+ <img src="/images/octoright-42.png"
+ width="42" height="42"
+ alt="Don't see me on GitHub"
+ title="Don't see me on GitHub" />
+ </a>
+ </li>
+ <li>
+ <a href="https://savannah.gnu.org/users/mikegerwitz">
+ <img src="/images/meditate-42.png"
+ width="42" height="42"
+ alt="See me on Savannah"
+ title="See me on Savannah" />
+ </a>
+ </li>
+ <li>
+ <a href="https://news.ycombinator.com/user?id=mikegerwitz"
+ title="mikegerwitz on Hacker News"
+ class="hn-icon">HN</a>
+ </li>
+ <li>
+ <a href="https://www.fsf.org/register_form?referrer=5804">
+ <img src="/images/fsf-42.png"
+ width="42" height="42"
+ alt="FSF Member #5804"
+ title="FSF Member #5804"
+ />
+ </a>
+ </li>
+ <li>
+ <a href="https://www.eff.org/">
+ <img src="/images/eff-42.png"
+ width="42" height="42"
+ alt="EFF Member"
+ title="EFF Member"
+ />
+ </a>
+ </li>
+ </ul>
+ </div>
+ <div class="clear head">&nbsp;</div>
+
+ <div id="content">
+ <section id="objective">
+ <h2>Objective</h2>
+ <p>
+ Full-time software developer with a passionate team of
+ hackers that <a href="https://gnu.org/philosophy/free-sw.html">respect
+ users' freedoms</a>, strive to innovate, and embrace
+ challenge. Looking to at some point transition into an educator
+ and/or research role in any of my areas of expertise.
+ </p>
+ </section>
+
+ <section id="summary">
+ <h2>Summary</h2>
+ <p>
+ I am a self-driven and passionate hacker with over eighteen years'
+ experience in various areas of software development. I&nbsp;am
+ a <a href="https://gnu.org/philosophy/free-sw.html">free
+ software</a> activist with a focus on user&nbsp;privacy and
+ security; a volunteer and maintainer for
+ the <a href="https://gnu.org">GNU Project</a>; and both author and
+ contributor to various free software projects. I&nbsp;seek an
+ innovative team of hackers that are passionate about their work
+ and will challenge my wide range of skills. A&nbsp;prospective
+ employer must be willing to use and write
+ <a data-print="true"
+ href="https://gnu.org/philosophy/free-sw.html">free software</a>,
+ and be positive toward software freedom and the free software
+ movement. I am also interested in academic/research settings as
+ both a hacker and as an&nbsp;educator.
+ </p>
+ </section>
+
+ <section id="experience">
+ <h2>Experience</h2>
+ <dl id="experience">
+ <dt>R-T Specialty, LLC Buffalo (formerly LoVullo Associates, Inc.)</dt>
+ <dd class="period">March 2009&ndash;Present</dd>
+ <dd class="desc">
+ Designs, develops, and maintains web applications; application
+ frameworks; server software; and compilers for domain-specific
+ languages (DSLs) for an Excess and Surplus Lines Insurance
+ Agency. Most work involves developing complex online raters to provide
+ comparative insurance quotes; integrating and automating various
+ systems; and providing a suite of development tools and DSLs to
+ support those systems. Holds a team lead role and is
+ responsible for developer training and knowledge transfer
+ through design discussions, documentation, peer programming, and
+ code review. Involved in every aspect of the development
+ process and many decisions regarding the technical direction of
+ the organization.
+ </dd>
+ <dd class="desc">
+ A number of projects written for my employer have
+ been <a data-print="true" href="https://github.com/lovullo"
+ title="LoVullo Associates on GitHub">released as free
+ software</a>.
+ </dd>
+ <dd class="desc">
+ <ul class="lang detail-list">
+ <li>Ant</li>
+ <li>Autotools (Autoconf, Automake)</li>
+ <li>AWK (Gawk)</li>
+ <li>CSS&nbsp;3</li>
+ <li>Docker</li>
+ <li>ease.js</li>
+ <li>GitLab&nbsp;(self-hosted)</li>
+ <li>Git</li>
+ <li>GNU Emacs</li>
+ <li>GNU/Linux</li>
+ <li>HTML&nbsp;5</li>
+ <li>Java</li>
+ <li>JavaScript (ECMAScript&nbsp;3&ndash;8)</li>
+ <li>M4</li>
+ <li>Memcached</li>
+ <li>MongoDB</li>
+ <li>MSSQL</li>
+ <li>Node.js</li>
+ <li>PHP&nbsp;(4&ndash;7)</li>
+ <li>Sed</li>
+ <li>Shell&nbsp;(POSIX, Bash)</li>
+ <li>SQL Anywhere</li>
+ <li>Symfony</li>
+ <li>Texinfo</li>
+ <li>TeX&nbsp(Plain, LaTeX2e)</li>
+ <li>Vim</li>
+ <li>XSLT&nbsp;(1&ndash;2)</li>
+ </ul>
+ </dd>
+
+ <dt>Freelance Web Developer</dt>
+ <dd class="period">March 2006&ndash;March 2009</dd>
+ <dd class="desc">
+ Worked as a freelance web developer primarily through vWorker
+ (previously RentACoder) with a 10/10 rating, ranked higher than 99% of
+ all other developers.
+ </dd>
+ </dl>
+ </section>
+
+ <section id="projects">
+ <h2>Projects</h2>
+ <p class="nopgbrk">
+ Listed here are both my own projects and those to which I have
+ made notable contributions.
+ I have many miscellaneous projects and scripts that are not
+ listed here; see my
+ <a data-print="true"
+ href="https://mikegerwitz.com/projects">Projects page</a>
+ for a full list.
+ </p>
+ <dl data-print-links="true">
+ <dt><a href="https://gnu.org/s/easejs">GNU ease.js</a></dt>
+ <dd class="period">November 2010&ndash;Present</dd>
+ <dd class="type">Author</dd>
+ <dd class="desc">
+ A Classical Object-Oriented framework for JavaScript, intended to
+ eliminate boilerplate code and &ldquo;ease&rdquo; the transition
+ into JavaScript from other Object-Oriented languages. Features
+ include simple and intuitive class definitions; classical
+ inheritance; abstract classes and methods; interfaces; access
+ modifiers; static and constant members; and traits as
+ mixins. Became a GNU project in December of 2013.
+ </dd>
+ <dd class="desc">
+ GNU ease.js
+ <a href="https://www.gnu.org/software/easejs/manual/About.html">was
+ created</a> as a personal project to simplify development of a
+ project at LoVullo Associates, and supports ECMAScript 3 browsers
+ (as far back is IE
+ 5.5). <a href="https://www.gnu.org/software/easejs/manual/Implementation-Details.html">Implementation
+ details and rationale</a> are documented extensively in the manual
+ and comprehensive test cases. See
+ also my paper <a href="http://mikegerwitz.com/papers/coope"
+ class="title">Classifical Object-Oriented Programming with
+ ECMAScript</a>. Copyright has been assigned to the Free Software
+ Foundation.
+ </dd>
+ <dd class="desc">
+ <ul class="lang detail-list">
+ <li>JavaScript (ECMAScript 3, ECMAScript 5)</li>
+ <li>Shell (POSIX, Bash)</li>
+ <li>Autotools (Autoconf, Automake)</li>
+ <li>Texinfo</li>
+ <li>AWK</li>
+ <li>Sed</li>
+ <li>LibreJS-Compatible</li>
+ </ul>
+ </dd>
+
+ <dt><a href="https://mikegerwitz.com/projects/liza/">Liza Data
+ Collection Framework</a>
+ </dt>
+ <dd class="period">2010&ndash;Present</dd>
+ <dd class="type">Author</dd>
+ <dd class="desc">
+ Data collection and processing framework developed at LoVullo
+ Associates to handle hundreds of complex conditional inputs for
+ even more complex comparative rating systems.
+ It contains a powerful type and validation system and
+ controls inputs via predicates over a&nbsp;complex graph of
+ classifications.
+ Programs are defined using a declarative DSL which compiles into
+ JavaScript,
+ drastically simplifying development and maintenance.
+ The&nbsp;client is a web application which integrates and shares code
+ with a RESTful server.
+ It also contains its own tools for debugging and introspection.
+ </dd>
+ <dd class="desc">
+ This project integrates tightly with TAME for its classification
+ system.
+ </dd>
+ <dd class="desc">
+ <ul class="lang detail-list">
+ <li>JavaScript (ECMAScript 2016)</li>
+ <li>Node.js</li>
+ <li>XSLT 2</li>
+ <li>Shell (Bash)</li>
+ <li>Autotools (Autoconf, Automake)</li>
+ </ul>
+ </dd>
+
+ <dt><a href="https://mikegerwitz.com/projects/tame/">TAME</a>
+ </dt>
+ <dd class="period">2012&ndash;Present</dd>
+ <dd class="type">Author</dd>
+ <dd class="desc">
+ This system was developed at LoVullo Associates to handle the
+ complexity of comparative insurance rating systems.
+ It is a domain-specific language&nbsp;(DSL) that itself
+ encourages,
+ through the use of templates,
+ the creation of sub-DSLs.
+ TAME processes only numerical input and output,
+ driven by higher-order predicates.
+ Calculations and predicates are written declaratively without
+ regard for order of execution.
+ The system has powerful dependency resolution and data flow
+ analysis capabilities.
+ </dd>
+ <dd class="desc">
+ TAME consists of a macro processor (implementing a metalanguage),
+ numerous compilers for various targets
+ (JavaScript, HTML documentation and debugging environment,
+ LaTeX, dependency graph output, and others),
+ linkers,
+ and supporting tools.
+ The input grammar is XML,
+ and the majority of the project
+ (including the macro processor, compilers, and linkers)
+ is written in XSLT.
+ </dd>
+ <dd class="desc">
+ <ul class="lang detail-list">
+ <li>XSLT 2</li>
+ <li>JavaScript (ECMAScript 2016)</li>
+ <li>AWK</li>
+ <li>Sed</li>
+ <li>Shell (Bash)</li>
+ <li>PHP</li>
+ <li>Autotools (Autoconf, Automake)</li>
+ </ul>
+ </dd>
+
+ <dt><a href="https://gnu.org/s/guix">GNU Guix</a></dt>
+ <dd class="period">October 2016&ndash;Present</dd>
+ <dd class="type">Contributor</dd>
+ <dd class="desc">
+ Improvements to <tt>guix environment</tt> container
+ support; package contributions.
+ </dd>
+ <dd class="desc">
+ <ul class="lang detail-list">
+ <li>Guile Scheme</li>
+ <li>Shell</li>
+ </ul>
+ </dd>
+
+ <dt><a href="https://gnu.org/s/screen">GNU Screen</a></dt>
+ <dd class="period">November 2013&ndash;July 2015</dd>
+ <dd class="type">Contributor</dd>
+ <dd class="desc">
+ Refactoring and cleanup of window message system and related code;
+ creation of supporting abstractions; introduced unit
+ tests.
+ </dd>
+ <dd class="desc">
+ This began as a cooperative effort between myself and Amadeusz
+ Sławiński to resurrect the stalled development of GNU
+ Screen. Amadeusz is now a co-maintainer of the project and
+ <a href="http://git.savannah.gnu.org/cgit/screen.git/log/?qt=author&amp;q=Mike+Gerwitz">my
+ changes have been merged upstream</a>.
+ </dd>
+ <dd class="desc">
+ <ul class="lang detail-list">
+ <li>C (ANSI C, C11)</li>
+ <li>GDB</li>
+ <li>GNU Make</li>
+ <li>Gnulib (Test Headers)</li>
+ </ul>
+ </dd>
+ </dl>
+ </section>
+
+ <section id="articles">
+ <h2>Articles, Talks, and Publications</h2>
+ <p>
+ I am an avid technical writer and activist; my writings are
+ available
+ <a data-print="true" href="http://mikegerwitz.com/papers">on my
+ personal website</a>. This section highlights the most
+ notable. <span class="print-only">Direct links are provided in the
+ online version of this résumé.</span>
+ </p>
+
+ <dl>
+ <dt>
+ <a href="https://mikegerwitz.com/talks">
+ The Ethics Void</a></dt>
+ <dd class="period">March 2018</dd>
+ <dd class="desc">
+ My talk
+ at <a href="https://libreplanet.org/2018/">LibrePlanet&nbsp;2018</a>
+ focusing on the lack of ethical consideration in software and technology.
+ </dd>
+
+ <dt>
+ <a href="https://mikegerwitz.com/talks">
+ The Surreptitious Assault On Privacy, Security, and Freedom</a></dt>
+ <dd class="period">March 2017</dd>
+ <dd class="desc">
+ My talk
+ at <a href="https://libreplanet.org/2017/">LibrePlanet&nbsp;2017</a>
+ surveying some of the most pressing privacy and security concerns
+ of today, with nearly 130&nbsp;references.
+ </dd>
+
+ <dt>
+ <a href="https://mikegerwitz.com/talks">
+ Restore Online Freedom!</a></dt>
+ <dd class="period">March 2016</dd>
+ <dd class="desc">
+ My talk
+ at <a href="https://libreplanet.org/2016/">LibrePlanet&nbsp;2016</a>
+ about privacy, surveillance, and freedom on the&nbsp;Web.
+ </dd>
+
+ <dt>
+ <a href="https://about.gitlab.com/2015/05/20/gitlab-gitorious-free-software/">
+ Gitlab, Gitorious, and Free Software</a></dt>
+ <dd class="period">May 2015</dd>
+ <dd class="desc">
+ Guest post written at the request of GitLab B.V. CEO Sytse
+ Sijbrandij to both explain the controversy surrounding GitLab's
+ acquisition of Gitorious, and to celebrate our joint effort to
+ license all of GibLab EE's JavaScript code&mdash;and any code that
+ generates it&mdash;as free software.
+ </dd>
+
+ <dt>
+ <a href="http://mikegerwitz.com/2013/06/National-Uproar-A-Comprehensive-Overview-of-the-NSA-Leaks-and-Revelations">
+ National Uproar: A Comprehensive Overview of the NSA Leaks and Revelations</a></dt>
+ <dd class="period">June 2013</dd>
+ <dd class="desc">
+ An extensive article with over sixty references written just after
+ the Guardian released the Verizon Order for the collection of
+ telephone metadata, acquired by the now-known Edward
+ Snowden. Maintained first or second ranking on Google for the
+ search term &ldquo;NSA leak summary&rdquo; for days, and to this
+ day is still within the top fifteen search results.
+ </dd>
+
+ <dt>
+ <a href="http://mikegerwitz.com/papers/git-horror-story">
+ A Git Horror Story: Repository Integrity With Signed Commits</a></dt>
+ <dd class="period">May 2012</dd>
+ <dd class="desc">
+ An in-depth article on Git commit signing written shortly after
+ support was added to Git. It
+ maintained <a href="https://news.ycombinator.com/item?id=4007229">the
+ top rank on HackerNews</a> for the entire business day, largely
+ introducing the Git commit signing concept to the
+ community. Widely cited, notably
+ by <a href="https://community.rapid7.com/community/metasploit/blog/2013/11/06/weekly-update">Metasploit</a>,
+ <a href="https://www.whonix.org/forum/index.php?topic=538.10">Whonix</a>,
+ <a href="https://secwiki.org/w/Migrating_Nmap_to_Git">Nmap</a>,
+ <a href="https://developer.atlassian.com/blog/2014/12/git-2-2-0-released/">Atlassian</a>,
+ and
+ the <a href="https://sufficientlysecure.org/wp-content/uploads/cryptocall.pdf">CryptoCall
+ project thesis</a>. <span class="print-only">References provided
+ in online résumé.</span>
+ </dd>
+
+ <dt>
+ <a href="http://mikegerwitz.com/papers/coope">
+ Classical Object-Oriented Programming with ECMAScript</a></dt>
+ <dd class="period">February 2012&ndash;April 2012</dd>
+ <dd class="desc">
+ A paper
+ exploring methods of implementing classical object-oriented
+ programming in ECMAScript&nbsp;3. This paper describes common
+ patterns; addresses performance concerns; explores alternatives,
+ problems, and exploitations; and begins discussing the
+ <a href="https://www.gnu.org/software/easejs/manual/Implementation-Details.html">the
+ implementation used by GNU ease.js</a>. Paper is incomplete.
+ </dd>
+
+ <dt>
+ <a href="http://www.pcmag.com/article2/0,2817,1586638,00.asp">
+ PC Magazine Mention&mdash;iBrowser</a></dt>
+ <dd class="period">June 2004</dd>
+ <dd class="desc">
+ Mention in PC Magazine for a project named iBrowser, the world's
+ first voice recognition web browser. Created with a remote friend
+ at the age of fourteen. Personally handled voice recognition,
+ popup blocker, and most other aspects of development.
+ </dd>
+
+ <dt>
+ <a href="http://www.planet-source-code.com/vb/contest/AllTimeHallOfFame.asp?lngWId=1">
+ Planet Source Code Superior Coding Contest Winner</a></dt>
+ <dd class="period">February 2003</dd>
+ <dd class="desc">
+ Received Planet Source Code's Superior Coding Contest Award for
+ the voice recognition tutorial
+ <a href="http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=43096&amp;lngWId=1">
+ &quot;Talk To Your Computer&quot;</a> at the age of thirteen.
+ </dd>
+ </dl>
+ </section>
+
+ <section id="affiliations">
+ <h2>Affiliations</h2>
+ <dl>
+ <dt>
+ <a href="https://gnu.org">
+ GNU Project</a></dt>
+ <dd class="period">December 2013&ndash;Present</dd>
+ <dd class="desc">
+ I am the author and maintainer
+ of <a href="https://gnu.org/s/easejs">GNU ease.js</a>; one of
+ the <a href="https://www.gnu.org/help/evaluation.html">GNU&nbsp;software
+ evaluators</a> that review software offered to GNU; exercise
+ various administrative duties; and participate in general
+ discussions regarding the GNU Project as a whole.
+ I participate in general activism pursuant to the goals of GNU,
+ including addressing the issue
+ of <a data-print="true" href="https://www.gnu.org/s/easejs/whyfreejs.html">non-free
+ JavaScript</a>. Notably, I worked with Sytse Sijbrandij (GitLab
+ B.V. CEO)
+ to <a href="https://about.gitlab.com/2015/05/20/gitlab-gitorious-free-software/">freely
+ license all GitLab EE JavaScript</a>, and worked on the
+ <a href="https://www.gnu.org/software/repo-criteria.html">GNU
+ ethical repository criteria</a>.
+ Much of my free time is dedicated toward GNU volunteer work.
+ </dd>
+
+ <dt>
+ <a href="https://fsf.org">
+ Free Software Foundation</a></dt>
+ <dd class="period">October 2007&ndash;Present</dd>
+ <dd class="desc">
+ Associate member
+ <a href="http://www.fsf.org/register_form?referrer=5804">(#5804)</a>
+ of the Free Software Foundation
+ (<abbr title="Free Software Foundation">FSF</abbr>) and a strong
+ supporter of the free software movement. Actively involved in
+ the <a href="https://gnu.org/philosophy/free-sw.html">free
+ software</a> community. I&nbsp;have had the pleasure of meeting
+ with and working with the FSF&nbsp;staff on a number of occasions.
+ I am also on the JavaScript Developers Task Force, part of the
+ FSF's <a data-print="true" href="https://fsf.org/campaigns/freejs">Free JavaScript
+ campaign</a>.
+ </dd>
+
+ <dt>
+ <a href="https://www.eff.org">
+ Electronic Frontier Foundation</a></dt>
+ <dd class="period">August 2017&ndash;Present</dd>
+ <dd class="desc">
+ Member of the Electronic Frontier Foundation (<abbr
+ title="Electronic Frontier Foundation">EFF</abbr>).
+ I closely follow and support many of their causes.
+ </dd>
+
+ <dt>
+ <a href="http://www.buffalotkd.com">
+ Master Chong's World Class Tae Kwon Do</a></dt>
+ <dd class="period">February 2010&ndash;February 2012</dd>
+ <dd class="desc">
+ Student at Master Chong's World Class Tae Kwon Do. While not a
+ technical affiliation, it was an enjoyable and rewarding
+ experience, and was an important part of my life. Volunteered
+ when possible and attended class most days of the week.
+ I unfortunately had to stop attending classes due to a hip injury
+ and subsequent birth of my first child. I hope to return one day.
+ </dd>
+ </dl>
+ </section>
+
+
+ <section id="skills">
+ <h2>Skills, Studies, and Interests</h2>
+ <p>
+ Each item below is ordered by experience, descending.
+ Languages actively used are those that I most often write projects in,
+ either personally or at work.
+ Infrequent languages are those that I&nbsp;have used to write or
+ modify software, but do not have intimate knowledge
+ of. Superscript indicates number of years experience, which
+ does not always correlate to proficiency. Ranges indicate
+ uncertainty due to periods of non-use. Date, if present,
+ indicates last year used.
+ </p>
+ <dl>
+ <dt>Languages&mdash;Actively Used</dt>
+ <dd class="desc">
+ <ul class="detail-list">
+ <li>(X)HTML<sup>17+</sup>
+ <ul>
+ <li>XHTML 1.1</li>
+ <li>HTML 5</li></ul></li>
+ <li>CSS<sup>17+</sup>
+ <ul>
+ <li>2</li>
+ <li>3</li></ul></li>
+ <li>PHP<sup>12+</sup>
+ <ul>
+ <li>4</li>
+ <li>5</li></ul></li>
+ <li>JavaScript<sup>9&ndash;12</sup>
+ <ul>
+ <li>ECMAScript {3,5,6}</li></ul></li>
+ <li>Shell<sup>12+</sup>
+ <ul>
+ <li>POSIX</li>
+ <li>Bash</li></ul></li>
+ <li>C<sup>5&ndash;12</sup>
+ <ul>
+ <li>ANSI</li>
+ <li>C89</li>
+ <li>C11</li></ul></li>
+ <li>TeX<sup>6+</sup>
+ <ul>
+ <li>Plain</li>
+ <li>LaTeX2e</li></ul></li>
+ <li>AWK<sup>5&ndash;7</sup>
+ <ul>
+ <li>POSIX</li>
+ <li>Gawk</li></ul></li>
+ <li>Lisp<sup>4&ndash;6</sup>
+ <ul>
+ <li>Elisp</li>
+ <li>RnRS Scheme</li>
+ <li>Guile Scheme</li>
+ <li>Racket</li>
+ <li>Chez Scheme</li></ul></li>
+ <li>XSLT<sup>5&ndash;7</sup>
+ <ul>
+ <li>1</li>
+ <li>2</li></ul></li>
+ <li>Texinfo<sup>7+</sup>
+ <li>SQL<sup>12+</sup>
+ <ul>
+ <li>MySQL</li>
+ <li>SQLAnywhere</li>
+ <li>MSSQL</li></ul></li>
+ <li>M4<sup>1-</sup></li>
+ <li>Lua<sup>1-</sup></li>
+ </ul>
+ </dd>
+
+ <dt>Languages&mdash;Infrequent</dt>
+ <dd class="desc">
+ <ul class="detail-list">
+ <li>C++<sup>1&ndash;2 (2005)</sup></li>
+ <li>Scala<sup>1- (2012)</sup></li>
+ <li>Java<sup>1&ndash;2 (2014)</sup></li>
+ <li>Clojure<sup>1- (2014)</sup></li>
+ <li>x86{,_64} ASM<sup>1 (2013)</sup></li>
+ <li>Haskell<sup>1- (2014)</sup></li>
+ <li>Python<sup>1- (2006)</sup></li>
+ <li>Ruby<sup>1- (2014)</sup></li>
+ <li>Perl<sup>1 (2009)</sup></li>
+ <li>Troff<sup>1- (2011)</sup></li>
+ <li>MOS 6502 ASM<sup>1- (2013)</sup></li>
+ </ul>
+ </dd>
+ </dl>
+
+ <p>
+ There are a few languages that I no longer use because they are
+ either <a href="http://gnu.org/philosophy/free-sw.html">non-free</a>
+ or focus on non-free operating systems.
+ </p>
+
+ <dl>
+ <dt>Languages&mdash;Defunct</dt>
+ <dd class="desc">
+ <ul class="detail-list">
+ <li>ASP<sup>1&ndash;2 (2004)</sup></li>
+ <li>Visual Basic<sup>5+ (2006)</sup>
+ <ul>
+ <li>6</li>
+ <li>.NET</li></ul></li>
+ <li>BASIC<sup>1 (2005)</sup>
+ <ul>
+ <li>QBASIC</li></ul></li>
+ </ul>
+ </dd>
+ </dl>
+
+ <p>
+ Studies differ from interests in that the former are actively
+ or have been in the past researched; whereas the latter are
+ occasionally visited, but otherwise pending formal study.
+ </p>
+ <dl>
+ <dt>Studies&mdash;Computer Science</dt>
+ <dd class="desc">
+ <ul class="detail-list">
+ <li>Compilers
+ <ul>
+ <li>Construction</li>
+ <li>Static Analysis</li>
+ <li>Control Flow Analysis</li></ul></li>
+ <li>Programming Languages
+ <ul>
+ <li>Theory</li>
+ <li>History</li></ul></li>
+ <li>Security
+ <ul>
+ <li>Domain-Specific</li>
+ <li>Implicit In Other Skills/Studies</li></ul></li>
+ <li>Cryptography
+ <ul>
+ <li>Implementation</li>
+ <li>Algorithms</li></ul></li>
+ <li>Combinatory Logic
+ <ul>
+ <li>Point-Free Programming</li>
+ <li>Concatenative and Stack-Based Languages</li>
+ <li>Church-Turing</li></ul></li>
+ <li>λ-Calculus
+ <ul>
+ <li>Untyped</li>
+ <li>Simply Typed</li></ul></li>
+ <li>Logic
+ <ul>
+ <li>Proof Theory</li>
+ <li>Propositional</li>
+ <li>Predicate</li>
+ <li>Higher-order</li>
+ <li>Modal</li></ul></li>
+ <li>Linear Algebra</li>
+ <li>Graph Theory</li>
+ </ul>
+ </dd>
+
+ <dt>Studies&mdash;Legal and Political</dt>
+ <dd class="desc">
+ <ul class="detail-list">
+ <li>Software Licensing
+ <ul>
+ <li>GNU General Public License and variants</li>
+ <li>Various licenses</li></ul></li>
+ <li>Copyright
+ <ul>
+ <li>Law</li>
+ <li>Fair Use</li>
+ <li>Copyleft</li></ul></li>
+ <li>Privacy
+ <ul>
+ <li>Cryptography</li>
+ <li>Law</li></ul></li>
+ <li>Surveillance
+ <ul>
+ <li>NSA</li>
+ <li>GHCQ</li>
+ <li>Five Eyes</li>
+ <li>FISA</li>
+ <li>Domestic</li>
+ <li>Snowden</li>
+ <li>Court Cases</li></ul></li>
+ <li>Patents
+ <ul>
+ <li>Court Cases</li>
+ <li>Reform</li></ul></li>
+ </ul>
+ </dd>
+
+ <dt>Studies&mdash;Miscellaneous</dt>
+ <dd class="desc">
+ <ul class="detail-list">
+ <li>History of Computing
+ <ul>
+ <li>Unix / Multics / Lisp Machines</li>
+ <li>MIT</li>
+ <li>Bell Labs</li>
+ <li>Hacking</li>
+ <li>Historical Figures</li>
+ <li>Machines</li></ul></li>
+ <li>Typesetting</li>
+ <li>English Writing
+ <ul>
+ <li>Predominantly American</li></ul></li>
+ </ul>
+ </dd>
+
+ <dt>Interests</dt>
+ <dd class="desc">
+ <ul class="detail-list">
+ <li>Cryptanalysis</li>
+ <li>Mathematics
+ <ul>
+ <li>Category Theory</li>
+ <li>Set Theory</li>
+ <li>Anything Else</li></ul></li>
+ <li>Machine Learning
+ <ul>
+ <li>Neural Networks</li>
+ <li>Genetic</li>
+ <li>Deep</li>
+ <li>Unsupervised</li></ul></li>
+ <li>Natural Sciences
+ <ul>
+ <li>Quantum Mechanics</li>
+ <li>Cosmology and Planetary</li>
+ <li>Theoretical Physics</li>
+ <li>Cellular Communication</li>
+ <li>Synthetic Biology</li></ul></li>
+ <li>Management
+ <ul>
+ <li>Team Building / Kaizen Culture</li>
+ <li>Kanban</li>
+ <li>Lean/Agile/Scrum/Other Methodologies</li>
+ <li>Office Environment</li>
+ <li>Psychology</li>
+ <li>Project Management</li></ul></li>
+ </ul>
+ </dd>
+ </dl>
+ </section>
+ </div>
+
+ <div id="misc">
+ <a href="/about/inside" id="gnuinside">
+ <img src="/images/gnu-inside.png" alt="GNU/Linux Inside!" />
+ </a>
+ </div>
+ <div id="footer">
+ <p class="copyright">
+ Copyright &copy; 2017 <a href="https://mikegerwitz.com/">Mike Gerwitz</a>
+ </p>
+ </div>
+ <div id="footer-print" class="print-only">
+ <p>
+ This document is a print version of my online résumé; it has been
+ modified to display certain information inline, whilst removing
+ other information not suitable for paper. For the complete
+ résumé, please visit:
+ <br />
+ https://mikegerwitz.com/docs/about/resume
+ </p>
+ <p>
+ Copyright &copy; 2017 Mike Gerwitz
+ </p>
+ </div>
+ </body>
+</html>
diff --git a/src/about/resume/.gitignore b/src/about/resume/.gitignore
new file mode 100644
index 0000000..a97fa56
--- /dev/null
+++ b/src/about/resume/.gitignore
@@ -0,0 +1,2 @@
+
+*.swp
diff --git a/src/about/resume/style-print.css b/src/about/resume/style-print.css
new file mode 100644
index 0000000..96867ed
--- /dev/null
+++ b/src/about/resume/style-print.css
@@ -0,0 +1,42 @@
+/* Mike Gerwitz Résumé print stylesheet */
+/* CC-BY-SA */
+
+body {
+ border: none;
+}
+
+a, a:active, a:link, a:visited, a:hover {
+ color: inherit;
+ text-decoration: none;
+ border: none;
+}
+
+/* links cannot be followed when printed, so provide URLs for hand-selected */
+/* links, and for title links */
+a[data-print]::after {
+ content: ' (' attr( href ) ')';
+}
+#content > dl[data-print-links] > dt > a::after {
+ content: '(' attr( href ) ')';
+ margin-left: 2em;
+}
+
+abbr {
+ border: none;
+}
+
+#footer, #misc, #header ul.links {
+ display: none;
+}
+#footer-print {
+ text-align: center;
+ margin-top: 2ex;
+}
+
+.pgbrk {
+ page-break-before: always;
+}
+
+.print-only {
+ display: inline-block;
+}
diff --git a/src/about/resume/style.css b/src/about/resume/style.css
new file mode 100644
index 0000000..b03b078
--- /dev/null
+++ b/src/about/resume/style.css
@@ -0,0 +1,452 @@
+/* Mike Gerwitz Résumé stylesheet */
+/* Some colors are part of the Tango Desktop Project's color palette */
+/* CC-BY-SA */
+
+@font-face {
+ font-family: Open Sans;
+ src: url('/fonts/OpenSans-Regular.woff');
+}
+
+html {
+ background-color: #f8f8f7;
+ height: 100%;
+}
+
+body {
+ background-color: white;
+ border-width: 0px 1px;
+ border-style: solid;
+ border-color: #d3d7cf;
+
+ width: 750px;
+ margin: 0px auto 0px auto;
+ padding: 0px 50px;
+ height: 100%;
+ min-height: 100%;
+ height: auto !important;
+
+ font-family: 'Open Sans', 'Liberation Sans', FreeSans, sans-serif;
+ font-size: 14px;
+}
+
+a, a:active, a:link {
+ text-decoration: none;
+ border-bottom: 1px dotted #204a87;
+ color: #204a87;
+}
+a:visited {
+ color: #3465a4;
+ border-bottom-style: none;
+}
+a:hover {
+ border-bottom-style: solid;
+}
+
+a.title {
+ font-style: italic;
+}
+
+img {
+ border: 0em;
+ margin: 0em;
+ padding: 0em;
+}
+
+h1, h2, h3 {
+ font-family: 'URW Gothic L', 'Avant Garde', sans-serif;
+ font-weight: normal;
+}
+
+h1 { font-size: 2.2em; }
+
+#content h2 {
+ color: black;
+ border-bottom: 1px solid #2e3436;
+ margin-bottom: 0.5em;
+ font-size: 1.4em;
+}
+
+#content h2:not(:first-child) {
+ margin-top: 1em;
+}
+
+#content p,
+#content dl > dd.desc {
+ text-align: justify;
+ line-height: 1.5;
+}
+
+#content dl > dt {
+ font-weight: bold;
+ font-size: 1em;
+ float: left;
+ clear: left;
+}
+
+#content dl > dt a {
+ color: inherit;
+}
+
+#content dl > dd.type {
+ font-weight: bold;
+ margin: 0em 0.5em;
+ padding: 0em;
+ float: right;
+}
+#content dl > dd.type::after {
+ content: ',';
+}
+
+#content dl > dd.period {
+ font-weight: bold;
+ margin: 0em;
+ float: right;
+}
+#content dl > dd.desc {
+ clear: both;
+ margin: 0em 0em 1em 1em;
+}
+#content dl > dd.desc blockquote {
+ margin: 0.5em 1em;
+}
+
+#content dl > dd.desc > ul.detail-list,
+#content dl > dd.desc > ul.detail-list ul {
+ display: inline;
+ list-style: none;
+ margin: 0px;
+ padding: 0px;
+}
+#content dl > dd.desc > ul.detail-list ul,
+#content dl > dd.desc > ul.lang {
+ font-size: 0.9em;
+}
+#content dl > dd.desc > ul.lang::before {
+ display: inline;
+ font-weight: bold;
+ content: 'Languages/Tools: ';
+}
+
+/* using li nodes rather than ul itself rids extra whitespace */
+#content dl > dd.desc > ul.detail-list ul > li:first-child::before {
+ content: '(';
+}
+#content dl > dd.desc > ul.detail-list ul > li:last-child::after {
+ content: ')';
+}
+
+#content dl > dd.desc > ul.detail-list li {
+ display: inline;
+ padding: 0px;
+}
+
+#content dl > dd.desc > ul.detail-list > li:not(:last-child)::after {
+ display: inline;
+ content: '; ';
+ word-spacing: 0.25em; /* instead of padding; strips whitespace from */
+ /* beginning and end of line */
+}
+#content dl > dd.desc > ul.detail-list ul > li:not(:last-child)::after {
+ display: inline;
+ content: ', ';
+}
+
+#header {
+ padding-top: 50px;
+}
+
+#header div.leftcol {
+ float: left;
+ clear: left;
+}
+
+#header h1.name {
+ margin: 0em;
+ padding: 0em;
+}
+
+#header h2.name-subline {
+ font-size: 1em;
+ text-transform: uppercase;
+ letter-spacing: 0.1em;
+ font-weight: normal;
+ color: #666f63;
+
+ margin-top: 0px;
+ margin-bottom: 2em;
+}
+
+#header p.name-subline {
+ color: #202020;
+ margin: 0.25em 0em 0em 0em;
+ font-size: 1.1em;
+
+ letter-spacing: 0.15em;
+ text-transform: uppercase;
+}
+#header .name-subline a,
+#header .name-subline a:active,
+#header .name-subline a:visited,
+#header .name-subline a:link {
+ border: none;
+ color: inherit;
+}
+#header .name-subline a:hover {
+ border-bottom: 1px dotted #204a87;
+}
+
+#header ul.links {
+ position: fixed;
+ width: 50px;
+ right: 0px;
+ top: 60px;
+
+ list-style: none;
+ margin: 0px;
+
+ /* see @media layouts */
+ transition: filter 0.15s; /* quick fade in */
+
+}
+#header ul.links li {
+ margin: 0px;
+ padding: 0px 0px 0.5em 0px;
+ float: left;
+}
+#header ul.links a {
+ border: none;
+}
+#header ul.links img {
+ transition: transform 0.25s;
+}
+#header ul.links img[src*=octoright]:hover {
+ transform: rotate(-20deg);
+}
+
+#header #infobox {
+ float: right;
+ text-align: right;
+ margin: 0px 0px 1em 0px;
+}
+
+#header #infobox address {
+ font-style: normal;
+}
+
+#header #infobox dl.contact dt {
+ font-weight: bold;
+ display: inline-block;
+ float: left;
+ clear: left;
+ margin-bottom: 0.2em;
+}
+#header #infobox dl.contact dd {
+ margin: 0px 0px 0px 1em;
+ clear: right;
+ float: right;
+ margin-bottom: 0.2em;
+}
+
+#footer {
+ text-align: center;
+}
+#footer p.copyright {
+ margin: 0.7em 0em 0em 0em;
+ font-size: 0.8em;
+ display: inline-block;
+}
+
+#misc a {
+ border: none;
+}
+
+.print-only {
+ display: none;
+}
+
+.clear {
+ clear: both;
+}
+.clear.head {
+ border-top: 1px solid #d3d7cf;
+ margin: 0px 0px 1em 0px;
+}
+
+#gnuinside {
+ position: absolute;
+ display: block;
+
+ top: 0px;
+ right: 0px;
+ width: 50px;
+ height: 50px;
+}
+
+.nocss,
+.phony {
+ display: none;
+}
+
+/* makes it at least a little harder for scrapers */
+.phone {
+ display: inline-block;
+}
+.phone::before {
+ content: '(716) ';
+}
+.phone::after {
+ content: '-7118';
+}
+
+/* copied from main site */
+.hn-icon {
+ display: block;
+
+ background-color: #ff6600;
+
+ width: 42px;
+ height: 42px;
+
+ font-size: 16px;
+ font-weight: bold;
+ text-align: center;
+ line-height: 42px;
+}
+a.hn-icon {
+ /* undo link styling */
+ color: white;
+ border: none;
+}
+
+/* we don't want the icons to be too distracting/jarring---the
+ focus should be on the resume itself */
+#header ul.links:not(:hover) {
+ filter: saturate(25%);
+ transition: filter 3s; /* slow fade */
+}
+
+
+/* right icons start to overlap with page margins */
+@media screen and (max-width: 970px) {
+ html {
+ background-color: white;
+ }
+
+ /* page completely white, full width, side icons */
+ body {
+ border: none;
+
+ width: auto;
+ padding: 0px 2em 0px 3em;
+ margin: 0px 50px 0px 0px;
+ }
+}
+
+
+@media screen and (max-width: 800px) {
+ /* entering what I consider to be a mobile view
+ (or ancient screen resolution, or old person)*/
+ #footer::before {
+ display: block;
+
+ margin: 0px 3em;
+
+ font-size: 0.8em;
+ content:
+ '(This is a mobile/low-res view; please increase your screen resolution to view the resume as originally intended.)';
+ }
+
+ /* right-hand margin removed */
+ body {
+ padding: 0px 2em;
+ margin: 0px;
+ }
+
+ #header {
+ padding-top: 2em;
+ }
+
+ /* move side icons under name */
+ #header ul.links {
+ position: inherit;
+ float: left;
+ padding: 0px;
+ width: auto;
+ }
+
+ #header ul.links li:not(:first-child) {
+ margin-left: 1em;
+ }
+
+ /* make room for page fold */
+ #header #infobox address {
+ margin-right: 50px;
+ }
+}
+
+
+/* infobox about to collide with name */
+@media screen and (max-width: 640px) {
+ body {
+ padding: 0px 1em;
+ }
+
+ #header {
+ padding-top: 1em;
+ }
+
+ /* infobox still on right, ... */
+ #header #infobox {
+ display: inline-block;
+
+ width: auto;
+ clear: left;
+ }
+
+ /* ... but forced below header */
+ #header div.leftcol {
+ display: block;
+ }
+
+ #header #infobox address {
+ margin-right: 0px;
+ }
+}
+
+
+/* infobox about to collide with icons below name */
+@media screen and (max-width: 540px) {
+ #header ul.links {
+ display: block;
+
+ width: auto;
+ margin: 0px auto;
+
+ float: right;
+ clear: both;
+ }
+
+ /* in case we ever get too close to page fold */
+ #header div.leftcol {
+ padding-right: 50px;
+ }
+}
+
+
+/* 320 is the lowest resolution that should really be entertained */
+@media screen and (max-width: 310px) {
+ #objective > p:first-of-type::after {
+ content: 'Seeking potential employers with higher screen resolutions that will render my resume sanely.';
+ }
+
+ #summary > p:first-of-type::before {
+ display: block;
+ margin-bottom: 1em;
+
+ content: 'I love talking about myself, but you really haven\'t given me much space to do so! How about increasing that resolution of yours? I mean, don\'t get me wrong; it\'s still legible. Torture your eyeballs if you wish.';
+ }
+
+ #footer::before {
+ content: '(This is rendered at a ridiculously low resolution. Snarky remarks added. Please increase your resolution.)';
+ }
+}
diff --git a/src/footer.tpl.htm b/src/footer.tpl.htm
new file mode 100644
index 0000000..ae3e779
--- /dev/null
+++ b/src/footer.tpl.htm
@@ -0,0 +1,107 @@
+ </main>
+
+ <footer>
+ <div>
+ <a href="/about/inside" class="page-flip">
+ <img src="/images/gnu-inside.png" alt="GNU/Linux Inside!" />
+ </a>
+ </div>
+ <nav id="selflinks" class="affiliation-list" aria-label="Affiliations">
+ <ul>
+ <li>
+ <a href="https://gitlab.com/u/mikegerwitz">
+ <img src="/images/gitlab.svg"
+ alt="mikegerwitz on GitLab"
+ title="mikegerwitz on GitLab"
+ width="42" height="42" border="0" />
+ </a>
+ </li>
+
+ <li>
+ <a href="/about/githubbub">
+ <img src="/images/octoright-42.png"
+ alt="Don't see me on GitHub"
+ title="Don't see me on GitHub"
+ width="42" height="42" border="0" />
+ </a>
+ </li>
+
+ <li>
+ <a href="https://savannah.gnu.org/users/mikegerwitz">
+ <img src="/images/meditate-42.png"
+ alt="See me on Savannah"
+ title="See me on Savannah"
+ width="42" height="42" border="0" />
+ </a>
+ </li>
+
+ <li>
+ <a href="https://news.ycombinator.com/user?id=mikegerwitz"
+ title="mikegerwitz on Hacker News"
+ class="hn-icon">HN</a>
+ </li>
+
+ <li>
+ <a href="https://www.fsf.org/register_form?referrer=5804">
+ <img src="/images/fsf-42.png"
+ alt="FSF Member #5804"
+ title="FSF Member #5804"
+ width="42" height="42" border="0" />
+ </a>
+ </li>
+
+ <li>
+ <a href="https://www.eff.org/">
+ <img src="/images/eff-42.png"
+ alt="EFF Member"
+ title="EFF Member"
+ width="42" height="42" border="0" />
+ </a>
+ </li>
+ </ul>
+ </nav>
+
+ <section class="site-nav">
+ <nav aria-labelledby="nav-general">
+ <h2 id="nav-general">General</h2>
+ <ul>
+ <li><a href="#">About</a></li>
+ <li><a href="#">Résumé</a></li>
+ <li><a href="#">GNU Social</a></li>
+ <li><a href="#">GNU/Linux Inside</a></li>
+ </ul>
+ </nav>
+
+ <nav aria-labelledby="nav-works">
+ <h2 id="nav-works">Works</h2>
+ <ul>
+ <li><a href="#">Posts</a></li>
+ <li><a href="#">Talks</a></li>
+ <li><a href="#">Projects</a></li>
+ <li><a href="#">Papers</a></li>
+ <li><a href="#">Source Code To This Site</a></li>
+ </ul>
+ </nav>
+
+ <nav aria-labelledby="nav-resources">
+ <h2 id="nav-works">Resources</h2>
+ <ul>
+ <li><a href="#">Free/Libre Software</a></li>
+ <li><a href="#">The GNU Project</a></li>
+ <li><a href="https://www.gnu.org/licenses/license-list.en.html">Free Software Licenses</a></li>
+ <li><a href="https://stallman.org/articles/on-hacking.html">Richard
+ Stallman On Hacking</a></li>
+ <li><a href="https://www.gnu.org/philosophy/proprietary.html">Proprietary
+ Software Is Often Malware</a></li>
+ </ul>
+ </nav>
+ </section>
+
+ <p id="copyright">
+ Copyright &copy; 2018 Mike Gerwitz.
+ Licensed under the Creative Commons Attribution-ShareAlike&nbsp;4.0
+ International License.
+ </p>
+ </footer>
+ </body>
+</html>
diff --git a/src/h12title b/src/h12title
new file mode 100755
index 0000000..c638b96
--- /dev/null
+++ b/src/h12title
@@ -0,0 +1,43 @@
+#!/bin/bash
+# Copies first body h1 text into title
+#
+# Copyright (C) 2019 Mike Gerwitz
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# This assumes that an <article> tag exists and assumes that is the main
+# content from which the title ought to be derived.
+##
+
+set -euo pipefail
+
+
+main()
+{
+ local -r placeholder=${1?Missing placeholder}
+
+ local body;
+ body=$( cat )
+
+ local title
+ title=$(
+ <<<"$body" grep -A1 '<article' \
+ | grep '<h1' \
+ | grep -oP '(?<=>)[^<]+' \
+ )
+
+ sed "s#$placeholder#${title/&/\\&}#" <<< "$body"
+}
+
+main "$@"
diff --git a/src/header.tpl.htm b/src/header.tpl.htm
new file mode 100644
index 0000000..f2aa0e7
--- /dev/null
+++ b/src/header.tpl.htm
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8" />
+ <link rel="alternate" title="RSS Feed"
+ href="rss.xml" type="application/rss+xml" />
+ <link rel="stylesheet" type="text/css" href="/style.css" />
+ <title>@PAGE_TITLE@Mike Gerwitz</title>
+ <meta name="viewport" content="initial-scale=1.0" />
+ </head>
+ <body class="@PAGE_TYPE@">
+ <header>
+ <hgroup id="author">
+ <h1 class="title"><a href="/">Mike Gerwitz</a></h1>
+ <h2 class="desc">Free Software Hacker+Activist</h2>
+ </hgroup>
+
+ <nav class="menu" aria-label="Main Navigation">
+ <ul>
+ <li><a href="/about">About</a></li>
+ <li><a href="/posts">Posts</a></li>
+ <li><a href="/talks">Talks</a></li>
+ <li><a href="/projects">Projects</a></li>
+ <li><a href="/papers">Papers</a></li>
+ <li><a href="//social.mikegerwitz.com/" title="My GNU Social Instance">Social</a></li>
+ </ul>
+ </nav>
+ </header>
+
+ <main>
diff --git a/src/index.sh b/src/index.sh
new file mode 100755
index 0000000..d899fcb
--- /dev/null
+++ b/src/index.sh
@@ -0,0 +1,133 @@
+#!/bin/bash
+# Generate index HTML page
+#
+# Copyright (C) 2019 Mike Gerwitz
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# The index page consists of post abstracts, some static text, and the
+# static header and footer. All post metadata files must have been built,
+# along with `post/list'.
+#
+# This script includes the static body (see `main').
+##
+
+set -euo pipefail
+
+
+# Get the file name of the Nth most recent post. This relies on the
+# existence of `post/list'.
+pnfile()
+{
+ local -ri n=${1?Missing relative post number}
+
+ sed "${n}q;d" post/list
+}
+
+
+# Read field FIELD from post metadata recfile FILE.
+pmeta()
+{
+ local -r file=${1?Missing file name}
+ local -r field=${2?Missing field name}
+
+ recsel -P "$field" "$file"
+}
+
+
+# Process each numeric argument using `abstract'. Each argument must be a
+# relative post number (see `pnfile').
+abstracts()
+{
+ while [ $# -gt 0 ]; do
+ abstract "$1"
+ shift
+ done
+}
+
+
+# Generate HTML for relative post number N (see `pnfile').
+abstract()
+{
+ local -ri n=${1?Missing relative post number}
+
+ local file title date slug body
+ file=$( pnfile "$n" )
+ title=$( pmeta "$file" subject )
+ date=$( pmeta "$file" date )
+ slug=$( pmeta "$file" slug )
+ body=$( pmeta "$file" abstract )
+
+ cat <<EOF
+<article class="abstract">
+ <h2 class="title"><a href="/$slug">$title</a></h2>
+ $body
+ <p class="date">Posted on $date.
+ <a href="/$slug">Read more &raquo;</a>
+ </p>
+</article>
+EOF
+}
+
+
+# Generate index HTML page.
+# TODO: Factor out static sections.
+main()
+{
+ src/mkheader index
+
+ cat <<EOF
+<aside>
+ <ul class="links">
+ <li><a class="box free-sw" href="#">What is Free/Libre Software?</a></li>
+ <li><a class="box eff-privacy" href="#">EFF on Privacy</a></li>
+ </ul>
+</aside>
+
+<section aria-labelledby="latest-posts">
+ <h1 id="latest-posts">Latest Posts</h1>
+
+ $( abstracts {1..2} )
+</section>
+
+<section class="highlight">
+ <h1 class="title">The Surreptitious Assault on Privacy, Security,
+ and Freedom</h1>
+
+ <aside>
+ Each of these essential rights are being surreptitiously
+ assaulted; only the most technical among us even know what to look
+ for, let alone how to defend ourselves. Governments, corporations,
+ and groups of ill-minded individuals are spying and preying upon
+ both users and bystanders with unprecedented frequency and
+ breadth.
+ </aside>
+
+ <a href="#" class="lp-watch">Watch LibrePlanet&nbsp;2017 Talk</a>
+</section>
+
+<section class="compact sm">
+ <h1 id="older-posts">Older Posts</h1>
+
+ $( abstracts {3..8} )
+
+ <a class="view-all" href="/posts">View all posts</a>
+</section>
+EOF
+
+ cat src/footer.tpl.htm
+}
+
+
+main "$@"
diff --git a/src/mkheader b/src/mkheader
new file mode 100755
index 0000000..292fe4f
--- /dev/null
+++ b/src/mkheader
@@ -0,0 +1,53 @@
+#!/bin/bash
+# Generate HTML header
+#
+# Copyright (C) 2019 Mike Gerwitz
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# The header is mostly static but contains a dynamic page type and title.
+##
+
+set -euo pipefail
+
+declare -ri EX_USAGE=64
+
+
+# Generate header by populating @PAGE_{TITLE,TYPE}@. If no title is given,
+# then the title will be completely omitted. If provided, it will have an
+# em dash delimiter appended, with whitespace on both sides for visual
+# clarity (contrary to my usual typographical conventions).
+main()
+{
+ local -r type=${1?Missing type}
+ local -r title_orig=${2:-}
+
+ local -r title=${title_orig/&/\\&amp;}
+
+ [[ $type =~ ^[a-z]+$ ]] || {
+ echo 'error: type must be an all-lowercase word'
+ exit $EX_USAGE
+ }
+
+ [[ ! $title =~ \# ]] || {
+ echo "error: title must not contain \`#'"
+ exit $EX_USAGE
+ }
+
+ sed "s#@PAGE_TITLE@#$title${title:+ \\&mdash; }#g
+ s#@PAGE_TYPE@#$type#g" \
+ src/header.tpl.htm
+}
+
+main "$@"
diff --git a/src/pandoc.tpl b/src/pandoc.tpl
new file mode 100644
index 0000000..c8deb96
--- /dev/null
+++ b/src/pandoc.tpl
@@ -0,0 +1,28 @@
+$for(include-before)$
+$include-before$
+
+$endfor$
+$if(toc)$
+$toc$
+
+$endif$
+
+<article>
+$body$
+
+$if(tags)$
+<section class="tags" aria-label="Tags">
+ <h2>Tags</h2>
+ <ul class="tags">
+ $for(tags)$
+ <li>$tags$</li>
+ $endfor$
+ </ul>
+</section>
+$endif$
+</article>
+
+$for(include-after)$
+
+$include-after$
+$endfor$
diff --git a/src/papers.rec b/src/papers.rec
new file mode 100644
index 0000000..966c6ec
--- /dev/null
+++ b/src/papers.rec
@@ -0,0 +1,41 @@
+id: git-horror-story
+type: post
+ref: 2012-05-22-git-horror-story
+
+id: coope
+type: latex
+ref: papers/coope
+pubdate: 2012-05-06
+
+id: cptt
+type: latex
+ref: papers/cptt
+pubdate: 2013-05-13
+
+id: national-uproar
+type: post
+ref: 2013-06-10-national-uproar
+
+id: gnu-kwindows
+type: post
+ref: 2016-04-06-gnu-kwindows
+
+id: gitlab-gitorious-freesw
+type: post
+ref: 2015-05-20-gitlab-gitorious-freesw
+
+id: copyleft-vs-community
+type: post
+ref: 2013-08-13-copyleft-vs-community
+
+id: re-fsf-waste-away
+type: post
+ref: 2013-01-26-re-fsf-waste-high-priority
+
+id: vlc-lgpl
+type: post
+ref: 2012-11-17-vlc-lgpl
+
+id: re-skype-let-spy
+type: post
+ref: 2013-01-30-re-skype-let-spy
diff --git a/src/papers.sh b/src/papers.sh
new file mode 100755
index 0000000..1137b29
--- /dev/null
+++ b/src/papers.sh
@@ -0,0 +1,183 @@
+#!/bin/bash
+# Generate papers HTML page
+#
+# Copyright (C) 2019 Mike Gerwitz
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# Papers are (at least at present) written in LaTeX, whereas articles are
+# simply posts. Both are specified in $PAPERFILE. This page generates
+# abstracts for both formats, along with links to each of their output
+# formats (one or more of PDF, DVI, HTML).
+##
+
+set -euo pipefail
+
+# Refile containing paper references and metadata.
+declare -r PAPERFILE=${PAPERFILE:-src/papers.rec}
+
+
+# List ids of all papers in $PAPERFILE.
+paper-list()
+{
+ recsel -CP id "$PAPERFILE"
+}
+
+
+# Retrieve field FIELD from paper ID in $PAPERFILE.
+paper-field()
+{
+ local -r id=${1?Missing paper id}
+ local -r field=${2?Missing paper field}
+
+ recsel -P "$field" -e "id = '$id'" "$PAPERFILE"
+}
+
+
+# Read field FIELD from post metadata recfile FILE.
+post-field()
+{
+ local -r ref=${1?Missing post name}
+ local -r field=${2?Missing field name}
+
+ recsel -P "$field" "post/$ref.meta"
+}
+
+
+# Generate abstract for article or paper ID. Delegates to one of
+# {post,latex}-abstract based on its type.
+abstract()
+{
+ local -r id=${1?Missing paper id}
+
+ local type ref
+ type=$( paper-field "$id" type )
+ ref=$( paper-field "$id" ref )
+
+ case "$type" in
+ post|latex)
+ "$type-abstract" "$id" "$ref";;
+ *)
+ echo "Unknown paper type for id \`$id" >&2
+ return 1
+ esac
+}
+
+
+
+# Generate abstract for post REF.
+post-abstract()
+{
+ local -r ref=${2?Missing post ref}
+
+ local id title date abstract slug
+ id=$( post-field "$ref" id )
+ title=$( post-field "$ref" subject )
+ date=$( post-field "$ref" date )
+ abstract=$( post-field "$ref" abstract )
+ slug=$( post-field "$ref" slug )
+
+ cat <<EOF
+<article class="abstract paper">
+ <h2 class="title" id="$id"><a href="/$slug">$title</a></h2>
+
+ <ul class="links">
+ <li class="title">Formats:</li>
+ <li><a href="/$slug">View HTML</a></li>
+ </ul>
+
+ $abstract
+
+ <p class="date">Posted on $date.</p>
+</article>
+EOF
+}
+
+
+# Extract title from LaTeX document. Note that this performs no actual
+# processing on that title, so this will need to be e.g. run through Pandoc
+# in the future if titles contain something that should be parsed (like
+# dashes).
+latex-title()
+{
+ head -n1 | sed '1s/^% //;1a\\'
+}
+
+
+# Produce text of LaTeX abstract (from its abstract.tex).
+#
+# Two minor transformations are made: Footnotes are removed by exploiting
+# Pandoc's behavior of ignoring unknown/unsupported commands, since that
+# doesn't look very good in the abstract output. Emdashes have whitespace
+# on either side removed to translate to my modern convention (this can be
+# removed when old papers are updated).
+latex-abstract-text()
+{
+ sed 's/\\footnote/\\void/;
+ s/ \+--- \+/---/g' \
+ | pandoc -flatex -thtml
+}
+
+
+# Generate abstract for LaTeX document (from abstract.tex) ID located at
+# path REF. REF is expected to contain `abstract.tex' and `REF.tex', along
+# with the built `REF.pdf' and `REF.dvi'.
+latex-abstract()
+{
+ local -r id=${1?Missing paper id}
+ local -r ref=${2?Missing paper ref}
+
+ local -r abstract_tex="$ref/abstract.tex"
+ local -r main="$ref/${ref##*/}.tex"
+ local -r sans=${main%/*.tex}
+
+ local title abstract pubdate
+ title=$( latex-title < "$main" )
+ abstract=$( latex-abstract-text < "$abstract_tex" )
+ pubdate=$( paper-field "$id" pubdate )
+
+ cat <<EOF
+<article class="abstract paper">
+ <h2 class="title" id="$id"><a href="/$sans.pdf">$title</a></h2>
+
+ <ul class="links">
+ <li class="title">Formats:</li>
+ <li><a href="/$sans.pdf">View PDF</a></li>
+ <li><a href="/$sans.dvi">View DVI</a></li>
+ </ul>
+
+ $abstract
+
+ <p class="date">Published on $pubdate.</p>
+</article>
+EOF
+}
+
+
+# Generate papers page.
+main()
+{
+ src/mkheader papers Papers
+
+ local papers
+ papers=$( recsel -P id src/papers.rec )
+
+ echo '<h1>Papers / Articles</h1>'
+ paper-list | while read id; do abstract "$id"; done
+
+ cat src/footer.tpl.htm
+}
+
+
+main "$@"
diff --git a/src/post2html b/src/post2html
new file mode 100755
index 0000000..1785541
--- /dev/null
+++ b/src/post2html
@@ -0,0 +1,96 @@
+#!/bin/bash
+# Generate HTML from post Markdown source
+#
+# Copyright (C) 2019 Mike Gerwitz
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# This script accepts the file name rather than data on stdin because the
+# filename encodes the post date.
+#
+# Note that the `pagetitle' is set to "ignoreme"---it is not used, but is
+# needed to suppress the warning pandoc produces without suppressing all
+# warnings.
+#
+# Pandoc is used to generate the HTML and includes a (mostly) static header
+# and footer. Note that this duplicates the date logic in `post2meta',
+# because that must be run on this output, but the post must also contain
+# the date, and we want to do all HTML processing now.
+##
+
+set -euo pipefail
+
+# Pandoc output format and extensions.
+declare -ra ext=(
+ markdown
+ smart
+ footnotes
+ gfm_auto_identifiers
+ fancy_lists
+ startnum
+ tex_math_dollars
+)
+
+
+# Convert extensions to `+'-delimited string.
+pexts()
+{
+ local IFS=+
+ echo "${ext[*]}"
+}
+
+
+# Wrap h1 in an hgroup along with the post date.
+#
+# Sometimes this script is used on things that aren't posts (e.g. normal
+# pages), in which case a date will be unavailable and the output will be
+# unchanged.
+hgroup-wrap()
+{
+ local -r date=${1?Missing date}
+
+ # Abort if this is not a date prefix
+ [[ $date =~ [0-9]{4}-[0-9]{2}-[0-9]{2} ]] || {
+ cat
+ return
+ }
+
+ sed '/^<h1/{
+ i<hgroup>
+ a<h2 class="date">'"$date"'</h2></hgroup>
+ }'
+}
+
+
+# Generate HTML from post. Note that `pagetitle' is set just to suppress
+# Pandoc warnings about it missing; it is unused.
+main()
+{
+ local -r file=${1?Missing file name}
+ local -r base=$( basename "$file" .md )
+ local -r date=${base:0:10}
+
+ pandoc -f"$( pexts )" -thtml5 \
+ --standalone --template src/pandoc.tpl \
+ --metadata pagetitle:ignoreme \
+ --base-header-level=1 \
+ -B <( src/mkheader post @__PAGE_TITLE__@ ) \
+ -A src/footer.tpl.htm \
+ < "$file" \
+ | src/h12title @__PAGE_TITLE__@ \
+ | hgroup-wrap "$date"
+}
+
+
+main "$@"
diff --git a/src/post2meta b/src/post2meta
new file mode 100755
index 0000000..c50c97e
--- /dev/null
+++ b/src/post2meta
@@ -0,0 +1,80 @@
+#!/usr/bin/gawk -f
+# Cache post data in metadata recutils file
+#
+# Copyright (C) 2019 Mike Gerwitz
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# Generates database of metadata for a given post in recutils format for use
+# by other scripts. The post must have already been converted to HTML using
+# `post2html' or some equivalent means.
+#
+# This script is also responsible for determining what constitutes the
+# abstract, which we consider to be everything after the subject line but
+# before the end-of-abstract marker "<!-- more -->". If no such marker
+# exists then the script exits in error.
+##
+
+# Output author and post date derived from the file name.
+BEGINFILE {
+ match( FILENAME, /[^/]+$/, name )
+
+ # TODO: configurable
+ print "author: Mike Gerwitz <mtg@gnu.org>"
+
+ printf "date: %s\n",
+ gensub( /^(.{10}).*$/, "\\1", "", name[0] )
+}
+
+# Wait until after <main>; everything before it is the HTML header.
+/^ *<main>/ { main=1 }
+!main { next }
+
+
+# The first header represents the subject/title and also contains the
+# unique id for this post (as generated by `post2html').
+main && /^<h1 / {
+ # Strip header tags from subject.
+ print "subject: " gensub( /<\/?h[^>]+>/, "", "g" )
+
+ # Grab the generated id from the header and use it to
+ # generate a complete slug.
+ printf "slug: %s/%s\n", \
+ gensub( /^([0-9]+)-([0-9]+).*$/, "\\1/\\2", "", name[0] ), \
+ gensub( /^<h[^>]+ id="([^"]+)".*$/, "\\1", "" )
+
+ # Skip the date line immediately following the header and grab the first
+ # line of the abstract.
+ getline
+ getline
+
+ printf "abstract: %s\n", $0
+ a = 1
+ next
+}
+
+# The end-of-abstract marker is "<!-- more -->". Until we reach that point,
+# output each line of the abstract prefixed by a `+', which is the recutils
+# line continuation marker.
+/^<!-- more -->/ { exit }
+a { printf "+ %s\n", $0 }
+
+# If we get to this point, that means that there is no end-of-abstract
+# marker, which we will consider to be an error just to make sure that the
+# author didn't forget to add one. If the entire post is to be considered
+# part of the abstract, then the marker can be added at the end of the post.
+ENDFILE {
+ print "error: missing '<!-- more -->'" > "/dev/stderr"
+ exit 1
+}
diff --git a/src/posts.sh b/src/posts.sh
new file mode 100755
index 0000000..a3c6182
--- /dev/null
+++ b/src/posts.sh
@@ -0,0 +1,103 @@
+#!/bin/bash
+# Generate posts HTML page
+#
+# Copyright (C) 2019 Mike Gerwitz
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# The generated page contains the abstracts of _all_ posts; this may get
+# unwieldy over time.
+#
+# TODO: Maybe refactor common abstract logic with `index.sh' and
+# `papers.sh'?
+##
+
+set -euo pipefail
+
+# Last generated yet (see `abstract-from').
+declare -i lastyear=0
+
+
+# Get the file name of the Nth most recent post. This relies on the
+# existence of `post/list'.
+pnfile()
+{
+ local -ri n=${1?Missing relative post number}
+
+ sed "${n}q;d" post/list
+}
+
+
+# Read field FIELD from post metadata recfile FILE.
+pmeta()
+{
+ local -r file=${1?Missing file name}
+ local -r field=${2?Missing field name}
+
+ recsel -P "$field" "$file"
+}
+
+
+# Generate HTML for relative post number N (see `pnfile').
+abstract-from()
+{
+ local -r file=${1?Missing post file name}
+
+ local title date slug body
+ title=$( pmeta "$file" subject )
+ date=$( pmeta "$file" date )
+ slug=$( pmeta "$file" slug )
+ body=$( pmeta "$file" abstract )
+
+ local -ri year=${date:0:4}
+
+ if [ $year -ne $lastyear ]; then
+ test $lastyear -eq 0 || echo '</section>'
+ lastyear=$year
+
+ cat <<EOF
+<section class="compact">
+<h1>$year</h1>
+EOF
+ fi
+
+ cat <<EOF
+<article class="abstract">
+ <h2 class="title"><a href="$slug">$title</a></h2>
+ $body
+ <p class="date">Posted on $date.
+ <a href="$slug">Read more &raquo;</a>
+ </p>
+</article>
+EOF
+}
+
+
+# Generate posts page.
+main()
+{
+ src/mkheader posts Posts
+
+ local file
+ while read file; do
+ abstract-from "$file"
+ done < post/list
+
+ echo '</section><br class="end" />'
+
+ cat src/footer.tpl.htm
+}
+
+
+main "$@"
diff --git a/src/rss.sh b/src/rss.sh
new file mode 100755
index 0000000..5fb506f
--- /dev/null
+++ b/src/rss.sh
@@ -0,0 +1,115 @@
+#!/bin/bash
+# Generate RSS feed from given post metadata files
+#
+# Copyright (C) 2019 Mike Gerwitz
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# All posts must be provided on the command line as a path to each
+# individual metadata file, in the order in which they should appear in the
+# feed output.
+##
+
+set -euo pipefail
+
+# Website root URL.
+declare -r www=${WWW_URL:-https://mikegerwitz.com}
+
+
+# Look up metadatum FIELD in metafile FILE.
+pmeta()
+{
+ local -r file=${1?Missing metafile name}
+ local -r field=${2?Missing field name}
+
+ recsel -P "$field" "$file"
+}
+
+
+# Generate RSS item for each post in provided arguments.
+# See `gen-item'.
+gen-items()
+{
+ while [ $# -gt 0 ]; do
+ gen-item "$1"
+ shift
+ done
+}
+
+
+# Generate RSS item for post in metadata file FILE. The abstract will be
+# used for the item description.
+gen-item()
+{
+ local -r file=${1?Missing file name}
+
+ local subject author slug date
+ subject=$( pmeta "$file" subject )
+ author=$( pmeta "$file" author )
+ slug=$( pmeta "$file" slug )
+ date=$( pmeta "$file" date )
+
+ # TODO: entire content?
+ local abstract
+ abstract=$( pmeta "$file" abstract )
+
+ cat <<EOF
+<item>
+ <title><![CDATA[$subject]]></title>
+ <author><![CDATA[$author]]></author>
+ <link>$www/$slug</link>
+ <pubDate>$date</pubDate>
+ <description><![CDATA[$abstract]]></description>
+</item>
+EOF
+}
+
+
+# Output usage information and exit with EX_USAGE.
+usage()
+{
+ cat <<EOF
+Usage: $0 postmeta...
+Generate RSS feed from provide post metadata.
+Example: $0 post/2018-01-01-foo.meta post/2018-02-01-bar.meta
+
+At least one postmeta must be provided.
+EOF
+
+ exit 64 # EX_USAGE
+}
+
+
+# Output RSS feed from all post files provide via arguments.
+main()
+{
+ test $# -gt 0 || usage
+
+ cat <<EOF
+<?xml version="1.0"?>
+<rss version="2.0">
+ <channel>
+ <title>Mike Gerwitz's Thoughts and Ramblings</title>
+ <link>$www</link>
+ <description>
+ Posts and articles from a free software hacker and activst with a focus on user privacy and security
+ </description>
+ $( gen-items "$@" )
+ </channel>
+</rss>
+EOF
+}
+
+
+main "$@"
diff --git a/src/talks.rec b/src/talks.rec
new file mode 100644
index 0000000..3591e88
--- /dev/null
+++ b/src/talks.rec
@@ -0,0 +1,81 @@
+id: sapsf
+title: The Surreptitious Assault on Privacy, Security, and Freedom
+location: LibrePlanet 2017
+date: 2017-03-26
+locimg: lp-2017
+abstract: Privacy, security, and personal freedom: one cannot be had without the
++ others. Each of these essential rights are being surreptitiously
++ assaulted; only the most technical among us even know what to look for,
++ let alone how to defend ourselves. Governments, corporations, and groups
++ of ill-minded individuals are spying and preying upon both users and
++ bystanders with unprecedented frequency and breadth. For those of us who
++ do understand these issues, it would be irresponsible not to fight for
++ the rights of others and continue to bring these assaults to light.
++
++ This talk will survey the most pressing issues of today, including
++ topics of government surveillance and espionage; advertisers and data
++ analytics; the Internet of Things; corporate negligence; public policy
++ and the crypto wars; dangers of a non-free Web and untrusted, ephemeral
++ software; pervasive monitoring; remote servers, services, and “the
++ cloud”; modern vehicles; the fight against decentralization and free
++ software; societal pressures and complacency with the status quo; and
++ more.
++
++ Attendees will walk away with a broad understanding of these topics; an
++ overview of mitigations; and dozens of resources for further research
++ and discussion with others. No prior knowledge of security or
++ cryptography are necessary.
+video-url: https://media.libreplanet.org/u/libreplanet/m/the-surreptitious-assault-on-privacy-security-and-freedom/
+link: /talks/sapsf.pdf Slides
+link: /projects/sapsf/plain/sapsf.bib Bibliography
+link: /projects/sapsf/ Source Code
+
+
+id: ethics-void
+title: The Ethics Void
+location: LibrePlanet 2018
+date: 2018-03-25
+locimg: lp-2018
+abstract: Many communities have widely adopted codes of ethics governing the
++ moral conduct of their members and professionals. Some of these codes may
++ even be enshrined in law, and for good reason—certain conduct can have
++ enormous consequences on the lives of others.
++
++ Software and technology pervade virtually every aspect of our lives. Yet,
++ when compared to other fields, our community leaders and educators have
++ produced an ethics void. Last year, I introduced numerous topics concerning
++ privacy, security, and freedom that raise serious ethical concerns. Join me
++ this year as we consider some of those examples and others in an attempt to
++ derive a code of ethics that compares to the moral obligations of other
++ fields, and to consider how leaders and educators should approach ethics
++ within education and guidance.
+video-url: https://media.libreplanet.org/u/libreplanet/m/the-ethics-void/
+link: /talks/ethics-void.pdf Slides
+link: /projects/ethics-void/ Source Code
+
+
+id: online-freedom
+title: Restore Online Freedom!
+location: LibrePlanet 2016
+date: 2016-03-20
+locimg: lp-2016
+abstract: Imagine a world where surveillance is the default and users must
++ opt-in to privacy. Imagine that your every action is logged and analyzed to
++ learn how you behave, what your interests are, and what you might do
++ next. Imagine that, even on your fully free operating system, proprietary
++ software is automatically downloaded and run not only without your consent,
++ but often without your knowledge. In this world, even free software cannot
++ be easily modified, shared, or replaced. In many cases, you might not even
++ be in control of your own computing—your actions and your data might be in
++ control by a remote entity, and only they decide what you are and are not
++ allowed to do.
++
++ This may sound dystopian, but this is the world you’re living in right
++ now. The Web today is an increasingly hostile, freedom-denying place that
++ propagates to nearly every aspect of the average users’ lives—from their PCs
++ to their phones, to their TVs and beyond. But before we can stand up and
++ demand back our freedoms, we must understand what we’re being robbed of, how
++ it’s being done, and what can (or can’t) be done to stop it.
+video-url: https://media.libreplanet.org/u/libreplanet/m/restore-online-freedom/
+link: https://media.libreplanet.org/u/libreplanet/m/restore-online-freedom-14bf/ Slides
+link: /projects/online-freedom/ Source Code
diff --git a/src/talks.sh b/src/talks.sh
new file mode 100755
index 0000000..15f87dd
--- /dev/null
+++ b/src/talks.sh
@@ -0,0 +1,101 @@
+#!/bin/bash
+# Generate talks HTML page
+#
+# Copyright (C) 2019 Mike Gerwitz
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# Talks are organized along with abstract in $TALKFILE. Abstracts are
+# assumed to be Markdown-formatted and are run through Pandoc. A link to
+# the talk video is provided, along with any supplemental links provided via
+# $TALKFILE (e.g. slides, source code, bibliography).
+##
+
+set -euo pipefail
+
+# Recfile containing talk abstracts and metadata.
+declare -r TALKFILE=${TALKFILE:-src/talks.rec}
+
+
+# List ids of all talks in $TALKFILE.
+talk-list()
+{
+ recsel -CP id "$TALKFILE"
+}
+
+
+# Retrieve field FIELD from talk identified by ID in $TALKFILE.
+talk-field()
+{
+ local -r id=${1?Missing talk id}
+ local -r field=${2?Missing talk field}
+
+ recsel -P "$field" -e "id = '$id'" "$TALKFILE"
+}
+
+
+# Generate abstract for talk.
+abstract()
+{
+ local -r id=${1?Missing talk id}
+
+ local title location locimg date abstract url links
+ title=$( talk-field "$id" title )
+ location=$( talk-field "$id" location )
+ locimg=$( talk-field "$id" locimg )
+ date=$( talk-field "$id" date )
+ abstract=$( talk-field "$id" abstract )
+ url=$( talk-field "$id" video-url )
+ links=$( talk-field "$id" link )
+
+ local abstract_html
+ abstract_html=$( pandoc -fmarkdown -thtml5 <<< "$abstract" )
+
+ cat <<EOF
+<article class="abstract talk">
+ <h2 class="title" id="$id">$title</h2>
+
+ <ul class="links">
+ <li><a class="video $locimg" href="$url">Watch $location Talk</a></li>
+ $(
+ while read lurl ltitle; do
+ printf "<li><a href="%s">%s</a></li>\n" "$lurl" "$ltitle"
+ done <<< "$links"
+ )
+ </ul>
+
+ $abstract_html
+
+ <p class="date">Presented on $date.</p>
+</article>
+EOF
+}
+
+
+# Generate talks page.
+main()
+{
+ src/mkheader talks Talks
+
+ local talks
+ talks=$( recsel -P id src/talks.rec )
+
+ echo '<h1>Talks</h1>'
+ talk-list | while read id; do abstract "$id"; done
+
+ cat src/footer.tpl.htm
+}
+
+
+main "$@"