Skip to content

Instantly share code, notes, and snippets.

View geekodour's full-sized avatar
🐧
who are you and why are you here. tell me.

Hrishikesh Barman geekodour

🐧
who are you and why are you here. tell me.
View GitHub Profile
# NOTE: This is the trimmed down main.workflow for prometheus/prometheus
workflow "Start benchmark" {
on = "issue_comment"
resolves = ["start_benchmark"]
}
workflow "Cancel benchmark" {
on = "issue_comment"
resolves = ["cancel_benchmark"]
#!/bin/bash
# Setting -x is absolutely forbidden as it could leak the GitHub token.
set -uo pipefail
# GITHUB_TOKEN required scope: repo.repo_public
# prombench related
ghactions_dir="ghactions"
org="testpromorg"
interface=w_ap
hw_mode=g
channel=11
#ieee80211n=1
#wmm_enabled=1
#eapol_version=1
driver=nl80211
max_num_sta=60
logger_stdout=-1
logger_stdout_level=2
@geekodour
geekodour / chan.txt
Created February 3, 2019 09:38
Favorite irc channels
c
infra-talk
networking
bash
dgplug
fsfsys
go-nuts
prometheus
prometheus-dev
@geekodour
geekodour / custom_plaintext.tmpl
Created January 10, 2019 19:24
plain text email template for Alertmanager - Prometheus
{{/* ******************************* */}}
{{/* CUSTOM SUBJECT TEMPLATE */}}
{{/* ******************************* */}}
{{/* Note: Subject line should not contain new lines, that's why the subject template needs to be one line */}}
{{ define "__subject" }} [{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] {{ .GroupLabels.SortedPairs.Values | join " -- " }}{{ if gt (len .CommonLabels) (len .GroupLabels) }} ({{ with .CommonLabels.Remove .GroupLabels.Names }}{{ .Values | join " " }}{{ end }}){{ end }}{{ end }}
{{/* ******************************* */}}
{{/* CUSTOM PLAINTEXT EMAIL TEMPLATE */}}
@geekodour
geekodour / .muttrc
Last active September 21, 2018 11:42
muttrc
set ssl_starttls=yes
set ssl_force_tls=yes
set from = 'hrishikeshbman@gmail.com'
set realname = 'Hrishikesh Barman'
set imap_user = 'hrishikeshbman@gmail.com'
set imap_pass = 'this10WORLDgmail2018'
# REMOTE GMAIL FOLDERS
set folder = 'imaps://imap.gmail.com:993'
set spoolfile = '+INBOX'
@geekodour
geekodour / acgtc.md
Last active August 12, 2019 17:37
Action Plan for gtc

Action Plan for the community

A draft for this was published in July 2018

Note: Have to reduce the scope of the community initially (imp)

Enable people to have micro meetups discussions about their fields

What the community is about?

worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/usr/sbin/nginx -s reload