brew install dnsmasq
I will run my dnsmasq nameserver locally under 127.0.0.1:53 and will resolve a wildcard domain *.ml-dev.test
to an local IP. Look for the line listen-address
and address
""" | |
Mortgage Calculator for fun | |
https://en.wikipedia.org/wiki/Mortgage_calculator | |
What I want to know: | |
---- What's interest that I have to pay at payment N ? | |
---- What's principal that I have to pay at payment N ? |
I have a fast producer (client) and slow subscriber (server) due to slow Internet connection. How to decouple the connection such that server won't affect client performance?
In order to avoid drag down client IO, e.g. waiting for ACK from server, there are a few solutions:
tail -n +11 /etc/passwd| sort -t$':' -k3 -n | awk -F":" \
'
BEGIN {
printf "GID | Name | User_dir | Bash_Access | Description \n"
printf "--- | ----------- | ----------------- | ------------------ | -----------------\n"
}
{
printf "%s | %s | %s | %s | %s\n",$3, $1, $6, $7, $5
bqkrtxgkmriwsiwcngtivpx.info | |
jdtmfupdyueqeldvhsjzdvzob.net | |
guhmpoxzivhba.com | |
nqqxqhuacaqhzurde.org | |
lgqsqgpqzijwid.info | |
ykolyecdcyk.biz | |
ztvflnxqzpxvpfobv.biz | |
zqrmkpivrbxccawozqwqpfzh.org | |
iqyqwhntrxfeq.org | |
ftadkbomxlnsib.info |
#!/bin/bash | |
# Enable fractional scaling on Ubuntu 18.04 | |
# | |
# Problem: | |
# -------- | |
# - Ubuntu 18.04 runs on Gnome 3.28, whichs does not support fractional scaling (120%, 130%). | |
# - As a result, the text and icon on my 4K 27" monitor are very small. | |
# | |
# Usage: | |
# ------- |
// Async should be first priority over callbacks and promises | |
// | |
// High level idea: | |
// - Avoid .then .catch in promise | |
// - Syntatic sugar to make async programming similar to sequential code | |
const axios = require('axios'); | |
DEFAULT_URL = "https://jsonplaceholder.typicode.com" | |
async function getUser(id) { | |
let resp = await axios.get(`${DEFAULT_URL}/users/${id}`) |
Reference: https://spark.apache.org/docs/latest/
PATH
and JAVA_HOME