Skip to content

Instantly share code, notes, and snippets.

@Unnamed69
Unnamed69 / postgres_queries_and_commands.sql
Created June 25, 2024 14:00 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- 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%'
@Unnamed69
Unnamed69 / userChrome.css
Created April 17, 2024 06:49 — forked from BrianGilbert/userChrome.css
Firefox userChrome to autohide Sideberry panel and hide titlebar tabs, and autohide Page Actions.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* This style will hide the tab bar. For MacOS Big Sur
*
* Contributor(s): Isaac-Newt, Ivan0xFF, millerdev, AMomchilov
*/

Keybase proof

I hereby claim:

  • I am unnamed69 on github.
  • I am ntgiang (https://keybase.io/ntgiang) on keybase.
  • I have a public key ASBzZC0JCvPtTwtYqw2g3XtpNhgej2GwIFJ6MZuV4XgG8wo

To claim this, I am signing this object: