Skip to content

Instantly share code, notes, and snippets.

@Jokymon
Jokymon / show_image.py
Created August 31, 2023 14:00
Showing an image from command line using pygame
from os import environ
environ['PYGAME_HIDE_SUPPORT_PROMPT'] = '1'
import threading
import pygame
class ImageShower():
def __init__(self):
self.show_image = True

To disable timesyncd in your Yocto build, create a *.bbappend recipe in your own layer called

recipes-core/systemd/systemd_216.bbappend

And add the following content

PACKAGECONFIG[timesyncd] = "--enable-timesyncd,--disable-timesyncd,timesyncd"

PACKAGECONFIG_remove = "timesyncd"
@Jokymon
Jokymon / crossbuild_qt5_for_rpi.sh
Last active December 30, 2018 07:59
Protocol from Cross compiling Qt5 for Raspberry Pi
set -e
PREFIX=~/opt/qt5pi
ROOTFS_MOUNT=/mnt/rasp-pi-rootfs
# On Ubuntu 14.04 do the following first to get the ia32-lib
if [ `lsb_release -ds` -eq "Ubuntu 14.04 LTS" ]
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
fi
@Jokymon
Jokymon / build_cross_gcc_raspi.sh
Last active August 29, 2015 13:59
Instructions to build the raspberry Pi gcc crosstoolchain
sudo apt-get install bison cvs flex gperf texinfo automake libtool gawk libncurses5-dev subversion
cd Downloads
wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.19.0.tar.bz2
cd ..
mkdir -p toolchain/raspberrypi
cd toolchain/raspberrypi
tar xjf ../../Downloads/crosstool-ng-1.19.0.tar.bz2
cd crosstool-ng-1.19.0