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
| package main | |
| import ( | |
| "bytes" | |
| "log" | |
| "net/http" | |
| "net/http/httputil" | |
| "net/url" | |
| "time" | |
| ) |
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
| #!/bin/sh | |
| [Unit] | |
| Description=Control gatling webserver | |
| After=network.target | |
| Requires=revprox.service | |
| [Service] | |
| Type=simple | |
| ExecStart=/usr/bin/gatling -p 81 -L -F -S -D -c /var/www/ |
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
| #!/bin/sh | |
| exec > /var/log/cloudflare.log 2>&1 | |
| set -x | |
| for ip in $(curl -s https://www.cloudflare.com/ips-v4); do /usr/sbin/iptables -I INPUT -p tcp -m multiport --dports http,https -s "$ip" -j ACCEPT; done | |
| for ip in $(curl -s https://www.cloudflare.com/ips-v6); do /usr/sbin/ip6tables -I INPUT -p tcp -m multiport --dports http,https -s "$ip" -j ACCEPT; done |
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
| class meh(): | |
| value = True | |
| name = "" | |
| def __init__(self, name): | |
| self.name = name | |
| def __repr__(self): | |
| if self.value: | |
| return "1" | |
| else: | |
| return "0" |
NewerOlder