Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Alex Simenduev shamil

🎯
Focusing
View GitHub Profile
@shamil
shamil / alertmanager.yml
Last active Aug 27, 2021
Prometheus - better slack messages
View alertmanager.yml
receivers:
- name: default
slack_configs:
- api_url: https://hooks.slack.com/services/...
channel: alerts
send_resolved: true
title: '' # important, put empty string here
text: '{{ template "slack.shamil.text" . }}'
@rikatz
rikatz / eventexporter.yml
Created Nov 5, 2018
Kubernetes Events Export with Metricbeat + Logstash
View eventexporter.yml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: metricbeat-config
namespace: kube-system
labels:
k8s-app: metricbeat
data:
metricbeat.yml: |-
@shamil
shamil / mount_qcow2.md
Last active Nov 23, 2022
How to mount a qcow2 disk image
View mount_qcow2.md

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@denji
denji / http-benchmark.md
Last active Nov 23, 2022
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
View http-benchmark.md
@jeremyfelt
jeremyfelt / open-source-search-compare.md
Last active Feb 5, 2022
Comparing open source search solutions
View open-source-search-compare.md
@shamil
shamil / gist:2165160
Created Mar 22, 2012 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.
View gist:2165160

Client-side SSL

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -out ca.key 2048
openssl req -new -x509 -days 365 -key ca.key -out ca.crt

Create the Client Key and CSR

@miyucy
miyucy / sample.rb
Created Aug 25, 2011
zabbix_sender ruby impl
View sample.rb
port = 10051
s = Zabbix::Sender.new 'zabbix-server', port
pp s.send('host', 'key', 'value')
# => {"response"=>"success",
# "info"=>"Processed 1 Failed 0 Total 1 Seconds spent 0.000042"}
pp s.to('host') {
send 'key', 'value'
@mtigas
mtigas / gist:952344
Last active Nov 26, 2022
Mini tutorial for configuring client-side SSL certificates.
View gist:952344

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes: