Monthly Shaarli

All links of one month in a single page.

January, 2018

Is PostgreSQL good enough?
thumbnail
How To Traffic V2 - Cities: Skylines
thumbnail
What is Machine Learning?
Lessons Learned: Avoiding Primitives in Elm

Switching from primitive types to product types can improve confidence in correctness and compiler errors, but not without a cost.

OpenSMTPD, Dovecot and SpamAssassin

The guide is a bit too simplistic but covers some topics like spf and client configuration

technoquarter: OpenBSD Mail Server - Intro

Blog series to install opensmtp and dovecot with filters for spam, antivirus, dkim plus roundcube webmail

A couple of details are missing like reverse DNS (test with mail-tester):

  • set the droplet name as the domain you are using for the emails (eg mail.example.com) if using digitalocean
  • set the same domain in /etc/mailname
Elm Semantics for JavaScript Developers
Improving OpenSSL Performance | Intel® Software
The Patient Vimmer
JSON File logging driver | Docker Documentation

logrotate for docker logs

Generating Passwords Using crypt(3) | UNIX Administratosphere
thumbnail

Good example for generating password using different wrappers or bindings of the crypt() function
I use this to manually change password in /etc/shadow for users created only as opensmtpd users which has no shell access (/usr/sbin/nologin)

The quickest way, using python3 is:
python -c 'import crypt; print(crypt.crypt("password",crypt.METHOD_SHA512))'

Optimizing web servers for high throughput and low latency | Dropbox Tech Blog
thumbnail
Timber (Lumber) sizes metric compared against dimensional
fast.ai · Making neural nets uncool again
Two ways of looking at map functions

Map functions are hard to "get" in the abstract. This looks at two mental models that helped me understand them better.

OpenSMTPD: Building a Mail Server (Web Archive)

Concise example to setup an opensmtpd server with virtual domains and virtual users
Had some problems with the passwd table which where solved by following this example:
http://misc.opensmtpd.narkive.com/OpKS0DRj/table-passwd-invialid-without-the-shell

Newsletters spam test by mail-tester.com
thumbnail