Skip to content

Instantly share code, notes, and snippets.

View kevgk's full-sized avatar

Kevin G. kevgk

  • Hamburg, Germany
View GitHub Profile
@kevgk
kevgk / updateNpm.bat
Created June 28, 2021 17:51 — forked from nokidding/updateNpm.bat
Windows batch file which updates npm for nvm-windows
rem see https://github.com/coreybutler/nvm-windows/issues/300
@echo off
SETLOCAL EnableDelayedExpansion
if [%1] == [] (
echo Pass in the version you would like to install, or "latest" to install the latest npm version.
) else (
set wanted_version=%1
@kevgk
kevgk / README.md
Created February 15, 2020 17:55 — forked from talon/README.md
Install Docker On Windows 10 Home

Install Docker On Windows 10 Home

"Windows Home Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run." So says the Docker Installer however, the Docker forums beg to differ

The workaround is to manually image the Hyper-V and Containers features, then trick the installer into thinking you're using Windows Pro.

TL;DR

  1. clone this gist somewhere locally git clone https://gist.github.com/4191def376c9fecae78815454bfe661c.git windows_home_docker
  2. Run windows_home_containers.ps1 in an Administrative Powershell
@kevgk
kevgk / MX Master Volume Control
Created July 27, 2019 13:08
Control Volume with MX Master Horizontal ScrollWheel
# Control Volume with MX Master Horizontal ScrollWheel
"amixer -D pulse set Master 5%+"
b:6
"amixer -D pulse set Master 5%-"
b:7
@kevgk
kevgk / pug-sass-filter.js
Last active October 6, 2018 23:49
Compile sass in pug filter (:sass)
pug({
filters: {
'sass': data => sass.renderSync({ data }).css.toString()
}
})
@kevgk
kevgk / webp-background-mixin.sass
Last active September 28, 2017 13:32
Sass Webp background-image Mixin (w/ modernizr)
// Mixin:
@mixin webp-background($webp, $fallback)
.no-webp &, .no-js &
background-image: url($fallback)
.webp &
background-image: url($webp)
// Usage: