Skip to content

Instantly share code, notes, and snippets.

View sberryman's full-sized avatar
🏠
Working from home

Shaun Berryman sberryman

🏠
Working from home
View GitHub Profile
@sberryman
sberryman / 00-pita.md
Created January 6, 2023 17:59
Kubeflow 1.5 on a Kind cluster
@sberryman
sberryman / Dockerfile
Created April 20, 2020 14:52
Montreal Forced Aligner Dockerfile
# FROM kaldiasr/kaldi:latest
FROM python:3.6-buster
WORKDIR "/workspace"
RUN apt-get clean \
&& apt-get update \
&& apt-get install -y wget \
automake autoconf sox libtool subversion libatlas3-base gfortran \
&& apt-get -y autoremove
@sberryman
sberryman / hevc.patch
Last active November 29, 2021 03:26
OpenCV 3.4.2 CudaCodec HEVC Patch
diff --git a/modules/cudacodec/src/video_decoder.cpp b/modules/cudacodec/src/video_decoder.cpp
index 35919c3f5..19ebef10d 100644
--- a/modules/cudacodec/src/video_decoder.cpp
+++ b/modules/cudacodec/src/video_decoder.cpp
@@ -63,6 +63,11 @@ void cv::cudacodec::detail::VideoDecoder::create(const FormatInfo& videoFormat)
cudaVideoCodec_VC1 == _codec ||
cudaVideoCodec_H264 == _codec ||
cudaVideoCodec_JPEG == _codec ||
+ cudaVideoCodec_H264_SVC == _codec ||
+ cudaVideoCodec_H264_MVC == _codec ||
@sberryman
sberryman / Dockerfile.yml
Last active July 13, 2020 12:06
DeepMatching GPU version on Ubuntu 16.04 (Docker)
FROM nvidia/cuda:8.0-cudnn5-devel
# PYTHON 2, DO NOT USE PYTHON 3!
LABEL maintainer "Shaun Berryman <[email protected]>"
# Supress warnings about missing front-end. As recommended at:
# http://stackoverflow.com/questions/22466255/is-it-possibe-to-answer-dialog-questions-when-installing-under-docker
ARG DEBIAN_FRONTEND=noninteractive
@sberryman
sberryman / Dockerfile.yml
Created March 15, 2018 14:30
[WIP] ODM Dockerfile
FROM phusion/baseimage
# Env variables
ENV DEBIAN_FRONTEND noninteractive
# Install dependencies & required requisites
RUN add-apt-repository -y ppa:ubuntugis/ppa && \
add-apt-repository -y ppa:george-edison55/cmake-3.x && \
apt-get update -y && \
apt-get install software-properties-common -y && \
@sberryman
sberryman / Dockerfile.yml
Last active January 31, 2024 13:20
AlphaPose Dockerfile
FROM nvidia/cuda:8.0-cudnn5-devel
# Supress warnings about missing front-end. As recommended at:
# http://stackoverflow.com/questions/22466255/is-it-possibe-to-answer-dialog-questions-when-installing-under-docker
ARG DEBIAN_FRONTEND=noninteractive
# Install some dependencies
RUN apt-get update && \
apt-get install -y \
apt-utils \
@sberryman
sberryman / Dockerfile.yml
Last active July 8, 2019 14:25
OpenPose 1.2.1 Dockerfile example using OpenCV/Contrib 3.2.0, CUDA 8, CuDNN 5
# start with the nvidia container for cuda 8 with cudnn 5
# ensure `/etc/docker/daemon.json` file is
# modified to use nvidia runtime by default
FROM nvidia/cuda:8.0-cudnn5-devel
# install dependencies
RUN apt-get update && \
apt-get install -y \
build-essential \
cmake \
@sberryman
sberryman / example.js
Created July 8, 2017 17:58
hemera pub decorator example
'use strict'
const Hemera = require('./../../packages/hemera')
const nats = require('nats').connect()
const hemera = new Hemera(nats, {
logLevel: 'info'
})
hemera.ready(() => {
@sberryman
sberryman / es.sh
Last active December 21, 2015 17:59
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb -O elasticsearch.deb
sudo dpkg -i elasticsearch.deb
sudo service elasticsearch start
var restify = require('restify');
var client = restify.createJsonClient({
url: 'http://localhost:3001',
version: '*'
});
msg = {
"_id": "4ff71172bc148900000010a3",
"userId": "4f711b377579dbf65e000001",
"courseId": "4f69021bff338faffa000001",