Skip to content

Instantly share code, notes, and snippets.

View hopeseekr's full-sized avatar

Theodore R. Smith hopeseekr

View GitHub Profile
@hopeseekr
hopeseekr / 001-calibre-web.conf
Created March 29, 2025 15:49
Optimized Calibre-web Nginx reverse proxy
# Prequiste: For security, set Calibre to listen to 127.0.0.4:8383:
# Admin -> Basic Configuration -> Server Settings: Server port 8383.
# Then edit `/etc/systemd/system/multi-user.target.wants/calibre-web.service`:
# Change to `ExecStart=/usr/lib/calibre-web/cps.py -i 127.0.0.4`.
# sudo systemctl daemon-reload
# sudo systemctl restart calibre-web
server {
listen [::]:443 ssl;
listen 443 ssl;
@hopeseekr
hopeseekr / StackOverflow Stats.md
Last active January 9, 2026 18:01
StackOverflow Dec 2024 stats

Disclaimer: I'm in the Top 1% of StackOverflow contributors with 23,315 rep points.

I asked 1 high-quality question in 2024, and it was closed almost immediately, and I haven't engaged with the site since.

If someone with 20,000+ karma has their nicely-formatted questions closed so quickly, what must the newbies and rank-in-file encounter? This is probably a big reason why it's declining.


@hopeseekr
hopeseekr / nthDay.php
Created September 24, 2025 13:39
nth Day PHP + benchmarks
<?php
// Day | dateSuffixOriginal (s) | date_suffix_v5 (s) | Difference (date_suffix_v5 - dateSuffixOriginal) | % Difference
// ----|------------|------------|------------|------------
// Avg | 0.024745 | 0.012849 | -0.011896 | -48.06%
const DAY_SUFFIXES = ['th', 'st', 'nd', 'rd', 'th', 'th', 'th', 'th', 'th', 'th'];
function date_suffix_v5(int $day)
{
// Single comparison for 11th, 12th, 13th
@hopeseekr
hopeseekr / better-rimworlds.map
Last active August 15, 2025 12:45
HopeSeekr's Better Rimworlds Mods Map
Rimworld
├── BetterRimworlds.github
│ └── profile
│ └── (1) README.md
├── ComaDrug
│ ├── Source
│ │ ├── (2) HediffComp_MinimumNeed.cs
│ │ ├── (3) HediffComp_ModifyNeedRate.cs
│ │ ├── (4) HediffComp_WakeOnHediff.cs
│ │ └── (5) NeedLevel.cs
@hopeseekr
hopeseekr / docker_dedicated_filesystem.md
Created February 3, 2018 04:01
Putting Docker on its own pseudo filesystem

Docker on BTRFS is very buggy and can result in a fully-unusable system, in that it will completely butcher the underlying BTRFS filesystem in such a way that it uses far more disk space than it needs and can get into a state where it cannot even delete any image, requiring one to take drastic actions up to and including reformatting the entire affected BTRFS root file system.

According to the official Docker documentation:

btrfs requires a dedicated block storage device such as a physical disk. This block device must be formatted for Btrfs and mounted into /var/lib/docker/.

In my experience, you will still run into issues even if you use a dedicated partition. No, it seems it requires a standalone

@hopeseekr
hopeseekr / gdm-prime.patch
Created August 10, 2025 20:01
gdm-prime AUR Fix
diff --git a/.SRCINFO b/.SRCINFO
index 38634e2..672ac4e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -45,9 +45,11 @@ pkgbase = gdm-prime
source = git+https://gitlab.gnome.org/GNOME/gdm.git#tag=48.0
source = 0001-Xsession-Don-t-start-ssh-agent-by-default.patch
source = 0002-nvidia-prime.patch
+ source = 0003-gnu23-bool-fix.patch
b2sums = d08d2137f630999b2f36bd8b798805e145fd7350fc4a092056cfdddd2170ae57b3b17a3a8f44f4c08a7e527a165fdce0dfa7a934188bc487d2a6d5bd848497b0
@hopeseekr
hopeseekr / Theodore_R._Smith-CV-2025-07-25.md
Created July 25, 2025 14:40
Theodore R. Smith CV 2025-07-25

Theodore R. Smith CEO, Autonomo by Autonomous Programming, LLC +1-832-303-9477 | theodore.smith@autonomo.codes GitHub: github.com/hopeseekr | Packagist: packagist.org/users/hopeseekr/


Professional Summary

CEO and technology innovator with 20+ years of experience in AI, software architecture, and autonomous system development. Expert in building and training foundation models and large language models (LLMs), and delivering agentic AI autonomous applications. Proven track record of leading engineering teams, mentoring developers, and designing scalable, secure, and maintainable systems. Strong background in education through team leadership, training, and development of developer tools and SDKs.

@hopeseekr
hopeseekr / composer-version-constraints.json
Created May 30, 2025 08:21
All Actual Composer Version Constraints
[
"3.7.*@stable | 3.6.*@stable | 3.5.*@stable | 3.4.*@stable | 3.3.*@stable | 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable",
"^0.10 | ^0.11 | ^0.12 | ^0.13 | ^0.14 | ^0.15 | ^0.16 | ^0.17 | ^0.18 | ^0.19 | ^0.20 | ^0.21 | ^0.22 | ^0.23 | ^0.24 | ^0.25 | ^0.26 | ^0.27 | ^0.28 | ^0.29",
"^0.10.2|^0.11.0|^0.12.0|^0.13.0|^0.21.0|^0.22.0|^0.23.0|^0.24.0|^0.25.0|^0.26.0|^0.27.0|^0.28.0|^0.29.0|^0.30.0|^0.31.0|^0.32.0|^0.33.0|^0.34.0|^0.35.0",
"^0.10 | ^0.11 | ^0.12 | ^0.13 | ^0.14 | ^0.15 | ^0.16 | ^0.17 | ^0.18 | ^0.19 | ^0.20 | ^0.21 | ^0.22 | ^0.23 | ^0.24 | ^0.25 | ^0.26 | ^0.27",
"~3.7@stable | 3.4.*@stable | 3.3.*@stable | 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable",
"103.0.4-p9 || 103.0.4-p11 || 103.0.5-p8 || 103.0.5-p10 || 103.0.6-p6 || 103.0.6-p8 || 103.0.7 || 103.0.7-p1 || 103.0.7-p3",
"3.4.*@stable | 3.3.*@stable | 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@sta
@hopeseekr
hopeseekr / swe_bench-tests.json
Created May 26, 2025 16:11
SWE-Bench Test Datasets
{
"url": "https://api.github.com/repos/pvlib/pvlib-python/pulls/1",
"id": 29411065,
"node_id": "MDExOlB1bGxSZXF1ZXN0Mjk0MTEwNjU=",
"html_url": "https://github.com/pvlib/pvlib-python/pull/1",
"diff_url": "https://github.com/pvlib/pvlib-python/pull/1.diff",
"patch_url": "https://github.com/pvlib/pvlib-python/pull/1.patch",
"issue_url": "https://api.github.com/repos/pvlib/pvlib-python/issues/1",
"number": 1,
"state": "closed",
@hopeseekr
hopeseekr / amazing-aliases.sh
Last active April 8, 2025 18:32
Amazing Linux, PHP and Git aliases
# Dev aliases
alias free="free -m"
alias dup='(docker-compose up -d && docker-compose logs -ft)'
# I recomment putting this in /etc/cron.daily/
alias docker-prune='docker rmi $(docker images | grep "^<none>" | awk "{print $3}")'
# Git
alias gd='git diff'
alias ga='git add'
alias gco='git checkout --ours'