Skip to content

Instantly share code, notes, and snippets.

View nicolaskopp's full-sized avatar

Nicolas Kopp nicolaskopp

View GitHub Profile
@nicolaskopp
nicolaskopp / how-to-create-bootable-windows-usb-drive-on-mac-os.md
Last active November 21, 2023 12:55
Create bootable Windows 10/11 USB drive on Mac OS

Create bootable Windows 10/11 USB drive on Mac OS

Creating a universal bootable Windows Installation USB drive on Mac OS is straightforward. The only pitfall is you have to format your drive as FAT32 to maximize compatibility, but then you have to split your .WIM file to smaller chunks than 4GB so that it does not get corrupted. Fear not, I will guide you through the process. Big thanks to this comment by m13253 for most of the heavy-lifting of this Gist.

Here are the steps (assume your FAT32 formatted USB drive is mounted on /Volumes/USB and your ISO is named something like Win10_1903_V1_Germal_x64.iso):


❗Preparation:❗ Format your USB drive as FAT32 using Disk Utility on Mac OS!

@nicolaskopp
nicolaskopp / fixbluetooth.md
Last active August 10, 2023 08:59
Fix Bluetooth missing in Windows 10 - Unknown USB Device (device descriptor request failed), Intel® Dualband-Wireless-AC 7260

Fix Bluetooth missing in Windows 10 - Unknown USB Device (device descriptor request failed), Intel® Dualband-Wireless-AC 7260

I've had this error with an old Intel® Dualband-Wireless-AC 7260 card on a Z97 chipset (specifically on a GIGABYTE GA-Z97N-Gaming 5 (rev. 1.0))

After a Windows 10 Update, Bluetooth went completely missing and instead I've had a "Unknown USB Device (Device Descriptor Request Failed)" error in device manager.

I've stumpled upon this video and it (almost!) did not solve my problem, until I've read the youtube comments and I took a few extra steps.

What finally solved it for me, was using these steps:

@nicolaskopp
nicolaskopp / DaVinci Resolve DPI Fix.md
Last active May 30, 2022 14:27
How to fix the DaVinci Resolve DPI Scaling Problem / blurry fonts on Windows

How to fix the DaVinci Resolve DPI Scaling Problem / blurry fonts on Windows

Using a High-DPI monitor with high resolutions such as 3840px and above, you may have noticed that DaVinci Resolve does not really care about Windows system scaling settings.

You may have also tried to force override DPI handling in the shortcut properties, which kind of works, but makes fonts blurry.

Here his how to fix DaVinci Resolve High DPI scaling to respect your windows settings without blurry fonts

Edit the shortcut target of DaVinci Resolve to use this:

@nicolaskopp
nicolaskopp / ios-fixed-scrolling-fix.css
Last active November 10, 2024 15:33
Fix scrolling bug on iOS Safari with fixed elements and bottom bar
/* Fix scrolling bug on iOS Safari with fixed elements and bottom bar */
body.noscroll {
height: 100%;
overflow: hidden; /* make sure iOS does not try to scroll the body first */
}
/* your wrapper, most likely mobile menu */
.fixed-wrapper {
width: 100%;
@nicolaskopp
nicolaskopp / docker-hcsshim-solution.md
Last active August 1, 2023 10:10
Docker: "Cannot start service monitor: hcsshim" solution

Docker: "Cannot start service monitor: hcsshim" solution

If you are running docker in Bootcamp on an Intel-based Macbook, what this error is trying to tell you is that Virtualization features are not enabled. To enable Virtualization features inside Windows 10 in Bootcamp:

  1. Boot into Mac OS. Virtualization is automatically enabled if you boot up Mac OS.
  2. From there reboot into Windows without turning the Machine off.

Virtualization features will now also be available in Windows 10 and docker should work again.

@nicolaskopp
nicolaskopp / killDocker.md
Last active October 23, 2024 13:56
How to delete `C:\ProgramData\Docker` and fixing "Access denied" errors

How to delete C:\ProgramData\Docker and fixing "Access denied" errors

I created this gist on May 25, 2021. It is still an issue as of October 23, 2024. Welcome to the future of web development. Take this Gist to rest and calm down.

Here is how to delete C:\ProgramData\Docker.

  1. Uninstall docker the normal way (yeah you may have already done that)
  2. Copy this: