Skip to content

Instantly share code, notes, and snippets.

View kevlawz's full-sized avatar

Kevin Lawton kevlawz

  • Princeton, NJ
  • 03:16 (UTC -05:00)
  • X @kevlawz
View GitHub Profile
@kevlawz
kevlawz / markdown-cheatsheet.md
Last active February 12, 2020 23:30 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet.
@kevlawz
kevlawz / fstab-efi-uuid-fix.md
Last active April 17, 2020 19:29
FIX: Windows change EFI UUID or a Linux system partition is deleted (e.g. Swap)

EFI UUID Change Scenario

Problem:

Windows formatted the EFI partition and thus its UUID changed...

Solution:

Add the UUID of the new partition to the one in your /etc/fstab

  • Enter maintenance mode or have a terminal
@kevlawz
kevlawz / HowToCreateLinuxSwapFile.md
Last active April 19, 2020 14:52
How to create and mount a Linux swap file

sudo fallocate -l 1g /mnt/1GiB.swap OR sudo dd if=/dev/zero of=/mnt/1GiB.swap bs=1024 count=1048576

sudo chmod 600 /mnt/1GiB.swap

sudo mkswap /mnt/1GiB.swap

sudo swapon /mnt/1GiB.swap

echo '/mnt/1GiB.swap none swap sw 0 0' | sudo tee -a /etc/fstab

@kevlawz
kevlawz / dell-smm-hwmon.conf
Created April 20, 2020 04:03 — forked from dptsolutions/dell-smm-hwmon.conf
dell-smm-hwmon.conf to force loading of dell-smm-hwmon module on "unsupported" Dell laptops (like XPS 13 9350)
#Force loading of the Dell Laptop SMM BIOS hwmon driver
options dell-smm-hwmon ignore_dmi=1 restricted=0 force=1
#Added ignore_dmi=1 per https://www.reddit.com/r/Dell/comments/9pdgid/configuring_the_xps_to_play_nice_with_linux/
#Added force=1 per https://askubuntu.com/questions/1094485/dell-xps-15-9570-how-to-control-the-fans
@kevlawz
kevlawz / Windows Defender Exclusions for Developer.md
Last active December 24, 2020 20:24 — forked from dknoodle/Windows Defender Exclusions VS 2017.ps1
Windows Defender exclusions for Visual Studio 2017 and Flutter

Windows Defender exclusions for Visual Studio 2017/Android Studio/VSCode/Flutter

I've tried to strike a balance between performamce and security. I've commented out many of the individual file exceptions, however I also left the commented line for future reference/tweaking if needed. WSL2 only. WSL1 exclusions are different and not included here.

Refrerences (some)

Hyper-V exclusions (Taken from Windows Server 2016/2019 Microsoft Best Practices)