Skip to content

Instantly share code, notes, and snippets.

@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
@jidckii
jidckii / README.md
Last active May 10, 2020 03:52
Xiaomi YI Home Camera 720p
@jidckii
jidckii / DVRIP-Sonia Reference Codes.md
Created October 15, 2019 07:45 — forked from ekwoodrich/DVRIP-Sonia Reference Codes.md
Reference codes for the DVRIP/Sonia TCP protocol used by the Net Surveillance ActiveX plugin

DVRIP/Sonia Protocol

DVRIP/Sonia TCP protocol used by the Net Surveillance ActiveX plugin

1. Response Codes

Return code Definition
100 Success
101 Unknown error
102 Version not supported
103 Illegal request