Skip to content

Instantly share code, notes, and snippets.

View glektarssza's full-sized avatar
🐍
Hisssssss!

G'lek Tarssza glektarssza

🐍
Hisssssss!
View GitHub Profile
@glektarssza
glektarssza / anti-youtube-birthday-gm.js
Last active April 24, 2025 21:54
YouTube Anti-20th Birthday Changes Greasemonkey Script
// ==UserScript==
// @name YouTube Anti-20th Birthday Limited Item Per Row Script
// @version 0.0.3
// @description Increase the number of videos per row on the YouTube home page in opposition to their 20th birthday changes.
// @author G'lek Tarssza
// @copyright Copyright (c) 2025 G'lek Tarssza
// @namespace https://glektarssza.com/
// @source https://gist.github.com/glektarssza/4ad84d315260adae6649d46ebbcd7852
// @updateURL https://gist.github.com/glektarssza/4ad84d315260adae6649d46ebbcd7852/raw/anti-youtube-birthday-gm.js
// @downloadURL https://gist.github.com/glektarssza/4ad84d315260adae6649d46ebbcd7852/raw/anti-youtube-birthday-gm.js
@glektarssza
glektarssza / .gitconfig
Last active April 22, 2025 10:59
Git Prune Branches (w/ alias version)
[alias]
prune-branches = "!f() { git fetch --prune && for BRANCH in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == \"[gone]\" {sub(\"refs/heads/\", \"\", $1); print $1}'); do git branch $([[ $@ =~ --force ]] && echo \"-D\" || echo \"-d\") $BRANCH; done };f"
@glektarssza
glektarssza / blinks_custom.zsh-theme
Created April 1, 2025 01:30
Custom Blinks Oh My Zsh Theme
@glektarssza
glektarssza / khinsider-dl.ps1
Created February 15, 2025 16:11
khinsider.com PowerShell One Line Downloader
# Replace "<ALBUM>" with the final path to the album to be downloaded.
(wget "https://downloads.khinsider.com/game-soundtracks/album/<ALBUM>" -O -).Split("\n") |
Select-String -Pattern 'playlistDownloadSong' -Raw -SimpleMatch |
%{
$_.TrimStart("<td class=`"playlistDownloadSong`"><a href=`"").TrimEnd("`"><i class=`"material-icons`">get_app</i></a></td>")
} |
%{
(wget "https://downloads.khinsider.com/$_" -O -).Split("\n")
} |
Select-String -Pattern 'eta.vgmtreasurechest.com' -Raw -SimpleMatch |
@glektarssza
glektarssza / oh-my-posh.json
Created February 12, 2025 04:38
Oh My Posh Configuration
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
@glektarssza
glektarssza / gist:0387593d7eb50806ab9095d262f6379d
Created February 3, 2025 21:50
uBlock Origin Rules for hiding YouTube stuff
! Hide end cards on videos
www.youtube.com##.ytp-ce-element
! Hide playables button in sidebar
www.youtube.com##ytd-guide-section-renderer:has-text(Playables)
! Hide playables in search feed
www.youtube.com##.ytd-item-section-renderer span.ytd-rich-list-header-renderer:has-text(Playables):upward(9)
!www.youtube.com##ytd-horizontal-card-list-renderer:has-text(Playables)
! Hide shorts button in sidebar
www.youtube.com##ytd-guide-entry-renderer:has-text(Shorts)
! Hide shorts in home feed
@glektarssza
glektarssza / instructions.md
Created January 21, 2025 04:21
Setup instructions for Minecraft using itzg/minecraft-server
  1. Setup an environment file. Name it .env or something. More configuration options can be found here.
# Set the amount of RAM to max out at.
MEMORY=4G
# Required to access CurseForge APIs (you need to get this yourself😉)
CF_API_KEY=???
TYPE=AUTO_CURSEFORGE
# Link to the version of the mod pack you want to install (NOT THE SERVER FILES!)
CF_PAGE_URL=https://www.curseforge.com/minecraft/modpacks/all-the-mods-9/files/6045443
@glektarssza
glektarssza / .envrc
Last active May 4, 2025 02:00
Minecraft systemd files
#-- Put your environment variable overrides here!
@glektarssza
glektarssza / bullshit-o-meter.html
Created November 12, 2024 03:09
A little speedometer-style gauge built in CSS and HTML.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Bullshit-O-Meter</title>
<style>
.gauge {
width: 400px;
height: 200px;
background-color: #e7e7e7;
@glektarssza
glektarssza / args.txt
Last active October 2, 2024 13:02
JVM Options
-XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.util.jar=ALL-UNNAMED -XX:+IgnoreUnrecognizedVMOptions