Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Berezny pejrak

View GitHub Profile
@pejrak
pejrak / mg.js
Created Jun 29, 2020
mortgage calculation script
View mg.js
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 * (
View fullnode.md

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.

You can’t perform that action at this time.