Skip to content

Instantly share code, notes, and snippets.

View r0oland's full-sized avatar
🎯
Focusing

Johannes Rebling r0oland

🎯
Focusing
View GitHub Profile
@r0oland
r0oland / setup.ps1
Created April 23, 2025 12:13
First Time Setup
winget install -e --id Git.Git;
winget install -e --id Microsoft.PowerShell.Preview;
winget install -e --id Atlassian.Sourcetree;
winget install -e --id LLVM.LLVM;
winget install -e --id Microsoft.VisualStudioCode.Insiders;
winget install -e --id Microsoft.WindowsTerminal
@r0oland
r0oland / gige_gst_v4l.md
Created March 16, 2025 19:12 — forked from nitheeshkl/gige_gst_v4l.md
Gstreamer pipelines to use GigE cams as webcam for Zoom/Teams/Skype

Using GigE cam as webcam for Zoom/Skype/Teams

TL;DR: Creates a Gstreamer pipeline to read camera frames from a GigE camera, using Aravis library, and publish them as V4l2 camera source, using V4l2loopback, that can be read by video conferencing programs like Zoom/Skype/Teams.

gst-launch-1.0 aravissrc blocksize=5013504 h-binning=1 v-binning=1 ! video/x-bayer,format=rggb,framerate=100/5,width=2448,height=2048 ! bayer2rgb ! video/x-raw,format=RGBx ! videoconvert ! video/x-raw,format=YUY2 !  aspectratiocrop aspect-ratio=16/9 ! videoscale ! video/x-raw,width=1280,height=720 ! queue ! v4l2sink device=/dev/video0

The Basics

@r0oland
r0oland / gige_gst_v4l.md
Created March 16, 2025 19:12 — forked from nitheeshkl/gige_gst_v4l.md
Gstreamer pipelines to use GigE cams as webcam for Zoom/Teams/Skype

Using GigE cam as webcam for Zoom/Skype/Teams

TL;DR: Creates a Gstreamer pipeline to read camera frames from a GigE camera, using Aravis library, and publish them as V4l2 camera source, using V4l2loopback, that can be read by video conferencing programs like Zoom/Skype/Teams.

gst-launch-1.0 aravissrc blocksize=5013504 h-binning=1 v-binning=1 ! video/x-bayer,format=rggb,framerate=100/5,width=2448,height=2048 ! bayer2rgb ! video/x-raw,format=RGBx ! videoconvert ! video/x-raw,format=YUY2 !  aspectratiocrop aspect-ratio=16/9 ! videoscale ! video/x-raw,width=1280,height=720 ! queue ! v4l2sink device=/dev/video0

The Basics

@r0oland
r0oland / linux.md
Last active February 28, 2025 19:19
SSH / Linux / HA Notes and tricks

ssh-keygen -t rsa -b 4096 -f $env:USERPROFILE\.ssh\id_rsa -C "[email protected]"

type $env:USERPROFILE\.ssh\id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

@r0oland
r0oland / git.ps1
Last active February 13, 2025 11:57
GIT Usefull
# pretty output on command line
git log --since='1 month ago' --format='%Cgreen%ci%Creset %s%Creset' --no-merges
# more details
git log --since='1 month ago' --format='%Cgreen%ci%Creset %s%Creset' --no-merges --shortstat
# even more details
git log --since='1 month ago' --format='%Cgreen%ci%Creset %s%Creset' --no-merges --stat
# output to summary file
@r0oland
r0oland / readme.md
Last active February 14, 2025 06:24
Conda

Conda Cheat Sheet

  • fix issues with powershell and conda 24.x

    • conda install -n base -c defaults conda=25.1.1
  • Create a new environment:

    • conda create --name myenv python=3.8
@r0oland
r0oland / regex_replace_c_comments.txt
Last active April 9, 2024 12:55
Regex | Search and Replace
serach: /\*(.*?)\*/
replace: //$1
@r0oland
r0oland / header_template.h
Last active November 22, 2024 11:58
C Templates and Usefull Stuff
/**
* @author Johannes Rebling ([email protected])
* @brief
* @date
*
* @copyright ASMPT GmbH & Co. KG, SMT R&D 34 - 2024
*
*/
#ifndef _XXX_H
@r0oland
r0oland / first_cell.py
Created October 30, 2023 07:52
Auto Reload Python Files in Jupyter
%reload_ext autoreload
%autoreload 2
@r0oland
r0oland / subplots.py
Last active March 22, 2024 10:25
Python Plotting
# see https://matplotlib.org/stable/gallery/subplots_axes_and_figures/mosaic.html#sphx-glr-gallery-subplots-axes-and-figures-mosaic-py
DPI = 100
Y_HEIGHT = 800
X_WIDTH = 1000
fig = plt.figure(figsize=(X_WIDTH/DPI, Y_HEIGHT/DPI), dpi=DPI)
axDict = fig.subplot_mosaic(
[
["a", "b"],