Skip to content

Instantly share code, notes, and snippets.

@eldargab
eldargab / docker-compose.yml
Created October 13, 2022 14:16 — forked from isSerge/docker-compose.yml
Subsquid Archive docker-compose.yml
services:
db:
image: postgres:12 # CockroachDB cluster might be a better fit for production deployment
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: squid-archive
ingest:
Attaching to subsquid-subspace_ingest_1, subsquid-subspace_gateway_1, subsquid-subspace_explorer_1, subsquid-subspace_db_1
db_1 | The files belonging to this database system will be owned by user "postgres".
db_1 | This user must also own the server process.
db_1 |
db_1 | The database cluster will be initialized with locale "en_US.utf8".
db_1 | The default database encoding has accordingly been set to "UTF8".
db_1 | The default text search configuration will be set to "english".
db_1 |
db_1 | Data page checksums are disabled.
db_1 |
@eldargab
eldargab / bench.js
Created April 20, 2012 15:22 — forked from chowey/bench.js
Benchmark str concatenation
var Benchmark = require('benchmark')
var suite = new Benchmark.Suite
suite
.add('push', function () {
var a = []
a.push("Lorem")
a.push("ipsum")
a.push("dolor")