Skip to content

Instantly share code, notes, and snippets.

$fn=64;
difference() {
cylinder(r=15, h=3, center=true);
difference() {
cylinder(r=15-2.5, h=40, center=true);
cylinder(r=15-2.5-4.5, h=40, center=true);
rotate([0,0,0]) translate([15/2,0,0]) cube([15,30,40], center=true);
rotate([0,0,180+110]) translate([15/2,0,0]) cube([15,30,40], center=true);
}
@moritzmhmk
moritzmhmk / Config.in
Created March 21, 2018 20:43
python-evdev buildroot
config BR2_PACKAGE_PYTHON_EVDEV
bool "python-evdev"
help
Bindings to the Linux input handling subsystem.
https://github.com/gvalkov/python-evdev
@moritzmhmk
moritzmhmk / Monokai.terminal
Created April 14, 2018 11:27
Monokai macOS Terminal Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECYw
LjIxOTYwNzg0MzEgMC40NzQ1MDk4MDM5IDAuOTM3MjU0OTAyABABgALSEBESE1okY2xh
c3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2
@moritzmhmk
moritzmhmk / NodeOnPiZero.md
Created June 10, 2019 13:37
Install Node On Raspberry Pi Zero (armv6)

Find the latest LTS release. Currently the LTS version is 10.x and the latest release can be found here (choose the file ending with -linux-armv6l.tar.xz).

Download that file: wget https://nodejs.org/dist/latest-v10.x/node-v10.16.0-linux-armv6l.tar.xz

Unpack the file: tar -xvf node-v10.16.0-linux-armv6l.tar.xz

Copy the content over to /usr/local: sudo cp -r node-v10.16.0-linux-armv6l/* /usr/local/

[Unit]
Description=Set up loopback cameras
[Service]
ExecStartPre=/sbin/modprobe v4l2loopback devices=3
ExecStart=/usr/bin/ffmpeg -f video4linux2 -input_format yuv420p -video_size 1280x720 -i /dev/video0 -codec copy -f v4l2 /dev/video1 -codec copy -f v4l2 /dev/video2 -codec copy -f v4l2 /dev/video3
Restart=always
RestartSec=2
[Install]

run.sh

#!/bin/bash
xset s off &
xset -dpms &
xset s noblank &
unclutter &
chromium-browser\
 --window-position=0,0\
 --window-size=$(cat /sys/class/graphics/fb0/virtual_size)\
@moritzmhmk
moritzmhmk / HLS.md
Last active April 23, 2020 08:19 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@moritzmhmk
moritzmhmk / HifiBerryCaseCoverDigi.md
Last active October 30, 2020 13:54
HiFiBerry Case Cover for the HiFiBerry Digi+
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.