Skip to content

Instantly share code, notes, and snippets.

@8ullyMaguire
8ullyMaguire / Calibre_and_FanFicFare.md
Last active May 23, 2026 16:42
Setting up Calibre and FanFicFare

My Dream Social Media Platform

  • Multimedia support: The platform would support various media types, including text, pictures, GIFs, videos, audio files, and more. It would have a view similar to Lemmy and a grid-view for visual content, like an image board.

  • Tagging System[^15][^8]: The platform would implement a tagging system so users can categorize posts with relevant keywords. This helps others find content on specific topics and organizes content for better discoverability. Allows granular content filtering for phobias, traumatic events and other sensitive topics, besides the usual like hiding NSFW, memes, etc

  • Custom feeds[^16]: Allow users to create custom feeds that combine posts from multiple users, instances, include/exclude keywords, hashtags. A weighting system to control how much of each source is shown. Sharing filter settings easily with other users. This is similar to Reddit's multireddit, Kbin magazines and Firefish antennas. Firefish antennas allow users to specify keyw

@8ullyMaguire
8ullyMaguire / clean_code.md
Created October 18, 2025 14:26 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@8ullyMaguire
8ullyMaguire / gist:4a1971165dc81904f190597850d81d06
Created December 19, 2025 09:12
Bluesky Reposts-to-Likes Percentage
```javascript
// ==UserScript==
// @name Bluesky Reposts-to-Likes Percentage
// @namespace https://example.com/bsky-repost-like-percentage
// @version 1.0.0
// @description Show reposts as a percentage of likes on Bluesky (bsky.app) by appending a parenthesized percentage next to the repost count.
// @match https://bsky.app/*
// @grant none
// ==/UserScript==
@8ullyMaguire
8ullyMaguire / gist:764e7dc375d3f9d34cadb0d668bd518d
Created May 6, 2026 14:49
A Philosophy of Software Design by John Ousterhout
**Summary of *A Philosophy of Software Design* by John Ousterhout**
Source: danlebrero.com
These are notes by Daniel Lebrero Berna on John Ousterhout’s *A Philosophy of Software Design.*
Some advice in the book goes against the current software dogma. The current dogma is the result of previous pains, but has now been taken to the extreme, causing new pains.
What the author solves with “Comment-First Development,” others solve with Test-Driven Development. The excuses for not writing comments mirror those for not writing tests.
---
## Core Philosophy
1. **Make complexity the #1 enemy** – Complexity makes code hard to understand or modify. Fight it continuously.
2. **Strategic over tactical programming** – Don’t just make working code; invest time in good design to reduce long‑term complexity. Avoid being a “tactical tornado”.
3. **Zero tolerance for complexity** – Complexity accumulates incrementally. Remove it aggressively, even from small changes.
4. **Design it twice** – Explore at least two radically different designs before choosing one.
5. **Obviousness is the goal** – Good design makes the system obvious to readers, not just to the author.
6. **It’s easier to see design problems in someone else’s code** – Use code reviews to gain that perspective.
7. **If you aren’t improving the design when changing code, you’re probably making it worse** – Always leave the design better than you found it (Boy Scout Rule).
@8ullyMaguire
8ullyMaguire / gist:aa0945081e3a359f40f752a1aaab2056
Created May 24, 2026 10:10
website-to-epub AI agent skill
---
name: website-to-epub
description: Convert an mdBook/mkDocs documentation website to EPUB for e-reader reading. Downloads clean Markdown from GitHub source, assembles in chapter order, converts with pandoc.
tags: [epub, pandoc, mdbook, documentation, ebook, converter, website]
trigger: epub documentation website mdbook docs-to-epub convert-docs ebook
---
# Website Documentation → EPUB
Convert a full mdBook documentation site (or similar static-doc site) into a clean EPUB for offline reading on an e-reader (phone, Kindle, etc.).
@8ullyMaguire
8ullyMaguire / ao3_reading_time_and_quality_core.js
Created May 31, 2026 18:12
AO3: Reading Time & Quality Score
// ==UserScript==
// @name AO3: Reading Time & Quality Score
// @version 4.0.6
// @author BlackBatCat
// @description Add reading time, chapter reading time, and quality scores to AO3 works with color coding, score normalization and sorting.
// @match *://archiveofourown.org/
// @match *://archiveofourown.org/tags/*
// @match *://archiveofourown.org/works*
// @match *://archiveofourown.org/chapters/*
// @match *://archiveofourown.org/users/*
@8ullyMaguire
8ullyMaguire / XtoB - Twitter to Bluesky Crossposter.user.js
Last active June 5, 2026 06:27
XtoB – Auto Crosspost Twitter/X → Bluesky
// ==UserScript==
// @name XtoB – Auto Crosspost Twitter/X → Bluesky
// @version 1.6.0
// @description Auto-crossposts to Bluesky when you POST/REPOST on Twitter/X. Uses author handles (e.g., @user) in reposts. Button mode: butterfly for reposts only.
// @author Mistral AI
// @match https://x.com/*
// @match https://twitter.com/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_xmlhttpRequest
@8ullyMaguire
8ullyMaguire / gist:8425b33dc74be9abcf52f9f3d1cbc46a
Last active June 12, 2026 20:31
VTuber Setup Log — XR Animator + Warudo + OBS on Linux