Skip to content

Instantly share code, notes, and snippets.

@lubosz
lubosz / formats.txt
Created March 16, 2018 14:46
vive pro video formats
$ v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUYV 4:2:2
Size: Discrete 640x480
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 612x460
Interval: Discrete 0.017s (60.000 fps)
@lubosz
lubosz / fast_clock_multi.py
Created February 9, 2018 14:45
A fast gtk python clock
#!/usr/bin/env python3
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
from datetime import datetime
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
@lubosz
lubosz / convert.py
Created October 27, 2017 16:47
How to decode MS Mixed Reality headset IR camera signal
#!/usr/bin/env python3
# v4l2-ctl --device /dev/video1 --stream-mmap --stream-to=frame.raw --stream-count=1
import numpy as np
import os
import cv2
fd = open('frame.raw', 'rb')
cols = int(1280)
@lubosz
lubosz / config.json
Created July 10, 2017 14:35
A Vive config
config: {
"acc_bias": [
-0.02945,
0.1106,
-0.3654
],
"acc_scale": [
0.9998,
1,
0.9968
@lubosz
lubosz / PKGBUILD
Created February 23, 2017 14:47
mozjs-31
# $Id: PKGBUILD 280669 2016-11-14 07:41:07Z bpiotrowski $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgname=mozjs-31
pkgver=31.5.0
pkgrel=4
pkgdesc="JavaScript interpreter and libraries"
arch=(i686 x86_64)
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/31"
license=(MPL)
@lubosz
lubosz / PKGBUILD
Created February 23, 2017 14:46
mutter-git
# $Id: PKGBUILD 284918 2016-12-28 05:27:10Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Michael Kanis <mkanis_at_gmx_dot_de>
pkgname=mutter-git
pkgver=3.23.3+141+g57f80f091
pkgrel=1
pkgdesc="A window manager for GNOME"
url="https://git.gnome.org/browse/mutter"
@lubosz
lubosz / PKGBUILD
Created February 23, 2017 14:45
gnome-shell-git
# $Id: PKGBUILD 283130 2016-12-13 22:01:32Z heftig $
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Flamelab <panosfilip@gmail.com
pkgname=gnome-shell
pkgver=3.23.3+35+ge6e786a19
pkgrel=1
pkgdesc="The next generation GNOME Shell"
url="https://wiki.gnome.org/Projects/GnomeShell"
arch=(i686 x86_64)
@lubosz
lubosz / PKGBUILD
Created February 23, 2017 14:44
gjs-git
# $Id: PKGBUILD 280660 2016-11-14 07:40:34Z bpiotrowski $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgname=gjs-git
pkgver=1.47.4+39+g23b72e9
pkgrel=1
pkgdesc="Javascript Bindings for GNOME"
arch=(i686 x86_64)
url="http://live.gnome.org/Gjs"
license=(GPL)
def CATEGORIES():
link = OPEN_URL('https://www.dropbox.com/s/349snvqah3dkaob/wizard.txt?dl=1').replace('\n','').replace('\r','')
match = re.compile('name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)"').findall(link)
for name,url,iconimage,fanart,description in match:
addDir(name,url,1,iconimage,fanart,description)
setView('movies', 'MAIN')
<advancedsettings>
<loglevel>2</loglevel> <!-- Change this to "1" to hide the on-screen debug log text -->
<debug>
<extralogging>true</extralogging>
<setextraloglevel>64,1024, 16384</setextraloglevel>
<showloginfo>true</showloginfo> <!-- Change this to "false" to hide the on-screen debug log text -->
</debug>
</advancedsettings>