Skip to content

Instantly share code, notes, and snippets.

View crashdump's full-sized avatar
🖖

Adrien P. crashdump

🖖
View GitHub Profile
@crashdump
crashdump / consul-ssh-configurator.py
Last active July 5, 2016 17:54 — forked from mattupstate/consul-ssh-configurator.py
A script to generate an SSH config from Consul's HTTP API
#!/usr/bin/env python3
"""
Renders a partial SSH configuration file from Nodes and Services
located in a specified Consul catalog and then merges other partial
config files into the main ~/.ssh/config file. The Consul based SSH
config follows a convention for the SSH host::
Host <prefix>_<consul-cluster-name>_<node-name>
User <ssh-user>
Hostname <consul-node-address>
@crashdump
crashdump / keybase.md
Last active June 5, 2019 19:47
Keybase Proof

Keybase proof

I hereby claim:

  • I am crashdump on github.
  • I am adrienp (https://keybase.io/adrienp) on keybase.
  • I have a public key ASBN0dRpWA_POCJKLSZuueSZiYT4NbHMS9FQgHQ9oLWoHgo

To claim this, I am signing this object:

#!/usr/bin/python
# -*- coding: utf-8 -*-
# set expandtab ts=4 sw=4 ai
import os, sys
import time
import random
import string
import prowlpy
from twisted.python import log
@crashdump
crashdump / Template Freeswitch.xml
Created December 4, 2013 16:02
Freeswitch - Zabbix Monitoring
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2013-12-04T16:01:36Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@crashdump
crashdump / Template CouchDB.xml
Last active February 28, 2024 15:04
CouchDB / BigCouch - Zabbix Monitoring
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2013-12-03T16:57:07Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@crashdump
crashdump / Template Kamailio.xml
Last active August 29, 2022 09:38
Kamailio - Zabbix Monitoring
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2013-12-03T11:38:27Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@crashdump
crashdump / .vimrc
Created November 26, 2013 10:05
vimrc /w vundle
" Install me
" git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
" wget -O ~/.vimrc https://raw.github.com/crashdump/tasty-debian/master/files/vim/vimrc
" vim +BundleInstall +qall
set nocompatible
filetype off
syntax on
@crashdump
crashdump / epilepsy.c
Created October 9, 2013 07:55
I use this on a monitoring screen to get my attention: It make the screen flash multiples times (X11)
#include <unistd.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <strings.h>
#include <memory.h>
#include <stdlib.h>
#include <stdio.h>
/*
* 2013/10/09. Adrien Pujol.
@crashdump
crashdump / ip6tables
Last active November 20, 2019 13:21
### BEGIN INIT INFO
# Provides: firewall
# Required-Start: $network
# Required-Stop: $network
# Default-Start: S 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Firewall (ipv6) rules
# Description: Simple script to initialise an ip6tables firewall
### END INIT INFO
@crashdump
crashdump / iptables
Last active September 24, 2020 17:13
### BEGIN INIT INFO
# Provides: firewall-ipv4
# Required-Start: $network
# Required-Stop: $network
# Default-Start: S 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Firewall rules
# Description: Simple script to initialise an iptables firewall
### END INIT INFO