Note: PBSS in Geth >=1.13.0 removes the need to prune manually.
Geth (Go-Ethereum) as of July 2022 takes about 650 GiB of space on a fast/snap sync, and then grows by ~ 14 GiB/week with default cache, ~ 8 GiB/week with more cache.
{ | |
"main": "index.js", | |
"scripts": { | |
"clean": "rimraf dist", | |
"start": "NODE_ENV=production node -r ts-node/register/transpile-only -r tsconfig-paths/register ./dist/index.js", | |
"build": "npm run clean && tsc", | |
"dev": "NODE_ENV=development ts-node-dev -r tsconfig-paths/register ./src/index.ts", | |
"test": "mocha -r ts-node/register \"src/test/**/*.spec.ts\"", | |
"pm2:dev": "npm run build && pm2 start pm2_dev.config.js", | |
"pm2:prod": "npm run build && pm2 start pm2_prod.config.js", |
Note: PBSS in Geth >=1.13.0 removes the need to prune manually.
Geth (Go-Ethereum) as of July 2022 takes about 650 GiB of space on a fast/snap sync, and then grows by ~ 14 GiB/week with default cache, ~ 8 GiB/week with more cache.
[ | |
{ | |
"name": "Priority: Critical", | |
"description": null, | |
"color": "b60205" | |
}, | |
{ | |
"name": "Priority: High", | |
"description": null, | |
"color": "d93f0b" |
const memoizeFactory = hashFn => fn => { | |
const memoize = fn => { | |
const cache = {}; | |
return (...args) => { | |
const key = hashFn(args); | |
if (key in cache) { | |
return cache[key]; | |
} |
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
You have to do 2 things in order to allow your container to access your host's postgresql database
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf
A quick set of notes looking into Ubuntu mirror locations for South Africa from my home fiber (Vumatel). The examples should apply in general.
There are two phases
When testing performance of package list info downloads via upt-get update
, clear previous package info downloaded. If this isn't done, cached package info could skew results.
// ABC - a generic, native JS (A)scii(B)inary(C)onverter. | |
// (c) 2013 Stephan Schmitz <[email protected]> | |
// License: MIT, http://eyecatchup.mit-license.org | |
// URL: https://gist.github.com/eyecatchup/6742657 | |
var ABC = { | |
toAscii: function(bin) { | |
return bin.replace(/\s*[01]{8}\s*/g, function(bin) { | |
return String.fromCharCode(parseInt(bin, 2)) | |
}) | |
}, |