This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "repo","repo:status","repo_deployment","public_repo","repo:invite","security_events","admin:repo_hook","write:repo_hook","read:repo_hook","admin:org","write:org","read:org","admin:public_key","write:public_key","read:public_key","gist","notifications","user","read:user","user:email","user:follow","project","read:project","read:project","write:packages","read:packages","delete:packages","admin:gpg_key","write:gpg_key","read:gpg_key","codespace","workflow","read:audit_log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Some constants | |
| local re = "${(%w+)}" | |
| local color_fmt = "[color=${c}]${v}[/color]" | |
| local player = game.player | |
| local printing_entity = player | |
| --- @type PrintSettings | |
| local print_settings = { | |
| sound = defines.print_sound.never, | |
| skip = defines.print_skip.never, | |
| game_state = false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Dump the full range of 8-bit colors available in the terminal! | |
| # RAINBOWS! | |
| function dump_8bit_colors() { | |
| # -- Forward declare variables! | |
| local FG; | |
| for i in {0..255}; do | |
| FG="15"; | |
| if [[ $(( ("$i" - 16) % 36 )) -eq 0 ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Useful one liner to get the script directory from almost any location. | |
| declare SCRIPT_DIR; | |
| SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"; | |
| # Useful one liner to get the script directory from almost any location. | |
| declare SCRIPT_DIR; | |
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"; | |
| # Multi-line solution to get the script directory from any location. | |
| declare SCRIPT_SOURCE SCRIPT_DIR; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git status --porcelain | Select-String -Raw -Pattern '^\?\?' | ForEach-Object { return (($_ -split '^\s*(\?\?)\s+')[1] -split "-", 2)[0]; } | ForEach-Object { return Get-ChildItem -File -Filter "$((Split-Path $_)[-1])*" ".minecraft/mods"; } | Select-Object -Unique | Group-Object -Property { Write-Debug "Inspecting mod file `"$_`"..."; return ([System.Text.RegularExpressions.Regex]::new("(.+?)((\d+\.?){1,3}\d+)[^\d]*").Matches($_.BaseName).Groups[1]); } | Where-Object -Property Count -GE 2 | Select-Object -Property Name, @{Label = "Group"; Expression = { return $_.Group | ForEach-Object { return @{File = $_; Version = [System.Text.RegularExpressions.Regex]::new("(.+?)((\d+\.?){1,3}\d+)[^\d]*").Matches($_).Groups[2] }; } } } | Format-Table -Property @{Label="Mod Name"; Expression={$_.Name.Trim("-")}}, @{Label = "Files"; Expression = { return $_.Group | Join-String -Separator "`n" -Property { return $_.File.BaseName; } } }, @{Label = "Versions"; Expression = { return $_.Group | Join-String -Separator "`n" -Prope |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Remove Discord Voice Channel Activity Timer Experiment | |
| // @namespace http://glektarssza.com/ | |
| // @version 0.0.1 | |
| // @description Removes the experiment that adds timers to Discord voice channels indicating how long they've been active for. | |
| // @author G'lek Tarssza | |
| // @copyright 2025 G'lek Tarssza | |
| // @match https://discord.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=discord.com | |
| // @grant none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name GLFW Documentation Style Updater | |
| // @namespace http://glektarssza.com/ | |
| // @version 0.1.1 | |
| // @description Update the styling on `https://glfw.org` to make it less retina-destroying. | |
| // @license MIT | |
| // @author G'lek Tarssza | |
| // @homepage https://glektarssza.com | |
| // @website https://glektarssza.com | |
| // @source https://gist.github.com/glektarssza/e2a4af934377782e482f624595a3ed13/raw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <config> | |
| <lines at="topleft"> | |
| <line> | |
| <str>{pingicon}{gold}{username} {white}FPS: </str> | |
| <op> | |
| <str>ge</str> | |
| <var>fps</var> | |
| <num>60</num> | |
| <num>45</num> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| declare FFMPEG_OUTPUT INPUT OUTPUT; | |
| while [[ -n "$1" ]]; do | |
| case "$1" in | |
| --help|-h) | |
| echo "ffmpeg-loudnorm.sh [--help|-h] [--version] <INPUT> [OUTPUT]"; | |
| printf "\n"; | |
| echo "=== Arguments ==="; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Install fonts. | |
| .DESCRIPTION | |
| Install the fonts to the system. | |
| .PARAMETER Path | |
| The paths to the font files to install. |
NewerOlder