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 / Install-Fonts.ps1
Created June 3, 2025 06:04
Install Windows Fonts without Elevated Permissions
<#
.SYNOPSIS
Install fonts.
.DESCRIPTION
Install the fonts to the system.
.PARAMETER Path
The paths to the font files to install.
@glektarssza
glektarssza / prism-launcher.ps1
Created May 26, 2025 22:54
Prism Launcher Backup Creator
<#
.SYNOPSIS
Create a new backup of a Prism Launcher instance.
.DESCRIPTION
Create a new backup of a Prism launcher instance at the specified
destination. If the instance directory is not specified it will be looked
for in some common locations. These are, in order:
* `$env:APPDATA\PrismLauncher\instances`
@glektarssza
glektarssza / shodan.sh
Created May 21, 2025 20:24
SHODAN ASCII Art Script
This file has been truncated, but you can view the full file.
#!/usr/bin/env bash
RESET="\x1b[0m"
RED="\x1b[38;5;196m"
MAGENTA="\x1b[32;5;164m"
if [[ -z "$(which jp2a)" ]]; then
printf "[${RED}ERROR${RESET}] This program requires '${MAGENTA}jp2a${RESET}' to run!\n";
exit 1;
fi
printf "\x1b[3J\n";
printf "\x1b[0;0H\n";
@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.
@glektarssza
glektarssza / .envrc
Last active May 11, 2025 20:46
Factorio Systemd Service
#-- Put your environment variable overrides here!
@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 / 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 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 / 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 |