This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## You can PULL this image from https://hub.docker.com/r/eloylp/go-vanity-urls-server | |
FROM golang:1.16.3 AS build | |
WORKDIR /src | |
COPY . . | |
# Dont run your programs as root. | |
RUN useradd -u 10001 nonprivuser | |
ARG VERSION | |
RUN git clone https://github.com/GoogleCloudPlatform/govanityurls.git app \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* USB HID Keyboard scan codes as per USB spec 1.11 | |
* plus some additional codes | |
* | |
* Created by MightyPork, 2016 | |
* Public domain | |
* | |
* Adapted from: | |
* https://source.android.com/devices/input/keyboard-devices.html | |
*/ |