Skip to content

Instantly share code, notes, and snippets.

View BeenEncoded's full-sized avatar
💭
Status: All branches up-to-date

Jonathan W BeenEncoded

💭
Status: All branches up-to-date
View GitHub Profile
@BeenEncoded
BeenEncoded / eslint.config.mts
Created October 3, 2025 13:18
Sane defaults for eslint... Because apparently eslint doesn't have sane defaults.
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import { defineConfig, globalIgnores } from "eslint/config";
export default defineConfig([
globalIgnores(["eslint.config.mts"]),
tseslint.configs.recommendedTypeChecked,
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
@BeenEncoded
BeenEncoded / cppbuild.sh
Created October 20, 2022 23:06
C++ Build Script
#!/bin/bash
# this script creates a build directory (if it has to), hops
# into it, and makes everything. Additionally, if '-c' is passed
# it will also clean the build directory by deleting it and remaking it.
#Dependencies:
#realpath (corutils), cmake, make
original_folder=$PWD
* Here be dragons:
_ __,----'~~~~~~~~~`-----.__
. . `//====- ____,-'~`
-. \_|// . /||\\ `~~~~`---.___./
______-==. _-~o `\/ ||| \\ _,'`
__,--' ,=='||\=_ ;_,_,/ _-'|- |`\ \\ ,'
_-' ,=' | \\`. '',/~7 /- / || `\. /
.' ,' | \\ \_ " / /- / || \ /
/ _____ / | \\.`-_/ /|- _/ ,|| \ /
,-' `-|--'~~`--_ \ `==-/ `| \'--===-' _/`
# Hashtest produces and tests hashes against a file.
# Copyright (C) 2019 Jonathan Whitlock
# 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
A recent article devoted to the macho side of programming
made the bald and unvarnished statement:
Real Programmers write in FORTRAN.
Maybe they do now,
in this decadent era of
Lite beer, hand calculators, and “user-friendly” software
but back in the Good Old Days,
when the term “software” sounded funny