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
| WITH | |
| constants AS ( | |
| SELECT | |
| current_setting('server_version') AS version, | |
| current_setting('block_size')::int AS block_size, | |
| current_setting('autovacuum_vacuum_cost_delay') AS cost_delay, | |
| 1000 / extract(milliseconds FROM current_setting('autovacuum_vacuum_cost_delay')::interval) AS delays_per_sec, | |
| COALESCE(NULLIF(current_setting('autovacuum_vacuum_cost_limit')::int, -1), current_setting('vacuum_cost_limit')::int) AS cost_limit, | |
| current_setting('vacuum_cost_page_hit')::int AS cost_hit, | |
| current_setting('vacuum_cost_page_miss')::int AS cost_miss, |
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
| # MS SCEP & SE quarantined files decrypter | |
| # This script is a fork from quarantine.py from the cuckoosandbox project. | |
| # Also thanks to Jon Glass (https://jon.glass/quarantines-junk/) | |
| # Usage: quarantine.py <encryptedfile> | |
| # | |
| # Copyright (C) 2015 KillerInstinct, Optiv, Inc. (brad.spengler@optiv.com) | |
| # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org | |
| # See the file 'docs/LICENSE' for copying permission. |
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
| -- 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%' |