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
| https://www.google.com/complete/search?client=firefox&channel=fen&q=%s |
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
| ! === "Statement" Banners === | |
| ! Hide the various "statement" banners YouTube sometimes puts up | |
| youtube.com##ytd-statement-banner-renderer:upward(1) | |
| www.youtube.com##ytd-statement-banner-renderer:upward(1) | |
| ! === Shorts === | |
| ! Hide the "Shorts" button from the collapsed sidebar | |
| youtube.com##.ytd-mini-guide-entry-renderer:has-text(Shorts):upward(1) |
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 -a CMD_LINE | |
| # We're running ffmpeg, of course | |
| CMD_LINE+=(ffmpeg) | |
| # Don't bother showing the ffmpeg banner, accept prompts by default | |
| CMD_LINE+=(-hide_banner -y) | |
| # Optionally limit CPU threads, really shouldn't be needed since everything is on the GPU | |
| #CMD_LINE+=(-threads 8) |
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
| # Each argument does the following: | |
| # PROTON_USE_WINED3D - Boot the game using Wine3D instead of DXVK which can break older Unity-based games. | |
| # Only enable if you're playing a Unity-based game that isn't launching in Proton! | |
| # GAMEMODERUNEXEC - Set the CLI command to run the game with inside of `gamemoderun` | |
| # gamemoderun - Run the game inside of `gamemode`, which changes some Linux settings for better gaming performance. | |
| # %command% - The game's command, which get's passed to `gamemoderun`. | |
| PROTON_USE_WINED3D=1 GAMEMODERUNEXEC="mangohud prime-run" gamemoderun %command% |
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
| // Source - https://stackoverflow.com/a/31220250 | |
| // Posted by Christopher Rucinski, modified by community. See post 'Timeline' for change history | |
| // Retrieved 2026-01-26, License - CC BY-SA 3.0 | |
| import java.util.Arrays; | |
| import javax.annotation.Nullable; | |
| public class HashCodeImpl { | |
| public boolean booleanField; | |
| public byte byteField; |
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 |
NewerOlder