Post 1721865 by romanzolotarev@bsd.network
(DIR) More posts by romanzolotarev@bsd.network
(DIR) Post #1721864 by romanzolotarev@bsd.network
2018-12-04T20:19:07Z
1 likes, 0 repeats
Don't miss my new #POSIX shell script: paywalled pages.Subscribe:https://www.romanzolotarev.com/n/[x] login via email (no passwords, multiple sessions)[x] logout[ ] kill sessions[x] re-subscribe (when expired)[x] subscription plans[ ] pay via PayPall[x] show paywalled content
(DIR) Post #1721865 by romanzolotarev@bsd.network
2018-12-04T20:19:41Z
0 likes, 1 repeats
#POSIX shell316 LoC- No #JavaScript- Four cookies- Flat text files as db
(DIR) Post #1735182 by Keltounet@mastodon.social
2018-12-04T20:53:58Z
0 likes, 0 repeats
@romanzolotarev please stop torturing sh for this :)
(DIR) Post #1735183 by romanzolotarev@bsd.network
2018-12-05T07:37:01Z
1 likes, 0 repeats
@KeltounetI understand I'm pushing sh to hard, that's the best way to learn it. :)The goal of this experiment is to show how basic web tech and Unix programs work: HTTP GET/POST, cookies, HTML forms, text file manipulations, SMTP, cron, TLS, etcYes, sh is slow for production, but in some cases it's fast enough.Zero dependencies.Stable API.Simplicity.If I'd need performance I would rewrite it in C or something like that.