Skip to content

Instantly share code, notes, and snippets.

@eloylp
eloylp / Dockerfile
Created May 2, 2021 09:59
A Go vanity url server deployment based on https://github.com/GoogleCloudPlatform/govanityurls
## 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 \
@ekaitz-zarraga
ekaitz-zarraga / usb_hid_keys.h
Created October 27, 2017 12:40 — forked from MightyPork/usb_hid_keys.h
USB HID Keyboard scan codes
/**
* 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
*/