Skip to content

Instantly share code, notes, and snippets.

View JakubVanek's full-sized avatar

Jakub Vaněk JakubVanek

View GitHub Profile
@JakubVanek
JakubVanek / Framebuffer to PNG
Last active May 5, 2023 21:10
Convert raw BGRA framebuffer to RGB png file
This program can be used to convert raw BGRA 8888 framebuffer to standard PNG file.
@JakubVanek
JakubVanek / EV3 ethernet hotplug
Created July 1, 2016 13:05
Connect EV3 to hotplugged ethernet
This is a small program for restarting DHCP on first interface for the EV3 programmable brick. This can be useful when you need to make the brick connect through a *supported* USB-to-Ethernet adapter to a wired network and you don't want to wait for a restart.
How to build:
- Get a copy of EV3 assembler (lmsasm) - my modified version can be found on https://github.com/JakubVanek/ev3sources-asm
- Download connect.lms to the directory with file assembler.jar from the step above.
- Compile this program. That is done by running "java -jar assembler.jar connect" in the assembler directory.
- Upload the connect.rbf file to the brick.
@JakubVanek
JakubVanek / guide.sh
Last active September 13, 2020 20:38
Bitfocus Companion cross-chroot for Raspberry Pi
## PART 1: get RPi image ready
# where the chroot will be
CHROOT=$(pwd)/chroot
# companion directory (will be bind-mounted to /companion)
COMPANION=$(pwd)/companion
# download latest Raspbian
wget https://downloads.raspberrypi.org/raspios_lite_armhf_latest -O raspbian.zip
unzip raspbian.zip # decompress the image
@JakubVanek
JakubVanek / porovnej.py
Created July 17, 2020 13:22
Compare two CSVs
import sys
import pandas as pd
import numpy as np
def main():
if len(sys.argv) != 3:
print("Chyba: očekávány dva argumenty", file=sys.stderr)
print("Použití:", file=sys.stderr)
print(f"{sys.argv[0]} <csv sklad> <csv pokladna>", file=sys.stderr)
sys.exit(1)
@JakubVanek
JakubVanek / Fake Pulseaudio software balun
Last active April 28, 2018 19:37
Fake Pulseaudio balanced mono-output
Creates a mono "balanced" output from a stereo unbalanced one.
@JakubVanek
JakubVanek / Gymnazium Kladno – windows shares
Last active April 15, 2018 10:18
Gymnázium Kladno – mount.cifs
Because Windows sucks.
@JakubVanek
JakubVanek / matrix.fzz
Last active December 28, 2016 11:17
Fast 8x8 LED dot matrix + SN74HC595 + Arduino Uno R3 counter