Skip to content

Instantly share code, notes, and snippets.

// Product
class House {
private String foundation;
private String structure;
private String roof;
// Constructor
public House(String foundation, String structure, String roof) {
this.foundation = foundation;
this.structure = structure;
@hunterartur
hunterartur / pg_schema_size.sql
Created March 11, 2024 17:24 — forked from AndreyStekov/pg_schema_size.sql
Get schema size (postgres).
SELECT pg_size_pretty(sum(pg_relation_size(quote_ident(schemaname) || '.' || quote_ident(tablename)))::bigint) FROM pg_tables
WHERE schemaname = 'yourschema'
@hunterartur
hunterartur / lmdb.tcl
Created April 14, 2025 10:59 — forked from antirez/lmdb.tcl
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <antirez@gmail.com>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!