mitmproxy is an excellent console app written in Python.
It is easy to use on Linux and OS X.
Use brew install mitmproxy to install it on OS X.
| load("@rules_pkg//pkg:tar.bzl", "pkg_tar") | |
| load(":rules.bzl", "pkg_executable") | |
| # | |
| # Package executable :bin to tar | |
| # | |
| pkg_executable( | |
| name = "pkg", | |
| bin = ":bin", |
| { | |
| "APIGatewayServiceRolePolicy": { | |
| "Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy", | |
| "AttachmentCount": 0, | |
| "CreateDate": "2019-10-22T18:22:01+00:00", | |
| "DefaultVersionId": "v6", | |
| "Document": { | |
| "Statement": [ | |
| { |
| #!/usr/bin/env bash | |
| # Licensed under the Apache License, Version 2.0 | |
| # Adapted from https://github.com/paulp/psp-std/blob/master/bin/test | |
| runTests () { | |
| sbt test || exit 1 | |
| echo "[info] $(date) - finished sbt test" | |
| } | |
| stripTerminalEscapeCodes () { |
mitmproxy is an excellent console app written in Python.
It is easy to use on Linux and OS X.
Use brew install mitmproxy to install it on OS X.
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |