View gpg-key-to-datamatrix.sh
#!/bin/bash
add_caption() {
convert "${1}" \
-quality 100 \
-units PixelsPerInch \
-resize 200% \
\( -background white -fill black -size x48 \
label:"${2}" -trim +repage \
-bordercolor white -border 10 \
View chromium-gpu-vivante.sh
#!/bin/sh
if [ "${1}" == "forever" ]; then
while sleep 1; do "${0}"; done
exit 0
fi
export DISPLAY=:0
# url="http://jsfiddle.net/gionaf/Ugc5g/embedded/result/"
View android-crystax-build-openssl.md

You have Crystax installed in /opt/crystax

CRYSTAX_ROOT=/opt/crystax

Which version does crystax expect?

ls ${CRYSTAX_ROOT}/sources/openssl/
View fix.md
sudo apt-get install xserver-xorg-legacy

Edit /etc/X11/Xwrapper.config

allowed_users=anybody
needs_root_rights=yes
View gist:b6e4264bf92d5bb082713cb745b35bab
#include "opencv2/opencv.hpp"
#include <ctime>
#include <sys/timeb.h>
using namespace cv;
int main(int, char**) {
VideoCapture cap(1); // open the default camera
if (!cap.isOpened()) // check if we succeeded
return -1;
View cross-compile-qt5.9.2-rpi3.md

Example of make.conf with distcc enabled

/etc/portage/make.conf

CFLAGS="-mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -O2 -pipe"
CXXFLAGS="${CFLAGS}"

CHOST="armv7a-hardfloat-linux-gnueabi"
View cross-compile-qt-imx6-vivante.md
./configure -release -opengl es2 -device linux-imx6-g++ -device-option CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- -sysroot /opt/imx6-gentoo/sysroot -extprefix /opt/Qt/5.9.2/imx6 -v -nomake examples -nomake tests -no-use-gold-linker -opensource -confirm-license -skip qtscript -no-sql-psql -no-sql-mysql
View cross-compile-qt5.8-rpi3.sh
./configure -release -opengl es2 -device linux-rpi3-vc4-g++ -device-option CROSS_COMPILE=/opt/rpi3/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /opt/rpi3/gentoo-sysroot/ -extprefix /opt/Qt/5.8/rpi3 -v -nomake examples -nomake tests -no-use-gold-linker -opensource -confirm-license -skip qtscript
gmake
sudo gmake install
View wget-1.19.ebuild
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
PYTHON_COMPAT=( python{3_3,3_4} )
inherit flag-o-matic python-any-r1 toolchain-funcs eutils
DESCRIPTION="Network utility to retrieve files from the WWW"
View boost-android-build.sh
#!/bin/bash
version=1.65.1
echo "Building boost $version..."
set -eu
toolchain=$PWD/toolchain
if [ ! -d "$toolchain" ]; then
echo "Building toolchain..."