Skip to content

Instantly share code, notes, and snippets.

View gist:07b221c9a4415a190580956fc21dc9b5
https://seeeddoc.github.io/Raspberry_Pi_3_Model_B/
https://elinux.org/Raspberry_Pi_VideoCore_APIs
https://github.com/Yours3lf/rpi-vk-driver
https://www.wikiwand.com/en/Raspberry_Pi
https://github.com/hermanhermitage/videocoreiv/wiki/VideoCore-IV---BCM2835-Overview
https://docs.broadcom.com/doc/12358545
https://github.com/hermanhermitage/videocoreiv/wiki/VideoCore-IV-Programmers-Manual
https://github.com/hermanhermitage/videocoreiv/wiki/VideoCore-IV-Kernels-under-Linux
https://github.com/hermanhermitage/videocoreiv
https://github.com/christinaa/LLVM-VideoCore4
View rpi4audio.md
$ sudo nano /etc/pulse/default.pa

Change load-module module-udev-detect to load-module module-udev-detect tsched=0

@liorean
liorean / vidaccel.rpi.md
Last active Mar 9, 2021
Hardware accelerate RPi4 Ubuntu Mate 64-bit video
View vidaccel.rpi.md

Raspberry Pi4 with Ubuntu MATE

Install dependencies

$ sudo apt update
$ sudo apt dist-upgrade
$ sudo apt install libgl2-mesa libgl2-mesa-dev xorg-dev

Configure

@liorean
liorean / params.cmd
Last active Feb 10, 2020
Parameter parsing
View params.cmd
@echo off
setlocal enableextensions enabledelayedexpansion
title Parameter parsing
rem Handle database as UTF-8 instead of some system setting dependent ANSI code page.
for /f "tokens=2 delims=:." %%x in ('chcp') do set cp=%%x
chcp 65001 > nul
rem
View chakra.module.loading.bodge.es
WScript.LoadScriptFile(WScript.Arguments[0],'module')
View ecmascript.sublime-build
{
"cmd":["...\\nodejs\\node.exe", "$file"],
"selector":"source.ecmascript",
"file_patterns": ["*.es","*.esm","*.js","*.mjs"],
"working_dir":"$file_path",
"variants":[
{
"name": "Mozilla JSShell/SpiderMonkey Module",
"cmd": ["...\\.jsvu\\spidermonkey.cmd", "-m", "$file"]
},
@liorean
liorean / HRM.41.Sorting Floor.2.hrm
Created Aug 19, 2018
Human Resource Machine Year 41 Sorting Floor solution 2
View HRM.41.Sorting Floor.2.hrm
-- HUMAN RESOURCE MACHINE PROGRAM --
COMMENT 0
COPYFROM 24
COMMENT 1
COPYTO 0
a:
b:
COPYTO 23
COMMENT 2
@liorean
liorean / HRM.41.Sorting Floor.1.hrm
Created Aug 19, 2018
Human Resource Machine Year 41 Sorting Floor solution 1
View HRM.41.Sorting Floor.1.hrm
-- HUMAN RESOURCE MACHINE PROGRAM --
COMMENT 0
COPYFROM 24
COMMENT 1
COPYTO 0
a:
b:
COPYTO 23
COMMENT 2
@liorean
liorean / HRM.39.Re-Coordinator.1.hrm
Created Aug 19, 2018
Human Resource Machine Year 39 Re-Coordinator solution 1
View HRM.39.Re-Coordinator.1.hrm
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
COPYFROM 14
COPYTO 12
INBOX
b:
SUB 15
JUMPN c
COPYTO 13
@liorean
liorean / HRM.37.Scavenger Chain.2.hrm
Created Aug 19, 2018
Human Resource Machine Year 37 Scavenger Chain solution 2
View HRM.37.Scavenger Chain.2.hrm
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
INBOX
b:
COPYTO 22
COPYFROM [22]
OUTBOX
BUMPUP 22
COPYFROM [22]