Skip to content

Instantly share code, notes, and snippets.

@soumith
soumith / gist:01da3874bf014d8a8c53406c2b95d56b
Last active March 28, 2022 16:53
Install PillowSIMD+libjpeg-turbo on Conda
conda uninstall --force pillow -y
# install libjpeg-turbo to $HOME/turbojpeg
git clone https://github.com/libjpeg-turbo/libjpeg-turbo
pushd libjpeg-turbo
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=$HOME/turbojpeg
make
make install
@tuantm8
tuantm8 / build_daemontools.md
Last active November 29, 2021 17:32
Howto compile Bernstein’s daemontools. Source: http://siyahsapkaorg.blogspot.com/2015/05/howto-compile-bernsteins-daemontools-on.html #daemontools #multilog #envdir

###Problem: aokanx@aokanx-VirtualBox:~/Downloads/admin/daemontools-0.76$ ./package/install Linking ./src/* into ./compile... Compiling everything in ./compile... sh find-systype.sh > systype rm -f compile sh print-cc.sh > compile ... ./load envdir unix.a byte.a /usr/bin/ld: errno: TLS definition in /lib/x86_64-linux-gnu/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o

@nrk
nrk / command.txt
Created April 2, 2012 19:19
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"