View Dockerfile
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
# Install build tools | |
RUN apt-get update && \ | |
apt-get install -y yasm nasm build-essential cmake pkg-config | |
ENV FFMPEG_VERSION=4.4 \ | |
INTEL_MEDIA_SDK_VERSION=21.1.3 |
View server.go
package main | |
import ( | |
"crypto/tls" | |
"flag" | |
"log" | |
"net/http" | |
"time" | |
) |
View gpg-agent-relay
#!/usr/bin/env bash | |
# https://gist.github.com/andsens/2ebd7b46c9712ac205267136dc677ac1 | |
GNUPGHOME="$HOME/.gnupg" | |
PIDFILE="$GNUPGHOME/gpg-agent-relay.pid" | |
die() { | |
# shellcheck disable=SC2059 | |
printf "$1\n" >&2 | |
exit 1 |
View vaapi.dockerfile
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV PACKAGES="/app/packages" \ | |
WORKSPACE="/app/workspace" \ | |
CFLAGS="-I$WORKSPACE/include" \ | |
LDFLAGS="-L$WORKSPACE/lib" \ | |
EXTRALIBS="-ldl -lpthread -lm" | |
ENV PATH ${WORKSPACE}/bin:$PATH |
View Dockerfile
FROM ubuntu:bionic | |
ENV DEBIAN_FRONTEND=noninteractive | |
ENV DEBCONF_NOWARNINGS=yes | |
RUN apt-get update \ | |
&& apt-get install -y software-properties-common \ | |
&& add-apt-repository multiverse \ | |
&& dpkg --add-architecture i386 \ | |
&& apt-get update \ |
View generate_validation.py
#!/usr/bin/env python3 | |
import glob, os, sys | |
# Current directory | |
data_dir = sys.argv[1] | |
print(data_dir) | |
# Percentage of images to be used for the test set | |
percentage_test = 10 |
View detectnet2yolo.py
#!/usr/bin/env python3 | |
import os | |
import sys | |
import glob | |
from PIL import Image | |
classes = { | |
'Car' : 0, | |
'Van' : 1, | |
'Truck' :2, |
View caps2ctrl.reg
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 |
View Dockerfile
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 as cuda | |
ENV DEBIAN_FRONTEND=noninteractive | |
ENV NVIDIA_DRIVER_CAPABILITIES utility,compute | |
ENV NVIDIA_VISIBLE_DEVICES all | |
RUN sed -i'~' -E "s@http://(..\.)?(archive|security)\.ubuntu\.com/ubuntu@http://jp.archive.ubuntu.com/ubuntu@g" /etc/apt/sources.list \ | |
&& apt-get update \ | |
&& apt-get install --yes --no-install-recommends \ | |
build-essential \ |
View colaboratory_ssh.txt
import random, string, urllib.request, json, getpass, time | |
#Generate root password | |
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20)) | |
#Download ngrok | |
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
! unzip -qq -n ngrok-stable-linux-amd64.zip | |
#Setup sshd |
NewerOlder