Skip to content

Instantly share code, notes, and snippets.


Alex Simenduev shamil

View GitHub Profile
shamil / alertmanager.yml
Last active August 27, 2021 01:04
Prometheus - better slack messages
View alertmanager.yml
- name: default
- api_url:
channel: alerts
send_resolved: true
title: '' # important, put empty string here
text: '{{ template "slack.shamil.text" . }}'
rikatz / eventexporter.yml
Created November 5, 2018 18:21
Kubernetes Events Export with Metricbeat + Logstash
View eventexporter.yml
apiVersion: v1
kind: ConfigMap
name: metricbeat-config
namespace: kube-system
k8s-app: metricbeat
metricbeat.yml: |-
shamil /
Last active March 22, 2023 12:16
How to mount a qcow2 disk image

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 /
Last active March 22, 2023 15:51
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
jeremyfelt /
Last active February 5, 2022 17:52
Comparing open source search solutions
shamil / gist:2165160
Created March 22, 2012 22:35 — 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 / sample.rb
Created August 25, 2011 12:52
zabbix_sender ruby impl
View sample.rb
port = 10051
s = 'zabbix-server', port
pp s.send('host', 'key', 'value')
# => {"response"=>"success",
# "info"=>"Processed 1 Failed 0 Total 1 Seconds spent 0.000042"}
pp'host') {
send 'key', 'value'
mtigas / gist:952344
Last active March 8, 2023 17:00
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: