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
| #!/bin/bash | |
| if [[ $# -lt 1 ]]; then | |
| echo "git sparse-checkout helper" | |
| echo " usage: $0 <url>" | |
| exit | |
| fi | |
| set -e |
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
| #!/bin/bash | |
| if [[ $# -lt 1 ]]; then | |
| echo "disk eject helper" | |
| echo " usage: $0 <block device>" | |
| exit | |
| fi | |
| if [[ ! -b $1 ]]; then | |
| echo "$1 is not a block device! aborting" |
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
| #!/bin/bash | |
| REPO="$HOME/repo" | |
| REPO_NAME=repo | |
| SERVER="server:/srv/http" | |
| ARCH=(x86_64 aarch64 i686 arm armv6h armv7h) | |
| for _arg in "$@"; do | |
| # only match zst and xz packages | |
| if [[ ! $_arg =~ ^.+\.pkg\.tar\.(zst|xz)$ ]]; 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
| #!/bin/bash | |
| # ======================================== | |
| # Grade Checker for Practical course: | |
| # Advanced Systems Programming in C/Rust | |
| # ======================================== | |
| set -e | |
| RED="\033[31m" |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts] | |
| "Segoe UI (TrueType)"="" | |
| "Segoe UI Black (TrueType)"="" | |
| "Segoe UI Black Italic (TrueType)"="" | |
| "Segoe UI Bold (TrueType)"="" | |
| "Segoe UI Bold Italic (TrueType)"="" | |
| "Segoe UI Emoji (TrueType)"="" | |
| "Segoe UI Historic (TrueType)"="" |
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
| $Displays = Get-DisplayInfo | Where-Object {-not $_.Primary} | |
| foreach ($Display in $Displays) { | |
| if ($Display.Active) { | |
| Disable-Display -DisplayId $Display.DisplayId | |
| } else { | |
| Enable-Display -DisplayId $Display.DisplayId | |
| } | |
| } |