Skip to content

Instantly share code, notes, and snippets.

@hpcdisrespecter
hpcdisrespecter / sootpost.md
Created May 12, 2025 19:16
Obcessed Brimstone Post about Luke

Luke Smith AKA Lute

A Chronically Online AuDHD Man Loredumps About a Niche Microceleb (o algo)
An Obcessed Brimstone Longform Post

> tl;dr, Luke Smith is an internet microceleb who makes it a point to complain about modern life and being online, while being less online than he lets on. He is otherwise a typical right-of-center imageboard-adjacent entrepeneur taking crypto donations for projects, and those projects are polarizing because of their technical shortcomings and/or content, which may be seen as incongruent when his professed vs revealed preferences are taken into account.

Luke Smith, began his PhD. in Lingustics at the University of Arizona after earning his Master’s degree from the University of Georgia in 2015 [1]. Frustrated with academia and the tools at his disposal, he leveraged his linguistics background to produce a series of Unix shell scripts and wrappers around LaTeX, creating a set of dotfiles and environment setup sc

(ns ccru (:require [clojure.test :as test] [clojure.string :as str]))
(defn- ascii->ccru [c] (-> c int (- 55)))
(def abc "ABCDEFGHIJKLMNOPQRSTUVWXYZ")
(def ccru-map (into (hash-map) (map #(vector % (ascii->ccru %)) (seq abc))))
(defn- ccru [word] (reduce + (map #(get ccru-map % 0) (str/upper-case word))))
(defn- web-parse [html] (map #(nth % 2) (re-seq #"<a href(.*?)>(.*)</a>" html)))
(def dict-url "https://en.wiktionary.org/wiki/Wiktionary:Frequency_lists/PG/2006/04/1-10000")
(def words (->> dict-url slurp web-parse (map str/upper-case) (drop 2) (take 10000)))
(def ccru-word-map (group-by ccru words))
from flask import Flask, request, jsonify, send_file
from flask_cors import CORS
from rdkit import Chem
from rdkit.Chem import Draw, AllChem
from PIL import Image
import io
import base64
import logging
import json
import os
@hpcdisrespecter
hpcdisrespecter / webp-daemon.rc
Created April 3, 2025 12:58
Convert webp automation for systemd/openrc
#!/sbin/openrc-run
# /etc/init.d/webp-daemon
name="WebP Conversion Daemon"
description="Monitors and converts WebP files in home directory"
supervisor="supervise-daemon"
command="/usr/local/bin/webp-daemon.sh"
command_user="${RC_SVCNAME##*.}"
: ${command_user:=nobody}
#!/usr/env/bin python
# -*- coding: utf-8 -*-
'''
Description: This code demonstrates the following:
- Pythonic loops are slow
- List comprehensions are faster
- vectorized operations like numpy are faster than list comprehensions
- parallel computing is faster than vectorized operations for large datasets
- Just-In-Time (JIT) compilation can speed up Python code
@hpcdisrespecter
hpcdisrespecter / jellyfin.cfg
Created March 31, 2025 21:08
A Jellyfin server config for nginx
server {
server_name YOUR_SERVER_LOCATION;
listen 443 ssl http;
#listen [::]:443 ssl http;
client_max_body_size 20M;
resolver 127.0.0.1 valid=30;
ssl_certificate /etc/letsencrypt/live/YOUR_VALUE_HERE/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/YOUR_VALUE_HERE/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
@hpcdisrespecter
hpcdisrespecter / spacecadet.json
Created March 20, 2025 16:32
Representation of the Space Cadet APL Keyboard
[
{
"backcolor": "#dbd3d3"
},
[
{
"c": "#0073a2",
"t": "#CCCCB7",
"p": "SA",
"a": 7,
@hpcdisrespecter
hpcdisrespecter / init.lua
Created March 17, 2025 16:28
idk famalam neovim init.lua it's not really hard
-- -*- lua -*-
-- We use Packer for package management
local function bootstrap_pckr()
local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim"
if not vim.uv.fs_stat(pckr_path) then
vim.fn.system({
'git',
'clone',
module Main where
import Control.Monad (when)
import Control.Monad.State (StateT, execStateT, get, put, modify, gets, lift)
import Data.List (intercalate, find, sortBy)
import System.Environment (getArgs)
import System.IO (hSetEcho, hSetBuffering, stdin, stdout, BufferMode(NoBuffering), hFlush)
import System.Random (randomRIO)
import System.Exit (exitSuccess)
import Data.Maybe (isJust)
## NOTES
#
# - You will need to change your drive settings to make this work for you
# - You will need OVMF somewhere (https://github.com/tianocore/tianocore.github.io/wiki/OVMF)
# - You will need a OSK key from TIM APPLE so it boots (see https://sive.host/index.php/knowledgebase/388/Installing-macOS-12-Monterey-on-Proxmox-7.html)
qemu-system-x86_64 \
-enable-kvm \
-machine q35 \