Skip to content

Instantly share code, notes, and snippets.

View larrybahr's full-sized avatar
👼
God is so good to me!

Larry Bahr larrybahr

👼
God is so good to me!
View GitHub Profile
@larrybahr
larrybahr / TypeScript-Cheet-Sheet.md
Created November 6, 2021 15:25
TypeScript Cheet Sheet
@larrybahr
larrybahr / Upgrade Windows 10 Home to Windows 10 Pro.md
Last active May 5, 2025 13:25
Upgrade Windows 10 Home to Windows 10 Pro.

I got a Windows 10 key and tried to do the normal upgrade, but got a "0xc004f050" error. I then tried to fix it by useing the generic pro key but then got a "0x803fa067" error. These are the steps the finally got everything working. I did the this on 2 PC so I think it is solid.

  1. buy a valid Windows 10 Pro key (any key will work)
    1. I got mine on Ebay for $4. It said 1 minute delivery, but it took about 1 hour to get it.
  2. Make sure Windows is up to date.
  3. Change product keys (remember these steps you will use them a lot)
    1. Select the Start button
    2. Then select Settings > Update & Security
  4. Then select Activation
@larrybahr
larrybahr / Bootstrap 4 Loading Modal.js
Created September 20, 2018 01:27
Bootstrap 4 Loading Modal
/**
* @description Creates a modal that can be displayed while things are loading
*/
(function ()
{
"use strict";
var loadingModal = {};
var queue = {};
var currentQueueIndex = 0;
@larrybahr
larrybahr / Bootstrap 4 Popup.js
Last active September 20, 2018 01:29
Replaces the native JavaScript alert, confirm, and prompt, with BootStrap alternatives!
/**
* @description Inspired by https://www.bootply.com/PoVEEtvPZt. Used to display a pop up with bootstrap elements
* @param {object} options - Options
* @param {string} [options.type="alert"] - alert, prompt, confirm
* @param {string} [options.modalSize="modal-sm"] - modal-sm, modal-lg
* @param {string} [options.okButtonText="PerformanceObserverCallback"]
* @param {string} [options.cancelButtonText="Cancel"]
* @param {string} [options.yesButtonText="Yes"]
* @param {string} [options.noButtonText="No"] - empty string to hide the No button
* @param {string} [options.headerText="Attention"]
sudo apt install linux-headers-$(uname -r) build-essential dkms gcc make perl
sudo reboot
// Insert Guest Additions CD BEFORE running next command
sudo mkdir -p /media/cdrom
sudo mount /dev/cdrom /media/cdrom
sudo /media/cdrom/VBoxLinuxAdditions.run
sudo reboot
sudo adduser $(whoami) vboxsf