Skip to content

Instantly share code, notes, and snippets.

molomby /
Last active May 19, 2022
Superscript and Subscript in LaTeX for GitHub

Superscript and Subscript in LaTeX for GitHub

Experimenting GitHubs new LaTeX support to render superscript and subscript.

You can create mathematical expressions including superscript, eg:


But you can also put plaintext into superscript, inline $^{like\ this\ and\ ^{then\ go\ smaller}\ ^{if\ you\ want}}$. Subscript works the same but with _ instead of ^ and looks $_{like\ this}$.

molomby / keystone.js
Created Mar 2, 2022
Example Keystone 6 App with a Shared Credentials List
View keystone.js
import { config } from '@keystone-6/core';
import { statelessSessions } from '@keystone-6/core/session';
import { createAuth } from '@keystone-6/auth';
import { list, graphql } from '@keystone-6/core';
import { password, relationship, text, virtual } from '@keystone-6/core/fields';
const lists = {
User: list({
fields: {
name: text({ validation: { isRequired: true } }),
molomby /
Created Feb 13, 2022
Forward Email API: Wrapper Script for Creating Aliases
#!/usr/bin/env bash
# Usage:
# Example:
# "" dsc
# Results in:
# Email ->, comment: ""
# Environment variables can be supplied at run time or set in ~/.forward-email
molomby / cuid.sql
Created Jun 22, 2021 — forked from srfrog/cuid.sql
View cuid.sql
-- Collision-resistant ids optimized for horizontal scaling and performance, for PL/PgSQL.
-- Based on
-- Version 1.0.0
-- Usage: SELECT cuid();
-- Put a unique host ID (int) here per server instance.
-- Once set, this value should not be changed.
molomby / 210607 Git
Created Jun 7, 2021
Multiple Git SSH Key Pairs
View 210607 Git

Multiple Git SSH Key Pairs

This explains how to configure ssh to allow repos on multiple GitHub or BitBucket accounts to be developed on the same dev environment.

It assumes MacOS.

Basic Config

Usually, when using SSH (with git or otherwise), you'll have a single key pair for the machine you're on (eg. id_rsa). You might also define some default ssh options in your .ssh/config file.

molomby / Keystone 5 - Secure Cookies and Reverse
Created Mar 31, 2020
Background and instructions for fixing cookie issues encountered when deploying Keystone 5 apps behind a reverse proxy (like nginx)
View Keystone 5 - Secure Cookies and Reverse

Keystone 5: Secure Cookies and Reverse Proxies

Can't sign in, eh?



  • Keystone sessions are being used (eg. for authentication)
  • secureCookies Keystone config is true (the default when NODE_ENV is 'production')
molomby /
Last active Mar 27, 2019
Docs for appending the parent directory name to the name of files it contains

Create some test files. I've assumed your filenames have a single "." character:

mkdir foo
touch foo/one.txt foo/two.txt foo/three.txt

If you list the files (ll foo) you'll get something like:


Keybase proof

I hereby claim:

  • I am molomby on github.
  • I am molomby ( on keybase.
  • I have a public key ASC8MmXgjzR_szIFSsEsDFuZ2X1E7GY1XP0P0v-W9ioo4wo

To claim this, I am signing this object: