Skip to content

Instantly share code, notes, and snippets.

View ratopi's full-sized avatar
😻
Fell in love with Erlang

Ralf Th. Pietsch ratopi

😻
Fell in love with Erlang
View GitHub Profile
@ratopi
ratopi / midi.adoc
Created December 2, 2021 10:01
MIDI Codes

MIDI 1.0 Specification Message Summary

Status / D7—​D0 Data Byte(s) / D7—​D0 Description

Channel Voice Messages [nnnn = 0-15 (MIDI Channel Number 1-16)]

@ratopi
ratopi / face-detection.py
Last active August 20, 2020 14:41
OPEN CV
# https://pythonprogramming.net/haar-cascade-face-eye-detection-python-opencv-tutorial/
import numpy as np
import cv2
# multiple cascades: https://github.com/Itseez/opencv/tree/master/data/haarcascades
#https://github.com/Itseez/opencv/blob/master/data/haarcascades/haarcascade_frontalface_default.xml
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
#https://github.com/Itseez/opencv/blob/master/data/haarcascades/haarcascade_eye.xml
@ratopi
ratopi / Main.elm
Created January 9, 2020 13:53
Elm Starter
module Hinweise exposing (..)
import Browser
import Html
import Time
type Msg
= TickMsg Time.Posix
@ratopi
ratopi / readme.md
Created October 19, 2019 10:28
Erlang and SSH and RSA and PEM

Some notes about reading SSH-Keys in Erlang and using them

Converting SSH-Key to PEM

$ ssh-keygen -e -m pem -f .ssh/MYKEY.pub > /tmp/MYKEY.pub.pem

Reading public Key in Erlang

{ok, C} = file:read_file("/tmp/cloud.pub.pem"). > public_key:pem_decode(C).

@ratopi
ratopi / languages-in-the-beam.md
Created September 19, 2019 16:26
Language in the BEAM

Languages in the BEAM

  • Erlang
  • Elixir
  • LFE
  • Prolog
  • Lua
  • Joxa
  • Efene
  • Clojerl
@ratopi
ratopi / Dockerfile
Created October 21, 2018 13:04
Just some docker experiments
FROM alpine:3.8
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL \
maintainer="ratopi" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.docker.dockerfile="/Dockerfile" \
@ratopi
ratopi / odb2.md
Created August 26, 2018 12:41
ODB2

ELM327

Bluetooth

ID is OBDII PW is 1234 or 0000 or 6789

@ratopi
ratopi / cinelerra-tipps.md
Last active March 13, 2024 12:31
Cinelerra Tipps

Import JPEGs

File:

JPEGLIST 
<fps>
<width>
<height>
<file / absolute path>
@ratopi
ratopi / command-logger.sh
Created January 20, 2017 14:26
Allowing git fetch, clone, push via ssh
#!/bin/bash
echo "$SSH_ORIGINAL_COMMAND" >> /home/git/ssh.log
[[ $SSH_ORIGINAL_COMMAND =~ git-receive-pack ]] && eval "$SSH_ORIGINAL_COMMAND" && exit 0
[[ $SSH_ORIGINAL_COMMAND =~ git-upload-pack ]] && eval "$SSH_ORIGINAL_COMMAND" && exit 0
[[ $SSH_ORIGINAL_COMMAND =~ git-upload-archive ]] && eval "$SSH_ORIGINAL_COMMAND" && exit 0
echo "NA" >> /home/git/ssh.log