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
| awk '{if(NR==1)sub(/^\xef\xbb\xbf/,"");print}' text-with-bom.txt |
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 ( | |
| "fmt" | |
| "gopkg.in/mcuadros/go-syslog.v2" | |
| "time" | |
| ) | |
| func check(e error) { | |
| if e != nil { |
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
| FROM debian:7 | |
| RUN dpkg --add-architecture i386 | |
| RUN apt-get update && apt-get install libstdc++5:i386 wget -y | |
| RUN curl -o /docker-entrypoint.sh https://raw.githubusercontent.com/chetth/docker-sop2broadcast/master/docker-entrypoint.sh \ | |
| && chmod +x /docker-entrypoint.sh | |
| RUN mkdir /app | |
| WORKDIR /app | |
| RUN wget http://download.sopcast.com/download/sp-auth.tgz && apt-get remove -y wget |
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 random | |
| from locust import HttpLocust, TaskSet, task | |
| class WebsiteTasks(TaskSet): | |
| @task(1) | |
| def index(self): | |
| with open("url_list", "r") as listdoc: | |
| urls = listdoc.read().splitlines() |
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
| net.ipv4.ip_forward=0 | |
| net.ipv4.tcp_fin_timeout = 60 | |
| net.ipv4.tcp_retries1 = 3 | |
| net.ipv4.tcp_keepalive_probes = 9 | |
| net.ipv4.tcp_keepalive_time = 7200 | |
| net.ipv4.tcp_syn_retries = 5 | |
| kernel.sem = 250 32000 100 128 | |
| kernel.shmall = 209715200 | |
| kernel.shmmax = 214748364800 |