Skip to content

Instantly share code, notes, and snippets.

View reinzor's full-sized avatar
🤖

Rein Appeldoorn reinzor

🤖
View GitHub Profile
@reinzor
reinzor / prepare-video-files-for-davinci-resolve-linux.bash
Last active August 24, 2025 11:08
Prepare video files for Davinci Resolve Linux
for f in *.mp4; do ffmpeg -i "$f" -c:v dnxhd -profile:v dnxhr_sq -c:a pcm_s16le "resolve_${f%.mp4}.mov"; done
@reinzor
reinzor / bash
Created August 24, 2025 11:08
Prepare video files for Davinci Resolve Linux
```
for f in *.mp4; do ffmpeg -i "$f" -c:v dnxhd -profile:v dnxhr_sq -c:a pcm_s16le "resolve_${f%.mp4}.mov"; done
```
@reinzor
reinzor / debian_from_ros_pkg.md
Created April 12, 2021 17:12 — forked from awesomebytes/debian_from_ros_pkg.md
How to create a debian from a ROS package
@reinzor
reinzor / stream_example.md
Last active October 29, 2024 05:42
GStreamer UDP stream examples

MJPEG

Server (Ubuntu 16.04)

gst-launch-1.0 -v filesrc location= /home/rein/Videos/big_buck_bunny_720p_30mb_0_0.mp4 ! decodebin ! videoconvert ! jpegenc ! rtpjpegpay ! udpsink host=localhost port=5000

Client (Ubuntu 16.04)

@reinzor
reinzor / download_github_organization.bash
Created December 8, 2017 19:10
Download github organization
# Replace the organization and num pages ,,
ORGANIZATION=tue-robotics && \
NUM_PAGES=20 && \
for i in $(seq 1 $NUM_PAGES); do for i in `curl -s https://api.github.com/orgs/$ORGANIZATION/repos?page=$i |grep html_url|awk 'NR%2 == 0'|cut -d ':' -f 2-3|tr -d '",'`; do git clone $i.git; done; done
@reinzor
reinzor / VOClabelcolormap.py
Created July 18, 2017 20:01 — forked from wllhf/VOClabelcolormap.py
Python implementation of the color map function for the PASCAL VOC data set.
"""
Python implementation of the color map function for the PASCAL VOC data set.
Official Matlab version can be found in the PASCAL VOC devkit
http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html#devkit
"""
import numpy as np
from skimage.io import imshow
import matplotlib.pyplot as plt
def color_map(N=256, normalized=False):
@reinzor
reinzor / validators.py
Created February 18, 2017 15:10 — forked from jrosebr1/validators.py
Validator for files, checking the size, extension and mimetype for Django.
# @brief
# Performs file upload validation for django. The original version implemented
# by dokterbob had some problems with determining the correct mimetype and
# determining the size of the file uploaded (at least within my Django application
# that is).
# @author dokterbob
# @author jrosebr1
import mimetypes
while true; do echo `fortune` | cowsay | wall -n; sleep 2; done
# Reset author of last commit
git su rein
git commit --amend --reset-author
# PS1
PS1='[\[\033[01;34m\]\w\[\033[00m\]] $(__git_ps1 "(%s)") \n\$ '
@reinzor
reinzor / signaldecode.c
Last active February 26, 2025 10:56 — forked from ebroecker/signaldecode.c
Decode CAN signals
#include <stdint.h> //uint typedefinitions, non-rtw!
#include <iostream>
#define MASK64(nbits) ((0xffffffffffffffff)>> (64-nbits))
inline float toPhysicalValue(uint64_t target, float factor, float offset, bool is_signed)
{
if (is_signed)
return ( (int64_t) target ) * factor + offset;