Skip to content

Instantly share code, notes, and snippets.

View xoascf's full-sized avatar
♥️
time

Amaro Martínez xoascf

♥️
time
  • The store
  • 03:41 (UTC -05:00)
View GitHub Profile
@xoascf
xoascf / ShowTB.ps1
Created September 22, 2021 20:55
Disable the automatic hiding of the taskbar in Windows
$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
@xoascf
xoascf / SetToRoot.sh
Last active September 23, 2021 05:17
Fix Root Privileges in File System
#!/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*)
@xoascf
xoascf / WineInstaller.sh
Last active December 11, 2023 21:39
Automatic Wine installer for Debian-based distros
#!/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'
@xoascf
xoascf / upload-github-asset.sh
Last active December 28, 2020 09:46
Upload an asset to GitHub with basic Linux utilities
#!/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
@xoascf
xoascf / how to make an osu server
Created October 7, 2019 17:26
how to make an osu server
figure it out yourself
please quit asking me