Skip to content

Instantly share code, notes, and snippets.

View HoldenLucas's full-sized avatar
👀

Holden Lucas HoldenLucas

👀
View GitHub Profile
@HoldenLucas
HoldenLucas / sh.py
Created June 13, 2023 21:56
Python equivalent of `set -x`
import logging
import subprocess
def sh(cmd: str, *, quiet: bool = False) -> str:
"""
The python equivalent of `set -x`.
Runs the provided `cmd`, returning stdout.
In case of a non-zero exit code, prints stdout and stderr.
@HoldenLucas
HoldenLucas / .ghci
Created April 14, 2022 23:25 — forked from rpearce/.ghci
Flake for using Haskell in nix develop
:def hoogle \x -> return $ ":!hoogle --count=15 \"" ++ x ++ "\""
:def doc \x -> return $ ":!hoogle --info \"" ++ x ++ "\""
:set -Wall
:set -fno-warn-type-defaults -ferror-spans -freverse-errors -fprint-expanded-synonyms
:set prompt "\ESC[0;32m%s\n\ESC[m[ghci]\ESC[38;5;172mλ \ESC[m"
:set prompt-cont " \ESC[38;5;172m> \ESC[m"
@HoldenLucas
HoldenLucas / D&R.md
Created November 13, 2020 20:27
Death and Repudiation License

D&R (Death and Repudiation) License

This software may not be used directly by any living being. ANY use of this software (even perfectly legitimate and non-commercial uses) until after death is explicitly restricted. Any living being using (or attempting to use) this software will be punished to the fullest extent of the law.

For your protection, corpses will not be punished. We respectfully request that you submit your uses (revisions, uses, distributions, uses, etc.) to