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
| Get-ChildItem "." | ForEach-Object { Compress-Archive -path $_.Name -destinationPath "$($_.Name).zip"} |
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
| # Get the list of all physical disks | |
| $physicalDisks = Get-PhysicalDisk | |
| # Loop through each physical disk and display its media type, drive letter, and device name | |
| foreach ($disk in $physicalDisks) { | |
| Write-Output "Device ID: $($disk.DeviceID)" | |
| Write-Output "Friendly Name: $($disk.FriendlyName)" | |
| Write-Output "Media Type: $($disk.MediaType)" | |
| # Get the associated partitions |
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 Global Ignore List | |
| # ===================================================================== | |
| # Windows thumbnail cache files | |
| Thumbs.db | |
| Thumbs.db:encryptable | |
| ehthumbs.db |
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
| Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer AltTabSettings ([int]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
| Disable-NetAdapterBinding -Name "*" -ComponentID ms_tcpip6 |
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
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| column_width = 120 | |
| insert_final_newline = true | |
| trim_trailing_whitespace = true | |
| indent_style = space | |
| indent_size = 2 |
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/sh | |
| show_newline() { | |
| if [ -z "$NEW_LINE_BEFORE_PROMPT" ]; then | |
| NEW_LINE_BEFORE_PROMPT=1 | |
| elif [ "$NEW_LINE_BEFORE_PROMPT" -eq 1 ]; then | |
| echo "" | |
| fi | |
| } | |
| PROMPT_COMMAND="show_newline" |
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/sh | |
| rm -rf ~/.local/share/nvim/ && rm -rf ~/.local/state/nvim/ && rm -rf ~/.config/nvim |
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 | |
| # File: ~/.local/bin/update-repos.sh | |
| # Make sure to chmod +x this script after creating it | |
| # Define color variables for styling output | |
| BLUE='\033[0;32m' | |
| YELLOW='\033[1;33m' | |
| RED='\033[0;31m' | |
| BLUE='\033[1;34m' | |
| MAGENTA='\033[1;35m' |
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 | |
| # new display select usb -d 90fps | |
| scrcpy -d --legacy-paste --video-codec=h265 --max-fps=90 --shortcut-mod=ralt --mouse-bind=++bh:++sn --keyboard=uhid --new-display=1920x1080/180 & | |
| # first scrcpy | |
| scrcpy --video-codec=h265 --max-size=1920 --max-fps=60 --shortcut-mod=lctrl --mouse-bind=++bh:++sn --keyboard=uhid & | |
| # second scrcpy | |
| scrcpy --video-codec=h265 --max-fps=60 --shortcut-mod=rctrl --mouse-bind=++bh:++sn --keyboard=uhid --new-display=1920x1080 & |
OlderNewer