Skip to content

Instantly share code, notes, and snippets.

Unlogischheiten

Vielleicht entsteht hieraus einmal ein Blog. Oder ein Buch. Gern kommentieren!

  1. Warum gibt es in der deuschen Spache kein Wort für unlogische Dinge? - Na gut, erfinden wir eben "Unlogischheiten"
  2. Warum ist vor der Kasse ein viel zu langes Warentransportband, aber nach der Kasse (wo der Kunde die Sachen einpacken muss) ist kein Warentransportband? - Wenn nach der Kasse ein Warentransportband in der gleichen Länge wie vor der Kasse wäre, würde das Einpacken und somit das Kassieren doch wesentlich beschleunigt
  3. Warum öffnen Läden dann, wenn die arbeitende (und somit Geld verdienende) Bevölkerung arbeitet? - Zumindest zwischen 9 und 17 Uhr könnten Retailer eigentlich schließen, weil Leute die Geld verdienen dann keine Zeit haben einzukaufen. Es wäre doch viel logischer, Läden erst um 17 Uhr zu öffnen und dann bis 2 Uhr offen zu lassen
  4. Warum reduzieren Läden "wegen Corona" ihre Öffnungszeiten? - Logisch wäre, die Öffnungszeiten zu verlängern, damit sich die gleiche Men
@probonopd
probonopd / netboot.sh
Last active January 7, 2024 08:15
Netboot Ubuntu Live CD
# Ubuntu 16.04
sudo apt install git golang nfs-kernel-server
mkdir -p /home/me/gopath/bin/
mkdir -p /home/me/gopath/src/
cd /home/me/gopath/src/
git clone https://github.com/danderson/pixiecore
cd pixiecore
export GOPATH=/home/me/gopath/

Linux on MXQ (PCB: S805Q_V2.0) m8b_m201_v1@23a35625

Seems to be also known as the HD18Q "black box". https://www.ebay.de/itm/153205410117 ("NEU MXQ S805 Smart 1GB+ 8GB Smart TV Box Android 4.4 Quad Core 1.5 G WIFI", seller "SILVESTRAS RUNTA Network Tech Co. Ltd"), EUR 14,99

I can boot with meson8b_m201d.dtb and wired Ethernet works.

U-boot thinks it is a 512 MB device. Linux does, too. The SDK used seems to be named "s805_0701_512M":

root@vegas805:~# strings /mnt/lib/hw/camera.amlogic.so | grep home/
@probonopd
probonopd / orangepizero.md
Last active December 27, 2023 09:27
Orange Pi Zero

Orange Pi Zero

Ideas

  • Port HomeServer to it
  • Read-only thanks to overlayroot
  • Native serial for Viessmann w/o USB-to-Serial
  • Native 433 MHz sending w/o Arduino
  • Native Audio output w/o USB dongle; can attach small amp board
  • Webcam via USB with motion

Raspberry Pi 5

Raspberry Pi OS Wayland based desktop

  • Performance is acceptable for a desktop on a Pi for the first time, including 1080p YouTube in Chromium
  • Uses Wayfire window manager with Wayland backend by default but can be switched to Xorg with Openbox
  • wfrespawn is used to restart processes like the panel and the desktop (pcmanfm)
  • Screen recording works with sudo apt install wf-recorder. https://github.com/ammen99/wf-recorder is like screen recording with ffmpeg and it really "just works"! sudo apt install wf-recorder -a also records audio.
  • Screen sharing with Webex does not work in Chromium, desplite Wayland and Pipewire being there
  • Hence, how can I switch from Wayland to a X11 session? --> Using the Raspberry Pi Software Configuration Tool (raspi-config) under "6 Advanced Options" --> System then uses Openbox after rebooting. Seems to then use /usr/share/xsessions/LXDE-pi-x.desktop which in turn runs /usr/bin/startlxde-pi which in turn runs `exec /usr/bin/lxsession -s L
@probonopd
probonopd / raspberry_pi_keyboard.md
Last active November 12, 2023 00:52
Automatic USB keyboard language detection

Automatic USB keyboard language detection

https://www.youtube.com/watch?v=_pWRVR1Knfo around 43:50 shows that the Apple Lisa could set the system language automatically depending on which language keyboard was attaced. In 1983!

The official Raspberry Pi keyboard can automatically tell the operating system the language, something all keyboards should have done since the introduction of USB.

Kudos to the genius at the Raspberry Pi Foundation who made this happen, finally. I only wish I could plug this keyboard into any computer system and have it just work.

How is it working, actually? Does anybody know?

@probonopd
probonopd / linux_fusion360.md
Last active November 9, 2023 15:22
Autodesk Fusion 360 on Linux

Autodesk Fusion 360 on Linux

In the Web Browser

Ubuntu, Fedora, openSUSE, CentOS, SUSE Linux Enterprise, Debian,... users can finally use Autodesk Fusion 360 in the Linux Browser now.

https://myhub.autodesk360.com

On Chromium 55.0.2843.0 I get NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED.

@probonopd
probonopd / 1st_wr703n-image-create.sh
Last active October 14, 2023 14:32
Working way to create a simple Ethernet/WLAN web radio player using a cheap tiny WR703N router and a cheap USB C-Media soundcard. Switch radio stations with the reset switch. -- THE ACTUAL CODE ON THIS PAGE IS ***OUTDATED***, use https://github.com/probonopd/minikrebs instead!
# http://www.aliexpress.com/item/New-Mini-Portable-Wireless-3G-Router-TP-LINK-TL-WR703N-150M-150Mbps-WR703N-Pocket-size-Wifi/948558329.html
# Someone should convince TP-Link to build this with more Flash, serial headers, bare board, *duino style...
# This is the starting point for a webradio appliance in the works
# TODO: Preconfigure everything, hook up Arduino for IR control sending and receiving
wget http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486.tar.bz2
tar xfj OpenWrt-ImageBuilder*
cd "$HOME/Downloads/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486"

FDM 3D Printing Design Rules for Snap Fit Cases

caseinside

Turn on the sound to hear those satisfying clicks 💯

3dprintedcase.mp4

image

Lubuntu Live ISO session with helloDesktop key components

This is purely for experimentation and development. It gives you a partial helloDesktop experience on Linux including a work-in-progress from-scratch rewrite of the Filer. For the full experience, use helloSystem.

image

Instructions

  • Run Lubuntu 22.04 Live ISO (on real hardware or in a virtual machine), don't install
  • From the Live session, run the script below