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 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
https://frameio.geckoboard.com/dashboards/026BB9398258380D |
This file contains 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
<h1>hello world</h1> |
This file contains 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"] = [ | |
'Abba', 'Achang', 'A big,' 'Adi', 'fools', 'hooligan', 'Afu', 'princes', 'donkey', 'Liza', 'Allah' 'Ali', 'Mom,' 'Oman', 'Mei', 'Niang' | |
'Lady', 'Auntie', 'flattery', 'Egypt', 'suffer side', 'one by one', 'beaten', 'wait until', 'hungry', 'one by one', 'survive', ' suffer shoulder, '' near to ',' scolded '' Punished ',' next ' | |
'Beating', 'Damn,' 'Oh,' 'cancer', 'cancer', 'cancer', 'Airan', 'Wormwood', 'Fitch', 'Ai Peng', 'moxa', ' Artemisia ',' be too embarrassed to mention ',' find it difficult to ',' in the way ',' eyesore ' | |
'Due', 'pet name', 'love', 'love', 'caress',' patriotism ',' loving ',' love ',' love ',' lovingly ',' love ',' Amy ',' loving ',' love ',' daughter ',' wife ' | |
'Love', 'love', 'love that', 'hear', 'care', 'small love', 'love', 'love and hate', 're-love', 'love child', 'Pass' 'horse', 'saddle', 'amino' 'ammonia', 'ammonia' | |
'Placement', 'Anderson', 'Andhra', 'stable', 'settled', 'placed', 'law-abiding', 'appease', 'well', 'Anhui', 'settle down', 'quiet' |
This file contains 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" standalone="no" ?> | |
<NIXML><TraktorSettings><Entry Name="DeviceIO.Config.Controller" Type="3" Value="RElPTQAAJiBESU9JAAAABAAAAAFERVZTAAAmDAAAAAFERVZJAAAmAAAAABoAVAByAGEAawB0AG8AcgAuAEsAbwBuAHQAcgBvAGwAIABaADEALgBEAGUAZgBhAHUAbAB0RERBVAAAJcBERElGAAAABAAAAABERElWAAAAGgAAAAkAMgAuADYALgA0ACAARABlAHYAAAAYRERJQwAAAAQAAAAARERQVAAAACwAAAAJAEsAbwBuAHQAcgBvAGwAWgAxAAAACQBLAG8AbgB0AHIAbwBsAFoAMUREREMAAAY2RERDSQAABBgAAAATRENEVAAAACAAAAAEAE0AbwBkAGUAAAABAAAAAD+AAAAAAAADAAAAAERDRFQAAAAuAAAACwBDAHIAbwBzAHMAIABGAGEAZABlAHIAAAACAAAAAD+AAAAAAAADAAAAAURDRFQAAAAmAAAABwBDAHUAZQAgAE0AaQB4AAAAAgAAAAA/gAAAAAAAAwAAAAJEQ0RUAAAAPAAAABIATABlAGYAdAAuAEYAaQBsAHQAZQByACAATwBuAC8ATwBmAGYAAAABAAAAAD+AAAAAAAADAAAAA0RDRFQAAAA+AAAAEwBSAGkAZwBoAHQALgBGAGkAbAB0AGUAcgAgAE8AbgAvAE8AZgBmAAAAAQAAAAA/gAAAAAAAAwAAAANEQ0RUAAAAKAAAAAgATABlAGYAdAAuAEMAdQBlAAAAAQAAAAA/gAAAAAAAAwAAAAREQ0RUAAAAKgAAAAkAUgBpAGcAaAB0AC4AQwB1AGUAAAABAAAAAD+AAAAAAAADAAAABERDRFQAAAAqAAAACQBMAGUAZgB0AC4ARwBhAGkAbgAAAAIAAAAAP4AAAAAAAAMAAAAFRENEVAA |
This file contains 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
print("Hello, this is a Python script.") | |
print("Hook['params'] is populated with request parameters") | |
print(Hook['params']['hook']) | |
print("Hook['req'] is the http request") | |
print(Hook['req']['url']) |
This file contains 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 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 simpleHttpRequest (hook) { | |
// npm modules available, see: http://hook.io/modules | |
var request = require('request'); | |
request.get('http://httpbin.org/ip', function(err, res, body){ | |
if (err) { | |
return hook.res.end(err.messsage); | |
} | |
hook.res.end(body); | |
}) | |
}; |
This file contains 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 simple hello world microservice | |
// Click "Deploy Service" to deploy this code | |
// Service will respond to HTTP requests with a string | |
module['exports'] = function helloWorld (hook) { | |
// hook.req is a Node.js http.IncomingMessage | |
var host = hook.req.host; | |
// hook.res is a Node.js httpServer.ServerResponse | |
// Respond to the request with a simple string | |
hook.res.end(host + ' says, "Hello world!"'); | |
}; |
NewerOlder