Skip to content

Instantly share code, notes, and snippets.

View aruaam's full-sized avatar

Alexey Semyonov aruaam

View GitHub Profile
@Himura2la
Himura2la / Grafana Alert Template.md
Last active July 17, 2025 21:29
How to use Grafana Alerts with the Telegram
  • Template name: telegram.message
  • Content:
    {{ define "alert_list" }}{{ range . }}{{ .Labels.alertname }}
    {{ range .Annotations.SortedPairs }}<strong>{{ .Name }}</strong>: {{ .Value }}
    {{ end }}| {{ if gt (len .GeneratorURL) 0 }}<a href="{{ .GeneratorURL }}">source</a> | {{ end }}{{ if gt (len .SilenceURL) 0 }}<a href="{{ .SilenceURL }}">silence</a> | {{ end }}{{ if gt (len .DashboardURL) 0 }}<a href="{{ .DashboardURL }}">dashboard</a> | {{ end }}{{ if gt (len .PanelURL) 0 }}<a href="{{ .PanelURL }}">panel</a> |{{ end }}
    —
    {{ end }}{{ end }}
    {{ define "telegram.message" }}
    

{{ if gt (len .Alerts.Firing) 0 }}FIRING!!!

@keithmorris
keithmorris / drive-format-ubuntu.md
Last active June 18, 2025 13:21
Partition, format, and mount a drive on Ubuntu
@arioch
arioch / gist:f7dd700255c1bc21fe129fe0aec14420
Created November 28, 2016 13:32 — forked from carlspring/gist:6762356
TeamCity REST API Commands
@jahands
jahands / Get-DirHash.ps1
Last active November 18, 2024 08:38
Get hash of entire directory in powershell.
Function Get-DirHash {
[Cmdletbinding()]
Param(
[Parameter(Mandatory=$true)]
[ValidateScript({
if(Test-Path -Path $_ -ErrorAction SilentlyContinue)
{
return $true
}
else