Skip to content

Instantly share code, notes, and snippets.

View pejrak's full-sized avatar
💢
We are uploading.

Peter Berezny pejrak

💢
We are uploading.
View GitHub Profile

Bitcoin Full Node on AWS Free Tier

Provisioning

  • Launch one T2 micro instance, using Ubuntu 14.04 LTS AMI.
  • Open SSH and Bitcoin Protocol TCP ports: 22, 8333.
  • Attach 40GB EBS (General-Purpose SSD) volume for blockchain storage to /dev/sdf.

The pricing should be ~3$ for the first year (assuming 30GB upload per month). See here for more details.

@pejrak
pejrak / mg.js
Created June 29, 2020 11:18
mortgage calculation script
const loan = 100000
const interestRate = 2.9 / 100
const monthlyInterestRate = (interestRate / 12)
const numOfPayments = 360
const interestRateExponent = Math.pow((monthlyInterestRate + 1), numOfPayments)
/**
* M = P [ i(1 + i)^n ] / [ (1 + i)^n – 1]
* */
const payment = loan * (
0x9D01D45Fe3FAe2e077E24bF341b08A4676e88455