Skip to content

Instantly share code, notes, and snippets.

View Myralllka's full-sized avatar
🇺🇦

Mykola Morhunenko Myralllka

🇺🇦
  • Czech Technical University, Ukrainian Catholic University
  • Czech, Prague
View GitHub Profile
@Myralllka
Myralllka / screencast.sh
Last active April 10, 2024 13:04
Screencast using gstreamer from 2024
#!/bin/sh
# get your audio device name by
# pactl list | grep -A2 'Source' | grep input
# The main difference from the original (https://gist.github.com/BOOtak/2550b1d2701ee18714a784e472ba6a54)
# is usage of the compositor instead of videomixer
# https://gstreamer.freedesktop.org/documentation/compositor/index.html?gi-language=c#compositor
gst-launch-1.0 -e \
compositor name=mix \
! videoconvert \
@Myralllka
Myralllka / custom_OpenCV_Ubuntu_20.0.4.md
Last active October 23, 2022 13:32
how to compile OpenCV+contrib for ROS on Ubuntu 20.0.4

My system configuration

12.07.2022

  • Ubuntu 20.0.4
  • ROS Noetic
  • apt OpenCV v4.2.0
  • upstream OpenCV v4.6.0

How to compile OpenCV4 + contrib for ROS on Ubuntu 20.0.4

Important information

@Myralllka
Myralllka / install_pvs_on_linux.sh
Last active December 3, 2022 12:27
Script for auto installation of PVS_Studio
#!/bin/env bash
# Installation script for students who dont want to do it by theirselves.
# PVS_Studio info is here:
# https://pvs-studio.com/en/
# set -o xtrace
set -e
trap 'echo "$0: \"${last_command}\" command failed with exit code $?"' ERR
MY_DISTRO=$(cat /etc/*-release | tr [:upper:] [:lower:] | grep -Poi '(debian|ubuntu|manjaro|arch)' | uniq | head -n 1)
@Myralllka
Myralllka / BFS_PGE_50S5_UBUNTU.md
Last active November 3, 2021 21:00
How to set up Blackfly S (BFS-PGE-50S5C) camera on Ubuntu 20.0.4 Linux for ROS, summer 2021
  • To use your camera with ROS, you need SDK v1.27.0.48.
    • You can find it here
    • Drivers for ROS can be found here
  • Next - set static IP.
    • After connection throw ethernet, you should set static ip for the correct device:
    • You can check the device using ifconfig
    • Set static ip: ifconfig device_name 169.254.230.91 netmask 255.255.0.0
    • camera IP is 169.254.126.105
  • Problem with Image received from camera ID is incomplete.:
  • ros-drivers/flir_camera_driver#35
@Myralllka
Myralllka / How to use GitHub for lab works.md
Last active July 23, 2024 12:07
from 2020 in UCU we made it obligatory to submit lab works on GitHub because it's much easier to track plagiarism, make auto testing and make templates for each lab work. As far as it can be very new for some students, I wrote this document as introduction or "howto".

First question - what is GitHub?:ghost:

  • If you don’t know what are Git and GitHub yet, it is recommended to read this presentation. Even if you know, it can be handy.
  • Also, it is recommended to work with one of these two workflows: first, second. You can read here how to write correct commit messages.
  • More useful articles are here.

Next steps

  • Create a GitHub account if you still don’t have one 😆
  • Follow the link to the lab.
  • Choose your name and surname from the list. Please choose your name, not of another person.

Short instruction for Arch on Arm (Raspberry Pi 3)

Instalation (source)

firstly check, where is your sd card:

sudo fdisk -l

then run the util and create the table with partitions

sudo fdisk /dev/sdx
@Myralllka
Myralllka / CLion.md
Last active December 2, 2019 09:01
CLion for embedded development on Arch linux

CLion for embedded development on Arch linux and Ubuntu. Very simple ArchArch

Source is here

😄 Firstly you have to install the SW4STM32, because not all boards are supported and, probably, than you will be forced to use SW.

Installation

  • For Arch: firstly install following packages (if you have sw4stm32, you already have curses lib):
@Myralllka
Myralllka / installation_guide_SW4STM32.md
Last active April 10, 2024 13:05
The Instalation guide of the SW4STM32 on Arch Linux

The Instalation guide of the SW4STM32 on Arch Linux Arch

Based on this

Short guide 😄

  • Registrate here
  • Download and Install this or using package manager install stlink
  • Install the eclipse-cpp
  • Unlock the multilib in pacman.conf
  • Install lib32-gcc-libs and lib32-ncurses and lib32-ncurses5-compat-libs
  • Add System Worckbanch to eclipse
  • enjoy