Skip to content

Instantly share code, notes, and snippets.

View r3code's full-sized avatar

Dmitriy S. Sinyavskiy r3code

View GitHub Profile
@r3code
r3code / perfconf_11_slo_refs.md
Created September 2, 2025 11:42
Perfconf 11: Материалы к докладу "Как сложить SLO: наши инструменты и приспособления"

Материалы к докладу "Как сложить SLO: наши инструменты и приспособления" (https://perfconf.ru/reports_11)

Упомянутые в презентации материалы:

  1. Defining slo: serevice level objective meaning (Google SRE Book, 2017)
  2. SRE Workbook. Chapter 2 - Implementing SLOs
  3. Книга Seeking SRE от David N. Blank-Edelman
  4. Книга Implementing Service Level Objectives от Alex Hidalgo
  5. Отчет SLO Adoption and Usage in Site Reliability Engineering от Julie McCoy, Nicole Forsgren, 2020
  6. Workshop: The Art of SLOs bu Google - тренинг по базовым основам определения SLI/SLO
  7. [SLO Document Example из SRE Workbook](https://sre
@r3code
r3code / refs.md
Last active September 2, 2025 11:46
Материалы к докладу "Доклад Минус 2 года мучений: быстро внедряем SLO"

Материалы к докладу "Доклад Минус 2 года мучений: быстро внедряем SLO"

Упомянутые в презентации материалы:

  1. Defining slo: serevice level objective meaning (Google SRE Book, 2017)
  2. SRE Workbook. Chapter 2 - Implementing SLOs
  3. Книга Seeking SRE от David N. Blank-Edelman
  4. Книга Implementing Service Level Objectives от Alex Hidalgo
  5. Отчет SLO Adoption and Usage in Site Reliability Engineering от Julie McCoy, Nicole Forsgren, 2020
  6. Workshop: The Art of SLOs bu Google - тренинг по базовым основам определения SLI/SLO
  7. SLO Document Example из SRE Workbook
@r3code
r3code / references.md
Last active August 29, 2025 21:37
Материалы к докладу "Как быстро сделать MVP для SLI/SLO и не наступить на грабли"

Материалы к докладу "Как быстро сделать MVP для SLI/SLO и не наступить на грабли"

Упомянутые в презентации материалы:

  1. Defining slo: serevice level objective meaning (Google SRE Book, 2017)
  2. SRE Workbook. Chapter 2 - Implementing SLOs
  3. Книга Seeking SRE от David N. Blank-Edelman
  4. Книга Implementing Service Level Objectives от Alex Hidalgo
  5. Отчет SLO Adoption and Usage in Site Reliability Engineering от Julie McCoy, Nicole Forsgren, 2020
  6. Workshop: The Art of SLOs bu Google - тренинг по базовым основам определения SLI/SLO
  7. [SLO Document Example из SRE Workbook](https://sre.google/workbook/slo-doc
@r3code
r3code / README.md
Last active May 20, 2025 16:28
Zabbix server with PostgreSQL to run by docker-compose (ready to go for local testing)

Zabbix server with PostgreSQL to run by docker-compose (ready to go for local testing)

Prepare

Install Docker and Docker Compose

Run

docker compose up -d

@r3code
r3code / README.md
Created February 16, 2024 07:22 — forked from 4wk-/README.md
Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Uninstall then reinstall WSL on Windows 10 (clean way)

Background

I've been using wsl (version 2) with genie mod for years without issue, but one day, Windows 10 finally catch up on wsl Windows 11 features and gives us a way to use systemD natively.

I wanted to use the new "right way" to enable systemD on Windows Subsystem for Linux (without genie), and I also had a (probably related) infinite Windows RemoteApp error poping in.

Fixing it

A - Uninstall wsl and related stuff

  1. In powershell (as admin)
@r3code
r3code / Readme.md
Last active July 14, 2025 04:47
kinescope.io video downloader

kinescope.io video downloader

  1. Install python3, download tools: ffmpeg and N_m3u8DL-RE
  2. Put kdl.py, ffmpeg and N_m3u8DL-RE into same folder
  3. Run python kdl.py it will ask you to input kinescope embed link (e.g. https://kinescope.io/embed/1234534) and referrer link (e.g. https://videos.mysite.org). kinescope forbids to access without a referrer.
  4. Wait for a download copletion.

kdl.py can automatically select the best quality of a video or you can choose it in a menu provided by N_m3u8DL-RE.
ffmpeg receives parts of the selected video and an audio and muxes them into output mp4 file.

@r3code
r3code / send-test-alert.sh
Created March 28, 2023 14:16
Sending Alertmanager test alert and resolution over API
#!/bin/bash
# set your AlertManager server url
alertmanager_url='http://localhost:9093'
url="$alertmanager_url/api/v1/alerts"
# Script will prompt you for alert params, if you hit ENTER without entering a value it uses a [default] value
# alert params
default_name="alert_$RANDOM"
read -p "Enter alertname [$default_name]: " alertname
alertname=${name:-$default_name}
@r3code
r3code / wsl-add-ssh-forwarding-enables-password-store.sh
Created February 1, 2023 11:49
WSL 2 Allow SSH password store and use
# https://1password.community/discussion/128023/ssh-agent-on-windows-subsystem-for-linux
# Script: Do not ask for SSH password in Git/GitLab
# or you will be receiving prompt or error
# USEAGE: adding this to your .bashrc or .zshrc, Restart the ubuntu terminal / resource the rc file (source .bashrc), Test with ssh-add -l Should see your ssh keys.
# Configure ssh forwarding
export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock
# need `ps -ww` to get non-truncated command for matching
# use square brackets to generate a regex match for the process we want but that doesn't match the grep command running it!
ALREADY_RUNNING=$(ps -auxww | grep -q "[n]piperelay.exe -ei -s //./pipe/openssh-ssh-agent"; echo $?)
if [[ $ALREADY_RUNNING != "0" ]]; then
@r3code
r3code / sre-incident-management.md
Last active January 9, 2023 09:37
SRE incident management

SRE incident management

  1. https://response.pagerduty.com/before/severity_levels/ - уровни серьезности инцидентов (пример)
  2. https://www.blameless.com/blog/severity-levels - Severity Levels (What They Are & Why They Matter)
  3. https://www.atlassian.com/incident-management/kpis/severity-levels - Understanding incident severity levels
  4. https://rootly.com/blog/practical-guide-to-sre-incident-severity-levels - руководство по составлению классификации инцидентов
  5. https://www.blameless.com/blog/severity-vs-priority - Severity vs. Priority | Понимание разницы
  6. https://www.bmc.com/blogs/impact-urgency-priority/ Матрица влияния-срочность-приоритет
  7. https://www.blameless.com/blog/incident-priority-matrix Incident Priority Matrix (Understanding Impact and Urgency)
  8. https://www.blameless.com/blog/incident-management-best-practices - Best Practices for Effective Incident Management