Skip to content

Instantly share code, notes, and snippets.

View alexanderzobnin's full-sized avatar

Alexander Zobnin alexanderzobnin

View GitHub Profile
@nikolaev-rd
nikolaev-rd / Grafana_ZabbixPlugin_compatibility.md
Last active December 26, 2024 06:51
Таблица совместимости версий Grafana и Zabbix-плагина
Grafana Zabbix Plugin Zabbix Нюансы
8.2.6 4.1.5 поднять версию выше не получается из-за grafana-zabbix/issue#1335
8.3.4 4.2.4 работает не у всех
8.3.5 4.2.5 sudo mkdir /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource-zabbix/datasource-zabbix
sudo mkdir /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource-zabbix/datasource-zabbix/partials/
sudo ln -s /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource-zabbix/partials/query.editor.html /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource-zabbix/datasource-zabbix/partials/query.editor.html
sudo mv /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/MANIFEST.txt /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/MANIFEST.txt.backup
`sudo chown -R grafana:grafana /var/lib/grafana
@troyfontaine
troyfontaine / 1-setup.md
Last active May 14, 2025 05:34
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@jbboehr
jbboehr / ffmpeg-hevc-encode-nvenc.md
Created February 23, 2017 21:58
This gist shows you how to encode specifically to HEVC with ffmpeg's NVENC on supported hardware, with a two-pass profile and optional CUVID-based hardware-accelerated decoding.

Encoding high-quality HEVC content in a two-pass manner with FFmpeg - based NVENC encoder on supported hardware:

If you've built ffmpeg as instructed here on Linux and the ffmpeg binary is in your path, you can do fast HEVC encodes as shown below, using NVIDIA's NPP's libraries to vastly speed up the process.

Now, to do a simple NVENC encode in 1080p, (that will even work for Maxwell Gen 2 (GM200x) series), start with:

ffmpeg  -i <inputfile> -pass 1 \
-filter:v hwupload_cuda,scale_npp=w=1920:h=1080:format=nv12:interp_algo=lanczos,hwdownload,format=nv12 \

-c:v hevc_nvenc -profile main -preset slow -rc vbr_2pass \