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
#!/usr/bin/env python3 | |
import requests | |
import time | |
from sys import argv | |
from threading import Thread | |
URL = argv[-1] | |
def worker(i, 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
const winston = require("winston"); | |
const winstonFmt = winston.format; | |
const TIMESTAMP_FMT = "YYYY-MM-DD HH:mm:ss"; | |
const NANOS_IN_MILLI = BigInt(1e6); | |
const LOG_LEVEL = process.env.LOG_LEVEL || "warn"; | |
const LOG_LEVELS = { | |
levels: { | |
error: 0, |
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
FROM php:7-fpm | |
RUN apt-get update && \ | |
apt-get install -y \ | |
msmtp-mta \ | |
&& \ | |
rm -rf /var/lib/apt/lists/* /var/cache/apt/* | |
RUN printf 'host my.smtp.server\n' > /etc/msmtprc |
NewerOlder