This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import xmlrpclib | |
| s = xmlrpclib.ServerProxy('http://localhost:3040') | |
| print s.pow(2,3) | |
| print s.sum([2,3]) | |
| print s.system.listMethods() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |