Skip to content

Instantly share code, notes, and snippets.

Victor Noagbodji nvictor

Block or report user

Report or block nvictor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View table_size.sql
SELECT
relname AS table_name,
pg_size_pretty(pg_total_relation_size(relid)) AS total,
pg_size_pretty(pg_relation_size(relid)) AS internal,
pg_size_pretty(pg_table_size(relid) - pg_relation_size(relid)) AS external,
pg_size_pretty(pg_indexes_size(relid)) AS indexes
FROM pg_catalog.pg_statio_user_tables ORDER BY pg_total_relation_size(relid) DESC;
@nvictor
nvictor / hn_logged.js
Created Jun 8, 2019
Collapse all comments on HN
View hn_logged.js
$("logout").id = "temp"; for (tag of byClass(document, "togg")) { if (tag.text.slice(0, 2) === "[-") { tag.click(); } }; $("temp").id = "logout";
@nvictor
nvictor / hn.js
Created Jun 8, 2019
Collapse all comments on HN
View hn.js
for (tag of byClass(document, "togg")) { if (tag.text.slice(0, 2) === "[-") { tag.click(); } }
You can’t perform that action at this time.