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 / 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 / .envrc
Last active May 10, 2025 14:00
Minecraft systemd files
#-- Put your environment variable overrides here!
@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 / 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 / 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 / .gitconfig
Last active May 20, 2025 13:36
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 $( (expr \"$*\" : \"--force\" > /dev/null) && echo \"-D\" || echo \"-d\" ) $BRANCH; done };f"
@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 / location-change.ps1
Created May 8, 2025 16:12
PowerShell Location Change Hook
function Register-LocationChangedHandler {
$script:existingAction = $null;
if ($null -ne $ExecutionContext.InvokeCommand.LocationChangedAction) {
$script:existingAction = $ExecutionContext.InvokeCommand.LocationChangedAction;
}
$ExecutionContext.InvokeCommand.LocationChangedAction = {
param(
[System.Object]
$eventSender,
[System.Management.Automation.LocationChangedEventArgs]
@glektarssza
glektarssza / .envrc
Last active June 24, 2025 14:57
Factorio Systemd Service
#-- Put your environment variable overrides here!
@glektarssza
glektarssza / Get-SoftwareList.ps1
Last active May 13, 2025 20:18
Get-SoftwareList PowerShell Cmdlet
<#
.SYNOPSIS
Get a list of software installed on the system from the Windows Registry.
#>
function Get-SoftwareList {
[CmdletBinding()]
param(
# The name of the software items to include in the list. Wild cards are
# acceptable. Inclusions are applied after exclusions and before
# filters.