This file contains 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
$k = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects*' | |
Get-ItemProperty -Path $k | | |
ForEach-Object { | |
$s = (Get-ItemProperty -Path $_.PSPath).Settings | |
$s[8] = 2 | |
Set-ItemProperty -Path $_.PSPath -Name Settings -Value $s | |
} | |
Stop-Process -f -ProcessName explorer |
This file contains 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 | |
# Fixes root and write permissions for system files - Amaro M. | |
ROOT='Need to run as root.' | |
NOTR='No non-system users found, cannot continue.' | |
WHAT='This will change “owner:group” to “root:root” and remove write permission for “others”.' | |
WORK='Searching for and correcting file permissions and file write problems...' | |
FXED='Fixed: %N was “%U:%G”.' | |
NOFP='No problems have been encountered, exiting...' | |
LOGA='Log file is located at “%s”.\n' | |
case "${LANGUAGE:-$LANG}" in es*) |
This file contains 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 | |
# Automatic Wine installer for Debian-based distros - Amaro M. | |
Fmt='printf' | |
DVER="winehq-stable" | |
VER=${1:-$DVER} | |
SF="%s\n" | |
NEED_ROOT='This script must be run as root.' | |
NOT_VALID_BRANCH='“%s” is not a valid branch name.\n' |
This file contains 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/sh | |
# NAME: upload-github-asset.sh | |
# DESC: Uploads an asset to GitHub | |
# DATE: Dec 27, 2020. Modified Dec 27, 2020. | |
# ORIGINAL: https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
# Get args | |
owner=$1 | |
repo=$2 |
This file contains 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
figure it out yourself | |
please quit asking me |