Skip to content

Instantly share code, notes, and snippets.

View tomek-szczesny's full-sized avatar

Tomek Szczęsny tomek-szczesny

View GitHub Profile
@andmax
andmax / Setup_SLURM
Last active October 30, 2023 14:26
Tips to compile, install and run jobs using SLURM
1- The problem is to make SLURM (https://slurm.schedmd.com/) work properly
2- SLURM is very intricate and difficult to set up (here is SLURM 20.02)
3- It may be important to have NVIDIA library path added, e.g.:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia-410
4- SLURM depends on MUNGE that can be installed using apt as:
sudo apt-get update
sudo apt-get install libmunge-dev libmunge2 munge
sudo apt-get clean
5- The same is not true for SLURM itself as its apt package is old
6- So it seems important to compile it from source code, wgetting aa:
@artizirk
artizirk / gstreamer_experiments.md
Last active March 24, 2022 12:13
gstreamer experiments

Links

https://gist.github.com/strezh/9114204

cmds

Convert motec camera mjpg to h264 and stream it to localhost

gst-launch-1.0 -v rtspsrc location=rtsp://10.0.0.11:8554/MCDE3000 latency=0 ! decodebin ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! h264parse ! rtph264pay pt=96 ! udpsink host=127.0.0.1 port=5000

Playback h264 from locahost

@fm4dd
fm4dd / gcc compiler optimization for arm systems.md
Last active April 9, 2024 19:24
GCC compiler optimization for ARM-based systems

GCC compiler optimization for ARM-based systems

2017-03-03 fm4dd

The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.

-mcpu, -march: Defining the CPU type and architecture

These flags can both be used to set the CPU type. Setting one or the other is sufficient.

@CSaratakij
CSaratakij / .tmux.conf
Last active May 3, 2022 21:23
Tmux's Config that's very close to i3wm (Setting with an idea of using tmux without x-server)
# Config that is very close to a i3 window manager's keybinding.
set -s escape-time 0
setw -g aggressive-resize on
# First remove *all* keybindings
unbind-key -a
# List keys
bind-key ? list-keys
@MightyPork
MightyPork / usb_hid_keys.h
Last active May 1, 2024 05:11
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@nebgnahz
nebgnahz / gstreamer.md
Last active November 6, 2023 12:28
Collections of GStreamer usages

Most GStreamer examples found online are either for Linux or for gstreamer 0.10.

This particular release note seems to have covered important changes, such as:

  • ffmpegcolorspace => videoconvert
  • ffmpeg => libav

Applying -v will print out useful information. And most importantly the negotiation results.