This script should ensure that VMware modules will be rebuilt and signed for Secure boot when a kernel package is updated.
Copy the script below to /etc/kernel/postinst.d/vmware and make it executable.
#!/bin/sh -e
export LANG=C| import socket | |
| def sendit(msg): | |
| with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock: | |
| sock.sendto(msg, ("<FILL SOME IP HERE>", 1234)) | |
| # NOTE: you'll probably want to have something listening on that IP. | |
| # I have spawned a Ubuntu Linux VM for this; then I used "nc -k -u -l 1234" to receive the data | |
| for i in range(256): | |
| sendit(b"a"*300) |
| ## 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 |
| 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) |
| Creates a mono "balanced" output from a stereo unbalanced one. |
| 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. |
| This program can be used to convert raw BGRA 8888 framebuffer to standard PNG file. |