Skip to content

Instantly share code, notes, and snippets.

View atom1285's full-sized avatar
Dobre rejnou

Ivan Polák atom1285

Dobre rejnou
  • Blume
  • Slovakia, Bratislava
  • 20:43 (UTC +01:00)
View GitHub Profile
@atom1285
atom1285 / prometheus.yml
Created February 12, 2023 11:39
Prometheus config for soketi
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'prometheus'
scrape_interval: 1m
static_configs:
- targets: ['localhost:9090']
- job_name: 'node'
static_configs:
- targets: ['127.0.0.1:9100']
@atom1285
atom1285 / dashboard.json
Last active February 12, 2023 11:40
Soketi grafana dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@atom1285
atom1285 / passwords.sh
Created January 26, 2023 15:52
terminal password manager
#!/usr/bin/env bash
# This script is a very basic password manager for your mac terminal, USE IT AT YOUR OWN RISK, saving passwords in plain text is not safe nor recommended.
# setup:
# place this script in ~/.ssh
# you can create a shortcut to it by placing the code below in your .bashrc/.zshrc/.bash_profile
# alias pass="~/.ssh/passwords.sh"
FILE="$HOME/.ssh/.passwords.json"
TMP_FILE=$(mktemp)