Skip to content

Instantly share code, notes, and snippets.

View tsaridas's full-sized avatar

Andreas Tsarida tsaridas

View GitHub Profile
frontend http
mode http
bind :::80 v4v6
http-request lua.auth-request auth_request /is-allowed
http-request deny if ! { var(txn.auth_response_successful) -m bool }
backend auth_request
mode http
server auth_request 127.0.0.1:8080
@tsaridas
tsaridas / client.py
Created May 21, 2017 18:53 — forked from akx/client.py
Simple uWSGI + XML-RPC
import xmlrpclib
s = xmlrpclib.ServerProxy('http://localhost:3040')
print s.pow(2,3)
print s.sum([2,3])
print s.system.listMethods()
@tsaridas
tsaridas / Template_SNMP_DELL_OpenManage.xml
Created April 22, 2016 12:39 — forked from alice-xu/Template_SNMP_DELL_OpenManage.xml
Zabbix SNMP monitoring template for DELL Openmanage Server Administrator
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2014-06-18T02:56:36Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@tsaridas
tsaridas / ansinv.py
Created February 7, 2016 12:46 — forked from guymatz/ansinv.py
script to play with ansible inventory
#!/usr/bin/env python
'''
This script should be run against an ansible Inventory file
in order to return host/group information
Contact guy dot matz dot cft at jcrew dot com with any questions, although he's
probably completely forgotten everything about this . .. :-(
'''
import os
import json