All:
Go/fasthttp (10 thr): 930.0 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Nginx (10 thr): 826.1 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
| #!/usr/bin/perl | |
| =head1 NAME | |
| http-mojo-server-test.pl | |
| =head1 DESCRIPTION | |
| test http server via Mojo::Server::Daemon |
| #!/usr/bin/perl | |
| =head1 NAME | |
| http-server-test.pl | |
| =head1 DESCRIPTION | |
| test http server via Net::Server::HTTP for static files |
| #!/usr/bin/env ruby | |
| # http://gist.github.com/gists/124242 | |
| # Deps: brew install flac lame | |
| filename = ARGV[0] | |
| abort "Usage: flac2mp3 FLACFILE" if filename.nil? | |
| map = {"TITLE" => "--tt", "ARTIST" => "--ta", "ALBUM" => "--tl", "TRACKNUMBER" => "--tn", "GENRE" => "--tg", "DATE" => "--ty"} | |
| args = "" |
| package E; | |
| =head1 DESCRIPTION | |
| module for perl oneliners | |
| =head1 SYNOPSIS | |
| perl -ME -e 'p [map {"$_$_"} qw/q w e/]' | |
| perl -ME -e 'j {%ENV}' |
| #!/usr/bin/perl | |
| ################################################# | |
| # | |
| # load html with css/js/img and embed it | |
| # | |
| ################################################# | |
| use warnings; | |
| use strict; |
| /* | |
| Honeypot for http tracking. | |
| sudo sh -c 'echo "127.0.0.1 google-analytics.com" >> /etc/hosts' | |
| sudo sh -c 'echo "127.0.0.1 googleads.g.doubleclick.net" >> /etc/hosts' | |
| sudo sh -c 'echo "127.0.0.1 mc.yandex.ru" >> /etc/hosts' | |
| go build http-honeypot.go | |
| sudo ./http-honeypot |
| //usr/bin/env go run $0 "$@"; exit | |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| ) | |
| func main() { | |
| fmt.Println("Hello world!") |
| find . -name '*.go' | xargs grep -E '\Winterface{}\W|\Wany\W' | wc -l |