Skip to content

Instantly share code, notes, and snippets.

View arren-ru's full-sized avatar
🚷
εΎˆεΏ™

Arren arren-ru

🚷
εΎˆεΏ™
  • Mohr Vista
  • Col 285 Sector OE-R a34-1
View GitHub Profile
@arren-ru
arren-ru / prometheus_remote_writer.go
Created September 23, 2025 11:38 — forked from kshcherban/prometheus_remote_writer.go
Write to prometheus over remote write protocol
package main
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/prompb"
"github.com/golang/snappy"
"net/http"
"log"
@arren-ru
arren-ru / benchmark_serialization.sh
Last active August 7, 2024 15:59
Benchmark BASH serialization
#!/usr/bin/env bash
declare -A output sample=(
[id]="969AEF26-6D33-475A-982B-27EC880A2495"
[name]="some_name"
[prop]="property with spaces"
[level]="lower"
[production]="no"
[env]="staging"
)
@arren-ru
arren-ru / .vimrc
Last active March 31, 2023 12:05
dotfiles
" VIM 8 defaults
unlet! skip_defaults_vim
silent! source $VIMRUNTIME/defaults.vim
set viminfo=%,<1000,'10,/50,:100,h,f0,n~/.vim/.viminfo
" β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ ╰─ viminfo file path
" β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ ╰──── file marks 0-9,A-Z 0=NOT stored
" β”‚ β”‚ β”‚ β”‚ β”‚ ╰────── disable 'hlsearch' loading viminfo
" β”‚ β”‚ β”‚ β”‚ ╰─────────── command-line history saved
" β”‚ β”‚ β”‚ ╰─────────────── search history saved