Skip to content

Instantly share code, notes, and snippets.

View aosterwyk's full-sized avatar
🔑
No time for love, Doctor Jones!

Aaron aosterwyk

🔑
No time for love, Doctor Jones!
View GitHub Profile
@aosterwyk
aosterwyk / gist:17e1a9076b2cab8d1fc8a1dd9515de17
Created November 2, 2022 00:01
powershell scheduled task arguments
-executionpolicy bypass c:\scripts\script.ps1
@aosterwyk
aosterwyk / linux-keys.md
Last active October 23, 2022 21:40
Linux keyboard shortcuts and commands
@aosterwyk
aosterwyk / Linux service
Created November 19, 2021 02:26
Linux service
[Unit]
Description=SERVICEDESCRIPTION
After=multi-user.target
[Service]
User=SERVICEUSER
Group=SERVICEGROUP
Type=simple
WorkingDirectory=/path/to/working/directory
ExecStart=/usr/local/bin/node /path/to/main.js
@aosterwyk
aosterwyk / esxi-update-command
Created November 19, 2021 02:25
esxi-update-command
https://my.vmware.com/group/vmware/patch#search
esxcli software vib update -d file.zip
@aosterwyk
aosterwyk / esxi remove ghost datastore
Created November 19, 2021 02:25
esxi remove ghost datastore
esxcli storage nfs remove -v datastore-name
@aosterwyk
aosterwyk / win10-hyperVStartup.md
Created November 19, 2021 02:23
Windows 10 - Disable Hyper-V on startup

Disable Hyper-V on startup:

bcdedit /set hypervisorlaunchtype off

Enable (default/auto):

bcdedit /set hypervisorlaunchtype auto

@aosterwyk
aosterwyk / connecttest.txt
Created November 19, 2021 02:21
Win 10 internet check url
Microsoft Connect Test
@aosterwyk
aosterwyk / win10-high-performance
Created November 19, 2021 02:20
win10-high-performance-power-plans
powercfg -duplicatescheme 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
powercfg -setactive
@aosterwyk
aosterwyk / youtube-dl-mp3.txt
Created November 19, 2021 02:17
youtube-dl mp3
youtube-dl.exe --extract-audio --audio-format mp3 --audio-quality 0 --ffmpeg-location "ffmpeg\bin" -o %(title)s.%(ext)s <URL>
@aosterwyk
aosterwyk / robocopy.txt
Created November 19, 2021 02:16
robocopy
robocopy c:\source\ d:\target\ /mir /r:2 /w:2 /z /tee /log:robo-source.log