Skip to content

Instantly share code, notes, and snippets.

View lc-guy's full-sized avatar
🐧
never forget grape-kun

lc-guy

🐧
never forget grape-kun
View GitHub Profile
@neoakris
neoakris / 0_traefik_mirror_lab.md
Last active March 8, 2025 13:06
Reproducible Demo of Traefik 2.0 Traffic Mirroring on EKS

Reproducible Demo of Traefik 2.0 Traffic Mirroring

Overview

What to expect in this doc:

  • Traefik 2.0 has traffic mirroring functionality that should work on generic Kubernetes, but there's no good how-to guides, let this be the first.
  • This is a how-to guide, that's optimized for understanding
@TheSunCat
TheSunCat / DisblockOrigin.theme.css
Last active October 18, 2025 18:17
Hide all Nitro & Boost upsells in Discord!
/**
* @name Adblock for Discord
* @author TheSunCat and contributors
* @version 1.0.0
* @description We have moved to Codeberg! Follow the link below:
* @source https://codeberg.org/AllPurposeMat/Disblock-Origin
*/
#app-mount::before {
content: "The Disblock Origin theme has moved to Codeberg! Please check https://codeberg.org/AllPurposeMat/Disblock-Origin";
@eshrh
eshrh / vns-on-linux.md
Last active September 14, 2025 17:12
Personal guide to visual novels on linux

Concise visual novel setup on linux

also see this guide which has better compatibility. This guide is forked from it. written by kamui-7

This guide is very close to exactly how I run vn's on my setup. I can't guarantee it'll work for everyone (in fact, i can probably guarantee it's broken for someone/some game)

Packages i use

sudo pacman -S wine-staging giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs lib32-gst-plugins-goo
@mwlang
mwlang / sanitizer.rb
Created May 28, 2015 20:15
Bulletproof HTML Sanitizing strategy. This was developed to handle HTML that comes from external data feeds. Those data feeds in turn get their actual content from MS-Word saved as HTML, WYSIWYG Javascript Editors, hand-coded HTML, and so on. So this thing needs to be "bulletproof" It requires the use of the sanitize gem. If the whole thing (or …
SINGLE_COLUMN_TABLE_FILTER = lambda do |env|
return unless env[:node_name] == 'table'
table = env[:node]
thead = table.children.detect{|d| d.name == 'thead'}
tbody = table.children.detect{|d| d.name == 'tbody'}
# find the rows, ignore text in between them
rows = []
rows += thead.children.select{|s| s.name == 'tr'} if thead
I have this fetish about Elmer's glue. Let me explain.
When I was a boy, around 8 or so, I was doing a project in my boarding school
one week where we were each given an egg, a box of 1000 toothpicks, a spool of
thread, and a bottle of Elmer's glue. Our task was to build a contraption to
keep the egg safe using only the toothpicks, thread, and glue. There were no
other rules.
We built during the science class and our teacher--Mrs. Braithwaite--would put
them into one of the cafeteria fridges for the rest of the time so the eggs