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
| #Off output | |
| dmesg -D | |
| #on output | |
| dmesg -E |
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
| find ./jobs/1/docs/income -type f -print | while read filename ; do a=$(echo $filename | sed 's@./jobs/1/docs/income/@@'); grep $a ./jobs/1/data.html ; done | wc -l |
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
| docker run --rm -v /home/mypictures:/home bperel/terminalimageviewer -256 myimage.png |
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 = (req, res, next) => { | |
| res.header('Access-Control-Allow-Origin', '*') | |
| res.header('Access-Control-Allow-Method','GET HEAD PUT PATCH POST DELETE') | |
| res.header('Access-Control-Allow-Headers', 'Origin,Content-Type,Accept,Authorization') | |
| res.header('Vary', 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers') | |
| next() | |
| } |
OlderNewer