Skip to content

Instantly share code, notes, and snippets.

# Set environment variables for using MSVC 14,
# for creating native 64-bit Windows executables.
# Windows C library headers and libraries.
WindowsCrtIncludeDir='C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt'
WindowsCrtLibDir='C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\'
INCLUDE="${WindowsCrtIncludeDir};$INCLUDE"
LIB="${WindowsCrtLibDir}x64;$LIB"
# Windows API headers and libraries.
@fzn0268
fzn0268 / mouse_keys_mode_v4_keypad.json
Last active January 9, 2020 09:10
Karabiner mouse keys for keypad rule
{
"title": "Mouse Keys Mode v4 (rev 1) for Keypad",
"maintainers": [
"tekezo"
],
"rules": [
{
"description": "Mouse Keys Mode v4 (rev 1) for Keypad",
"manipulators": [
{
#!/usr/bin/env python3.6
from urllib import request, parse
import json
from http.client import HTTPResponse
import glob
import sys
import gzip
import shutil
import os
from urllib import request
import json
from http.client import HTTPResponse
import glob
import sys
import gzip
import shutil
import os
import logging
@fzn0268
fzn0268 / start.sh
Created January 13, 2018 04:32
Docker Toolbox with VMware Player start script
#!/bin/bash
trap '[ "$?" -eq 0 ] || read -p "Looks like something went wrong in step ´$STEP´... Press any key to continue..."' EXIT
# TODO: I'm sure this is not very robust. But, it is needed for now to ensure
# that binaries provided by Docker Toolbox over-ride binaries provided by
# Docker for Windows when launching using the Quickstart.
export PATH="/c/Program Files/Docker Toolbox:/c/Program Files (x86)/VMware/VMware VIX:$PATH"
VM=${DOCKER_MACHINE_NAME-default}
MACHINE_STORAGE_PATH=/g/docker-machines