Skip to content

Instantly share code, notes, and snippets.

View asheroto's full-sized avatar
😎

asheroto

😎
  • United States
View GitHub Profile
@asheroto
asheroto / Disable-VS2019-Telemetry.cmd
Last active June 7, 2021 10:03
Disables Visual Studio 2019 Telemetry
@echo off
:: Confirm running as administrator
fltmc >nul 2>&1 || (
echo This batch script requires administrator privileges. Right-click on
echo the script and select "Run as Administrator".
goto :die
)
:: Change this path if you are using Community or Professional editions
@asheroto
asheroto / Android-Low-Volume-Fix.md
Created May 29, 2021 06:33
How to fix Android in-call speaker volume too quiet!
  • You must have developer mode enabled
  • Go into Settings > System > Developer Options
  • Enable "Disable absolute volume"
  • Reboot phone
@asheroto
asheroto / EnableRDP.ps1
Last active April 3, 2026 23:42
Enable RDP on a computer with PowerShell.
# Warning
Clear-Host
Write-Output "Run this script on the computer you want to access via RDP"
Write-Output ""
# Ask
Write-Output "Remote address can be an IP address or network with CIDR"
Write-Output "Example: 192.168.0.5 or 192.168.0.0/24"
Write-Output ""
$RemoteAddress = Read-Host "Remote Address"
@asheroto
asheroto / wordpress-security.sh
Created May 2, 2021 03:53
WordPress chmod / security - standard recommendations. Run script at the root of the website (where wp-content, wp-config.php, etc is located).
#!/bin/bash
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 755 wp-content;
find wp-content/ -type f -exec chmod 644 {} \;
find wp-includes/ -type f -exec chmod 644 {} \;
mkdir wp-content/uploads; find wp-content/uploads -type f -exec chmod 755 {} \;
chmod 444 wp-config.php;
@asheroto
asheroto / install-docker.sh
Last active April 13, 2021 10:53
Install Docker on Linux simply in one go
#!/bin/bash
sudo apt update
sudo apt install curl wget git -y
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $(whoami)
rm get-docker.sh -f
sudo apt install docker-compose -y
@asheroto
asheroto / IsPortActive.md
Last active June 24, 2023 06:53
Check if a port is active/open/listening in PowerShell.
@asheroto
asheroto / Public-Key-Authentication-Troubleshooting.md
Last active November 16, 2025 13:45
OpenSSH on Windows - working sshd_config for public key authentication

Public key authentication troubleshooting

Make sure you don't have ANY instances of sshd or ssh-agent running (important):

  • Run PowerShell as Administrator:
Stop-Service sshd
Stop-Service ssh-agent
taskkill /f /im sshd.exe
taskkill /f /im ssh-agent.exe
@asheroto
asheroto / PastePlainText.ahk
Last active October 30, 2025 01:54 — forked from jadient/PastePlainText.ahk
AutoHotKey script to paste text without formatting
; WindowsKey-V shortcut to paste text with no formatting
; (like Paste Special > Plain Text, but faster and works everywhere)
; for AutoHotKey
#v::
ClipSaved := ClipboardAll
tempClipboard := clipboard
Clipboard := tempClipboard
Send ^v
Sleep, 500
Clipboard := ClipSaved
@asheroto
asheroto / Install-Docker-on-Debian.sh
Last active February 10, 2021 16:12
Install Docker on Debian Linux
apt-get remove docker docker-engine docker.io containerd runc
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
add-apt-repository \
@asheroto
asheroto / Dotnet-Publish-Script-Windows.ps1
Last active February 15, 2021 10:47
Publishes dotnet packages for supported .NET 5 compatible operating systems
<#
.SYNOPSIS
Publishes dotnet packages for supported .NET 5 compatible operating systems
.DESCRIPTION
Publishes dotnet packages for supported .NET 5 compatible operating systems
.NOTES
Created by : asheroto
Date Coded : 01/26/2020
More info: : https://gist.github.com/asheroto/b8c82ea515e8baa569807108d1d9ed0a
#>