Skip to content

Instantly share code, notes, and snippets.


Avi Flax aviflax

View GitHub Profile
View Unix-Like
OS Year of Initial Release
BSD 1977
MINIX 1987
NextStep 1989
Linux 1991
Solaris 1992
aviflax /
Created Jan 14, 2021
Testing using the abbr tag in GFM

This next abbreviation should be denoted as such, IIRC.

View WIP: Phenomenal essay by Cal Newport: The Rise and Fall of Getting Things

This initially reads as though it might be a profile of Merlin Mann, who helped popularize David Allen’s productivity technique Getting Things Done. But it quickly goes deeper, way deeper, into our conception of productivity, its history in our culture, its implication in the current wave of burnout, and how it might evolve in the future.

This paragraph is the inflection point:

> Before there was “personal productivity,” there was just productivity: a measure of how much a worker could produce in a fixed interval of time. At the turn of the twentieth century, Frederick Taylor and his acolytes had studied the physical movements of factory workers, looking for places to save time and reduce costs. It wasn’t immediately obvious how this industrial concept of productivi

View Quoting Jeff Atwood on Categories vs

Discussing categories vs tags in Discourse:

Categories are like walls. Build 4 and you have a nice house; build 24 and you have a maze. Tags are much lighter weight structures than categories and more flexible.

from Do Categories Scale?

View Apps that combine spreadsheets and

Apps that combine spreadsheets, databases, and/or documents

I’ve noticed a lot of these cropping up lately and just want to start keeping track of them:

View md2slack.js
#!/usr/bin/env node
const slackifyMarkdown = require('slackify-markdown');
const fs = require('fs');
const markdown = fs.readFileSync(0, 'utf-8');
const slacked = slackifyMarkdown(markdown);
aviflax /
Created Aug 18, 2020
Running a shell script from anywhere in a Git repo
# This can be run from anywhere within the repo.
set -eu
# This is the trick
repo_root=$(git rev-parse --show-toplevel)
# Now that we have the absolute path to the repo root, we can just use it
aviflax / userContent.css
Last active Jan 15, 2021
Firefox user CSS file to improve Instapaper printing
View userContent.css
@media print {
div.read_content_container > main > div#story {
column-count: 2 !important;
font-size: smaller;
div.read_content_container > main a[href] {
color: rgb(19, 127, 179) !important;
text-decoration: underline !important;
View bbcommit
# Derived from
bbedit \
--create \
--language 'git-commit-message' \
--separate-windows \
--wait \
--resume \
aviflax / deps.edn
Last active Jun 23, 2020
Using Specter to modify deeply-nested values in a DaD DB. Start the REPL with `clj -A:repl:dad:specter`
View deps.edn
; These aliased can/should be added to the same section in ~/.clojure/deps.edn
; They can then be “activated” by starting the REPL with: clj -A:repl:dad:specter
{:repl {:jvm-opts ["-XX:-OmitStackTraceInFastThrow"
:main-opts ["-e" "(.getLocalPort,(get-in,@#'clojure.core.server/servers,[\"repl\",:socket]))"
;; *** LIBRARIES ***