Skip to content

Instantly share code, notes, and snippets.

View yunruse's full-sized avatar
don't forget to drink some water!

Mia yun Ruse yunruse

don't forget to drink some water!
View GitHub Profile
@yunruse
yunruse / yt.py
Last active June 14, 2024 04:20
very basic YouTube-to-RSS extractor
#!/usr/bin/env python3
# pip install scrapetube
# for basic operation, use `python -m http.server --cgi`
# and access /cgi-bin/yt.py?c={CHANNEL_ID}
# Note that due to scrapetube limits, dates are fetched as eg "3 days ago"
# so the further in the past a video is, the less precise the date will be.
@yunruse
yunruse / maldon.md
Created August 13, 2024 13:05
Transcription/slight translation of William Maldon (c. 1550)'s account in which he is beaten and nearly killed for discussing iconography

Below is a self-account by “William Maldon of Newington”, written for Foxe’s Book of Martyrs.

It has been collected in Alfred W. Pollard’s Records of the English Bible at page 286, in section XLIV The Reading of the Bible, section C titled The Narrative of William Maldon of Newington, written for Fox's Actes and Monuments.

The limits "In K. Henry's time" and the publication of Actes and Monuments gives this a time period of 1547–1563. The date itself is not provided.

Transcription notes

I have provided annotation for context, rendering of side-notes (as such), my own paragraphing for an easier read, spelling changes (y->i) and the translation of three words for clarity:

@yunruse
yunruse / toggle-bg-sounds.zsh
Created February 28, 2025 12:30
Toggle 'background sounds' in macOS
#!/usr/bin/env zsh
if [ -n "$1" ]; then
if [ "$1" -eq "1" ]; then
defaults write com.apple.ComfortSounds comfortSoundsEnabled -bool true
else
defaults write com.apple.ComfortSounds comfortSoundsEnabled -bool false
fi
# TODO: don't killall if no changes are made (it stutters)
else
@yunruse
yunruse / discord.css
Last active April 20, 2025 10:32
experiment: Discord "visual refresh" tweaks
/**
* @name 'Visual Refresh' Tweaks
* @author Mia yun Ruse
* @authorId 391292177826709504
* @version MOVED
* @website https://github.com/yunruse/visual-refresh-plus-plus
* @description This has moved! Please use the new URL!
**/
@yunruse
yunruse / qr_code.liquid
Created April 28, 2025 13:53
test of Liquid's `render` function
<qr>{{text}}</qr>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js" integrity="sha512-CNgIRecGo7nphbeZ04Sc13ka07paqdeTu0WR1IM4kNcpmBAUSHSQX0FslNhTDadL4O5SAGapGt4FodqL8My0mA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://raw.githubusercontent.com/yunruse/trmnl-tricks/refs/heads/main/QR.js"></script>
<style>
qr img {
border: 10px solid white;
display: inline;
}
qr img {
display: inline !important;