Skip to content

Instantly share code, notes, and snippets.

View jidckii's full-sized avatar

Evgeniy Medvedev jidckii

View GitHub Profile
@jidckii
jidckii / QMK_VIA-Linux.md
Created November 21, 2024 11:44
Настройка QMK/VIA в Linux
@jidckii
jidckii / docker-run-werf.md
Created October 28, 2024 08:00
docker run werf

Запуск werf в docker

docker run --pull always --rm -it -u 0 --security-opt seccomp=unconfined --security-opt apparmor=unconfined registry.werf.io/werf/werf:2-rock-solid werf version
Error during unshare(CLONE_NEWUSER): Operation not permitted
ERRO[0000] error parsing PID "": strconv.Atoi: parsing "": invalid syntax
ERRO[0000] (unable to determine exit status)
@jidckii
jidckii / opensuse_golang_links.md
Last active October 30, 2023 15:05
go tool: no such tool “compile” - resolve opensuse
@jidckii
jidckii / alertmanager.tmpl
Created April 5, 2023 14:08
Alertmanager telegram template
{{ define "__yucca_text_alert_list" }}{{ range . }}
---
🪪 <b>{{ .Labels.alertname }}</b>
{{- if .Annotations.summary }}
📝 {{ .Annotations.summary }}{{ end }}
{{- if .Annotations.description }}
📖 {{ .Annotations.description }}{{ end }}
🏷 Labels:
{{ range .Labels.SortedPairs }} <i>{{ .Name }}</i>: <code>{{ .Value }}</code>
{{ end }}{{ end }}
@jidckii
jidckii / README.md
Created February 17, 2023 05:57
Как выпустить сертификат в namecheap или другом CA и использовать в kubernetes

Как выпустить сертификат в namecheap или другом CA и использовать в kubernetes

  1. Подготовить openssl config san.cnf

    [ req ]
    default_bits       = 4096
    distinguished_name = req_distinguished_name
    req_extensions     = req_ext
    

prompt = no

@jidckii
jidckii / setup_russiantrustedca.md
Created February 10, 2023 11:55
Установка сертификатов НУЦ Минцифры в Alpine Linux

Установка сертификатов НУЦ Минцифры в Alpine Linux

Проверяем:

curl -vvv -XGET -I https://www.sberbank.ru/ru/certificates

Устанавливаем:

@jidckii
jidckii / screencasts_formater.sh
Last active May 23, 2022 18:15
screencasts_formater.sh
#!/bin/bash
set -xe
DN="${HOME}/Videos/Screencasts"
DOCKER_RUN="docker \
run \
--rm \
--user $(id -u):138 \
--device /dev/dri:/dev/dri \
@jidckii
jidckii / extractors.json
Last active October 1, 2021 08:33
Graylog Extractors JSON
{
"extractors": [
{
"title": "JSON",
"extractor_type": "json",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
@jidckii
jidckii / SetupCustomGraylogMappings.md
Last active August 10, 2021 12:40
Setup Custom Graylog Mappings

Fix problem graylog failed to parse field level of type long

cat << EOF > graylog-custom-mapping.json
{
  "template": "graylog_*",
  "mappings" : {
    "properties" : {
 "level" : {
@jidckii
jidckii / graylog_rules.md
Last active August 10, 2021 12:40
Graylog rules

Fix problem graylog failed to parse field level of type long

Stage 0

rule "remove new line"
when
  has_field("message")
then