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. |
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 | |
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` |
This file has been truncated, but you can view the full file.
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 | |
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"; |
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 | |
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. |
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
#-- Put your environment variable overrides here! |
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
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] |
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 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 |
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
[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" |
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
function _prompt_char() { | |
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then | |
echo "%{%F{blue}%}±%{%f%k%b%}" | |
else | |
echo ' ' | |
fi | |
} | |
case ${SOLARIZED_THEME} in | |
light) bkg=white;; |
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
# 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 | |
NewerOlder