Skip to content

Instantly share code, notes, and snippets.

@rma92
rma92 / main.md
Last active March 16, 2022 22:20
Clamp Tablet/Portable Monitor Vesa Mount

I use this to hold tablets and monitors (of varying sizes) when I travel. My entire office setup fits in a briefcase, this stand can be used to provide excellent ergonomics and because it uses a clamp, can hold different types and sizes of devices easily.

Ingredients

@rma92
rma92 / gist:aa3efbeb0ded4fd95056ca51c2615aca
Last active March 16, 2022 21:22
Deploying OEM Recovery Image onto LTSC
1) Clean install LTSC in a Hyper-V VM
2) Go through OOBE, set up a user (local user ideally for time saving - don't connect network, choose "I don't have internet" then "continue with limited setup").
3) Copy the entire contents of C:\Recovery from the OEM device into C:\Recovery on the newly installed VM, overwrite everything.
This can be done using enhanced session mode -- create a directory C:\local (permissions issues), copy and paste from the host into the VM. Then move the contents of C:\local\Recovery to C:\Recovery with admin commmand prompt.
(You can run reagentc /info to confirm that WinRE is present. It should be if you went through the normal installer.)
I moved the Recovery folder from C:\local\Recovery to C:\Recovery, then ran attrib +s +h Recovery
4) Go into PC Settings, and reset this PC (you can search for it). (You can also run "systemreset.exe")
@rma92
rma92 / readme.txt
Last active December 20, 2021 21:42
Fixing ESXi when Root gets locked out.
Enable DCUI Shell
1) Log into console, press F2 to customize system, enter username and root password.
2) Go to Troubleshooting Options.
3) Enable ESXi Shell
4) Press escape twice to return to the main ESXi DCUI screen.
Use DCUI shell to reset lockout
1) Press Alt+F1 to access the shell.
2) Log in with root account.
-) To see the failed login attempts, run `pam_tally2 --user root`
@rma92
rma92 / 19h1_release-amd64.cmd
Last active May 19, 2021 04:21
EWDK invocation bats
REM \local\git-system\dot-files\windows\launch\bats\19h1_release-x64.cmd
call "E:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
set "INCLUDE=E:\Program Files\Windows Kits\10\Include\10.0.18362.0\km\crt;E:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\ATLMFC\include;E:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\include;E:\Program Files\Windows Kits\NETFXSDK\4.8\include\um;E:\Program Files\Windows Kits\10\include\10.0.18362.0\ucrt;E:\Program Files\Windows Kits\10\include\10.0.18362.0\shared;E:\Program Files\Windows Kits\10\include\10.0.18362.0\um;E:\Program Files\Windows Kits\10\include\10.0.18362.0\winrt;E:\Program Files\Windows Kits\10\include\10.0.18362.0\cppwinrt"
set LIB=E:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\ATLMFC\lib\x64;E:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\lib\x64;E:\Program Files\Windows Kits\NETFX
@rma92
rma92 / gist:16b1fb903c1f9ebbc998ec2fb6683516
Last active September 24, 2020 22:47
Long signed distances between gas stations
US-6 W, Ely, NV (167 miles)
https://www.google.com/maps/@39.2286896,-114.8992649,3a,90y,212.53h,87.29t/data=!3m6!1e1!3m4!1s_FhkG50dmOGrs27A87PwjA!2e0!7i13312!8i6656
UT-95, Hanksville, UT and Bluff, UT (121 miles)
<blurry on Google Maps>
I-70 W, Green River, UT (104 miles)
https://www.google.com/maps/@38.9915068,-110.1778271,3a,41.7y,312.51h,94.07t/data=!3m6!1e1!3m4!1sVdam6fBxx57w1VAJx1kChg!2e0!7i16384!8i8192
I-70 E, Salina, UT (105 miles)
https://www.google.com/maps/@38.9307504,-111.8656606,3a,75y,78.35h,95.73t/data=!3m6!1e1!3m4!1sBQE9nuJm60gf6gpW0LLjyw!2e0!7i16384!8i8192
@rma92
rma92 / gist:584dbd2969fcb66ef065df3e3375572e
Last active July 30, 2020 03:01
MSTSC Select Monitors
Run `mstsc -l` to see the list of monitors.
Edit the rdp file. Add a line like the following:
selectedmonitors:s:1,2,3,4
You must select "Use All My Monitors" when creating the RDP. Internally, this setting is:
use multimon:i:1
The part after the last colon is a comma separated list of the monitors to actually use.
@rma92
rma92 / gist:75a48ba85586fbd841ccff9f1d669d8e
Created July 29, 2020 19:28
MSOOBE direct execution when Setup Fails trick
I realize that this will bring this post back from the dead, but I wanted to reply and let hemantsathe know that you are my hero!
I am the senior desktop support technician for a university and we image PCs using Symantec Ghost console. Occasionally we will have a machine randomly fail the setup process after imaging with this error and I always assumed that the machine needed to be completely reimaged to correct the issue. Reading your process made my day!
When windows displays fatal error message:
Shft + F10 = Command Prompt
cd c:\windows\system32\oobe\
msoobe.exe
@rma92
rma92 / ports.txt
Created July 21, 2020 21:48
VMWare ESX/Workstation remote console port forwards
Ports used for VMWare Console
10080:localhost:10080
10443:localhost:10443
443:localhost:443
80:localhost:80
8080:localhost:8080
8443:localhost:8443
902:localhost:902
903:localhost:903
9443:localhost:9443
@rma92
rma92 / WimBootCompress.ini
Last active October 8, 2022 06:03
Configures the WofADK.Sys driver in the registry on the running Windows System. This is useful to configure WofADK.Sys on a Windows 7 or 8 system to allow the use of LZX compression. Use the WofADK.SYS from the DISM folder for Windows ADK 1507. On AMD64, may require test signing. Put WofADK.SYS in system32\drivers and run the batch file with the…
; This is the inbox configuration file used for deploying or capture a
; WIMBoot system. Please do not remove this file because WIMCaptureImage
; and WIMApplyImage will fail if WIM_FLAG_WIM_BOOT flag is specified.
[CompressionExclusionList]
ntoskrnl.exe
[PrepopulateList]
*winload.*
*winresume.*
@rma92
rma92 / Hurricane Can Notes
Last active April 14, 2020 23:21
Notes about low carb canned items for hurricane or emergency preparedness.
Armour Vienna Sausage: Hot & Spicy
-Serving size 4 sausages, about 2 servings per container, each serving 130 cal, 10g fat, 7g protein, 2g carbs (1g sugar).
-can does not require can opener
-taste is good. Not overly salty taste. Taste may be improved by heating them
-expire date: March 06 2023
-purchase date: April 13 2020
Del Monte Fresh Cut Leaf Spinach
-Serving size 1/2 cup/115g, about 3.5 servings per container, each serving 20 cal, 310mg sodium, 3g carb, 2g fiber, 0g sugar, 2g protein, 102mg calcium, 1mg iron, 345mg potasium
-can requires can opener