So HAProxy is primalery a load balancer an proxy for TCP and HTTP. But it may act as a traffic regulator. It may also be used as a protection against DDoS and service abuse, by maintening a wide variety of statistics (IP, URL, cookie) and when abuse is happening, action as denying, redirecting to other backend may undertaken ([haproxy ddos config], [haproxy ddos])
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
module['exports'] = function (hook) { | |
var rest = require('restler'), | |
moment = require('moment'); | |
var myGender = 'male', | |
myCountry = 'United States', | |
myDOB = '1986-05-01'; | |
var currentDate = moment(); |
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
module['exports'] = function highFive(hook) { | |
// hook.io has a range of node modules available - see | |
// https://hook.io/modules. | |
// We use request (https://www.npmjs.com/package/request) for an easy way to | |
// make the HTTP request. | |
var request = require('request'); | |
// The parameters passed in via the slash command POST request. | |
var params = hook.params; |
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
# A python script which anonymizes email addresses in all files in current directory and sub-directories. | |
# e.g. A file with the following contents: | |
# [email protected] | |
# Sid Phn#- 6385833322 | |
# [email protected] | |
# [email protected] | |
# [email protected] | |
# Would change to: |
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
# A python script which anonymizes email addresses in all files in current directory and sub-directories. | |
# e.g. A file with the following contents: | |
# [email protected] | |
# Sid Phn#- 6385833322 | |
# [email protected] | |
# [email protected] | |
# [email protected] | |
# Would change to: |
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
# A python script which anonymizes email addresses in all files in current directory and sub-directories. | |
# e.g. A file with the following contents: | |
# [email protected] | |
# Sid Phn#- 6385833322 | |
# [email protected] | |
# [email protected] | |
# [email protected] | |
# Would change to: |
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
# A python script which anonymizes email addresses in all files in current directory and sub-directories. | |
# e.g. A file with the following contents: | |
# [email protected] | |
# Sid Phn#- 6385833322 | |
# [email protected] | |
# [email protected] | |
# [email protected] | |
# Would change to: |
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
# A python script which anonymizes email addresses in all files in current directory and sub-directories. | |
# e.g. A file with the following contents: | |
# [email protected] | |
# Sid Phn#- 6385833322 | |
# [email protected] | |
# [email protected] | |
# [email protected] | |
# Would change to: |
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
/** | |
* Geocoder | |
* | |
* You pass it an address and it returns a geocoded response. You will need | |
* a Geocodio API Key. | |
* | |
* @param {string} api_key Your geocodio API Key | |
* @param {string} address An address. | |
* | |
* curl--data 'api_key=XXXXX&address=123 Maple Lane, Everywhere USA' http://hook.io/desmondmorris/geocoder |
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
/** | |
* Geocoder | |
* | |
* You pass it an address and it returns a geocoded response. You will need | |
* a Geocodio API Key. | |
* | |
* @param {string} api_key Your geocodio API Key | |
* @param {string} address An address. | |
* | |
* curl--data 'api_key=XXXXX&address=123 Maple Lane, Everywhere USA' http://hook.io/desmondmorris/geocoder |
NewerOlder