Skip to content

Instantly share code, notes, and snippets.

View Aldaviva's full-sized avatar
🆒
This user is COOL

Ben Hutchison Aldaviva

🆒
This user is COOL
View GitHub Profile
@Aldaviva
Aldaviva / Easy PowerShell Remoting.md
Last active July 30, 2024 02:54
Easy PowerShell Remoting

Easy PowerShell Remoting

PowerShell Remoting allows you to connect to a remote shell on another Windows computer.

The server is the Windows computer that will host the shell, and that you will connect to. The client is the Windows computer that will create the connection, on which you will see and interact with the shell.

These steps assume a workgroup with Windows 10 or Server 2016 or later on the server, and Windows 7 or later on the client. It assumes that the client is running with a user account that also exists on the server with the same password. Neither the server nor the client need to be joined to a domain or using Kerberos.

Prerequisites

@Aldaviva
Aldaviva / Useful programs.md
Last active April 5, 2023 08:46
Applications and extensions that are handy to install in different operating systems and browsers

Windows

Program Category Notes
7+ Taskbar Tweaker Tweaking Adjust taskbar behavior.
AltSnap Window management Easily move windows with mouse.
Autoruns Startup management Turn off startup processes.
CCleaner System cleanup Upsells are a little annoying.
dBpoweramp Audio encoder Transcode music batches in parallel.
DisplayFusion Tweaking Plethora of multi-monitor, desktop, and shell tweaks.
Driver Store Explorer System cleanup Uninstall unused drivers.
@Aldaviva
Aldaviva / Disable programs from reopening.md
Last active June 24, 2020 14:55
Disable Windows 10 or Server ≥ 2016 from reopening programs on startup or reboot.

Usage

  1. Save the disable-program-reopen.ps1 file below to a directory on your computer, such as %SYSTEMROOT%\System32\GroupPolicy\User\Scripts\Logon.
  2. Allow unsigned local PowerShell scripts to run on your computer.
    1. Open PowerShell as an administrator.
    2. Run the following command and answer Y when it prompts you.
      Set-ExecutionPolicy RemoteSigned
  3. Set a Group Policy to run this script when users log on.
  4. Open the Local Group Policy Editor (gpedit.msc, or search for Group Policy in the Start Menu).
@Aldaviva
Aldaviva / Enable OpenSSH SSH server in Windows Server 2019.md
Last active April 17, 2024 06:52
OpenSSH sshd is sort of straightforward, and better than Cygwin.

Assumptions

  • Your server is running Windows Server 2019.
  • Your client is using PuTTY or OpenSSH Client, and you know how to connect to servers and set private keys.
  • Your server user is an administrator.

Steps

  1. Install the OpenSSH Server feature.
    1. Go to Settings › Apps › Apps & features › Manage optional features.
    2. Select + Add a feature.
    3. Select OpenSSH Server, then select Install.
@Aldaviva
Aldaviva / Windows 10 & 11 services.md
Last active June 5, 2025 15:26
Safety of disabling services in Windows 10 and 11

These settings apply to normal, functioning Windows 10 and 11 Pro desktops and laptops with

  • wired Ethernet
  • Wi-Fi
  • Bluetooth
  • IPv4
  • IPv6
  • no touch screen

Safe to disable

@Aldaviva
Aldaviva / Uninstall AppX.md
Last active February 15, 2025 17:29
Uninstall built-in Windows 10-11 immersive apps

List AppX apps

Current user

Get-AppxPackage | where NonRemovable -eq $false | sort Name | ft Name, PackageFullName

Computer

Get-AppxPackage -AllUsers | where { $_.NonRemovable -eq $false -and $_.InstallLocation -ne $null} | sort Name | ft Name, PackageFullName
@Aldaviva
Aldaviva / NTLM in Apache httpd.md
Last active October 7, 2021 07:53
NTLM in Apache httpd
@Aldaviva
Aldaviva / netcore.yml
Last active December 9, 2021 17:24
GitHub Actions CI workflow files for .NET Framework, .NET Core, and .NET projects. Save one of these in ./.github/workflows.
name: .NET Core
on:
push:
branches: [ master ]
jobs:
build:
env:
ProjectName: MyProjectNameHere
@Aldaviva
Aldaviva / Electrical connectors.md
Last active January 30, 2025 22:27
US electrical/power cable connectors/plugs/sockets/jacks

US electrical/power cable connectors/plugs/sockets/jacks

Picture Name Contact
type
Housing
type
Amperage
rating
NEMA 1-15-P Prongs Plug 15A
NEMA 1-15-R Receptacles Socket 15A
NEMA 5-15-P Prongs Plug 15A
NEMA 5-15-R Receptacles Socket 15A
Molex 8981 Receptacles Plug 11A/pin
Molex 8981 Prongs Socket 11A/pin
@Aldaviva
Aldaviva / Installing Vivaldi extensions manually.md
Last active March 22, 2022 07:35
Manually install a packed Chromium extension CRX file into Vivaldi not from the Chrome Web Store
  1. Go to vivaldi://extensions/
  2. Temporarily enable Developer mode
  3. Drag and drop the CRX file into the Extensions page
  4. If the drop target does not work, try entering vivaldi://extensions/ into the URL bar once again
  5. Accept the confirmation prompt to install the extension
  6. Turn off Developer mode if it was off before you started