Skip to content

Instantly share code, notes, and snippets.

sudo add-apt-repository -y ppa:apt-fast/stable
sudo add-apt-repository -y ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get -y install apt-fast
# prompts
sudo apt-fast -y upgrade
sudo apt-fast install -y python3-pip ubuntu-drivers-common libvorbis-dev libflac-dev libsndfile-dev cmake build-essential libgflags-dev libgoogle-glog-dev libgtest-dev google-mock zlib1g-dev libeigen3-dev libboost-all-dev libasound2-dev libogg-dev libtool libfftw3-dev libbz2-dev liblzma-dev libgoogle-glog0v5 gcc-6 gfortran-6 g++-6 doxygen graphviz libsox-fmt-all parallel exuberant-ctags vim-nox python-powerline python3-pip ack lsyncd
sudo apt-fast install -y tigervnc-standalone-server firefox mesa-common-dev
@KelSolaar
KelSolaar / Dockerfile
Last active July 17, 2019 23:59
ociolutimage - Docker Wrapper
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y \
build-essential \
git \
freeglut3-dev \
libglew-dev \
libilmbase-dev \
@simonw
simonw / Dockerfile
Created October 29, 2018 20:52
Lightweight Dockerfile for running a Python 3 webapp under the Zeit 100MB limit
FROM alpine:edge
RUN apk add --update \
python3 \
python3-dev \
build-base \
&& python3 -m ensurepip \
&& rm -r /usr/lib/python*/ensurepip \
&& pip3 install --upgrade pip setuptools \
&& pip3 install starlette uvicorn \
@sobotka
sobotka / Alexa Filmic Transform
Last active December 11, 2018 00:38
Alexa Filmic Transform from Arri Wide Gamut LogC to Scene Referred Arri Wide Gamut
- !<ColorSpace>
name: Alexa Filmic Log
family: log
equalitygroup:
bitdepth: 32f
description: |
Log based filmic shaper with 16.5 stops of latitude, and 25 stops of dynamic range
isdata: false
allocation: lg2
allocationvars: [-12.473931188, 12.526068812]
@ljaraque
ljaraque / tensorflow-gpu-ubuntu.md
Last active March 12, 2022 10:32
Install tensorflow-gpu in ubuntu

Install tensorflow-gpu1.8 in ubuntu18.04 with CUDA9.2, cuDNN7.2.1 and NVIDIA Driver 396

[email protected]

Overview

This is a summary of the process I lived in order to enable my system with CUDA9.2, cuDNN7.2.1, Tensorflow1.8 and NVIDIA GEFORCE GTX860M GPU. You can just skip the steps marked with FAILED. I decided to keep them there in order to be useful for others who tried those paths too.

FAILED (Next section is successfull) Install NVIDIA driver (FAILED, THIS WILL INSTALL DRIVER 390 which is not compatible with CUDA9.2):

ubuntu-drivers devices
@vxgmichel
vxgmichel / bareiss.py
Last active March 2, 2021 14:47
Pure python implementation of the Bareiss algorithm
def adjugate(a, m=None):
# Initialize
sign = 1
previous = pivot = 1
# Bareiss formula
def do_pivot(a, b, c, d, e):
x = a * d - b * c
if m is None:
q, r = divmod(x, e)
@ljaraque
ljaraque / docker_cheatsheet.md
Last active September 7, 2018 02:03
Docker Cheatsheet

Docker Cheatsheet

[email protected]

1. Docker Basics

list all docker running containers:
docker ps

list all docker containers running and stopped:

@aforsythe
aforsythe / install_ctl.csh
Created April 20, 2018 21:13
Shell script to install CTL and ACES transforms
#!/usr/bin/env bash
# Shell script to install homebrew, git, CTL, the latest release of the ACES CTL
# transforms, and all dependancies.
# Install Homebrew if it's not installed or do a brew update if it is
if type brew 2>/dev/null; then
brew update
else
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""Testing awaitable objects
Testing compatibility of various awaitable things
for a migration from tornado coroutines to async/await.
The main pitfall appears to be our use of `tornado.gen.maybe_future`
to wrap user-defined 'maybe async' APIs,
which works for everything *except* asyncio coroutines.
If we want to make sure things are accepted by gen.maybe_future,