Skip to content

Instantly share code, notes, and snippets.

View bu4ak's full-sized avatar
🤔

Igor bu4ak

🤔
View GitHub Profile
@kkirsanov
kkirsanov / grafana-telegram-bot.md
Last active March 4, 2022 00:32
Как подключить telegram-бота к графане
  1. Cоздаем своего бота: Ищем в телеграмме бота @BotFather и говорим /newbot. В процессе создания получаем api-key для бота
  2. Добавляем в интересующий нас чат этого бота
  3. В этот же чат добавляем бота @myidbot и говорим ему /getgroupid@myidbot. Эта команда даст нам id чата
  4. В настройках Notification Channel графаны выбираем telegram и пишем туда полученные ранее api-key и id чата
@boreycutts
boreycutts / i3-gaps_installation_guide.md
Last active November 11, 2024 11:55
A simple installation guide for i3-gaps

Installing i3-gaps

Dependencies

i3-gaps has some packages that are required for it to work so install these things:

sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev libtool automake

You also need to install libxcb-xrm-dev, but I got Unable to locate package libxcb-xrm-dev when trying to install from the apt repositories on Ubuntu 16.04. If this happens to you, just install it from source using these commands:

mkdir tmp
@LauLaman
LauLaman / gpg.md
Last active March 7, 2023 14:42
Use GPG to sign commits using git & PHPStorm

1 - install GPG tools : https://gpgtools.org/

2 - Create new key for your github email

3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY

4 - configure git to sign all commits: git config --global commit.gpgsign true

5 - add to the bottom of ~/.gnupg/gpg.conf: (create the file if it not exists)