This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
<?php | |
function utf8_encode_deep(&$input) { | |
if (is_string($input)) { | |
$input = utf8_encode($input); | |
} else if (is_array($input)) { | |
foreach ($input as &$value) { | |
utf8_encode_deep($value); | |
} | |
unset($value); |
def activate_virtualenv(name): | |
"""Activate given virtualenv. | |
Virtualenv home folder is given by environment variable ``WORKON_HOME`` or | |
``~/Envs`. | |
""" | |
if 'WORKON_HOME' in os.environ: | |
home = os.environ['WORKON_HOME'] | |
else: | |
home = os.path.expanduser(os.path.join('~', 'Envs')) |
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf |
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
#! /usr/bin/env python | |
""" | |
Pandoc filter to convert svg files to pdf as suggested at: | |
https://github.com/jgm/pandoc/issues/265#issuecomment-27317316 | |
""" | |
__author__ = "Jerome Robert" | |
import mimetypes | |
import subprocess |
all: egltest | |
egltest: egltest.c | |
cc -O3 -Wall -Werror -I. -o $@ $^ -lOpenGL -lEGL | |
clean: | |
rm -f *.o egltest |
/var/lib/nvidia-docker/volumes/nvidia_driver/375.39/lib64
or use a docker via docker run -it --rm -v nvidia_driver_375.39:/nvidia_driver debian
to gain write permissions to the drivers, and patch them.
/usr/lib/nvidia-375/libEGL.so.375.39
into the {nvidia_driver}/lib64/
directory{nvidia_driver}/lib64/libEGL.so.1
and {nvidia_driver}/lib64/libEGL.so
eventually link to the libEGL.so.375.39
file.DISPLAY
set, EGL will try and use the actual Display for offscreen OpenGL rendering instead of the headless route. This is difficult (but not impossible) because now you must run the command as the same user as the graphically logged in user.