Skip to content

Instantly share code, notes, and snippets.


Alex Simenduev shamil

View GitHub Profile
miyucy / sample.rb
Created Aug 25, 2011
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'
rikatz / eventexporter.yml
Created Nov 5, 2018
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 / alertmanager.yml
Last active Aug 27, 2021
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" . }}'
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

jeremyfelt /
Last active Feb 5, 2022
Comparing open source search solutions
mtigas / gist:952344
Last active Dec 23, 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:

denji /
Last active Jan 12, 2023
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
shamil /
Last active Jan 31, 2023
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