From 1da6f2d6ce88d302fe4bfe757b3ca91256aede8c Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Sat, 8 Aug 2020 17:03:29 +0200 Subject: [PATCH] initial commit --- .gitignore | 1 + makefile | 12 ++ src/.files | 21 ++++ src/_footer.html | 4 + src/_header.html | 2 + src/commonsizes.md | 291 +++++++++++++++++++++++++++++++++++++++++++++ src/favicon.png | Bin 0 -> 15086 bytes src/index.md | 3 + src/makefile | 12 ++ src/sitemap.xml | 55 +++++++++ src/styles.css | 63 ++++++++++ 11 files changed, 464 insertions(+) create mode 100644 .gitignore create mode 100644 makefile create mode 100644 src/.files create mode 100644 src/_footer.html create mode 100644 src/_header.html create mode 100644 src/commonsizes.md create mode 100644 src/favicon.png create mode 100644 src/index.md create mode 100644 src/makefile create mode 100644 src/sitemap.xml create mode 100644 src/styles.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ad07d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dst/** diff --git a/makefile b/makefile new file mode 100644 index 0000000..5714ac5 --- /dev/null +++ b/makefile @@ -0,0 +1,12 @@ +SRCDIR = src +DESTDIR = dst +SITENAME = "Mauri's blog" +URL = "https://alemauri.eu" + +all: + mkdir -p ${DESTDIR} + rm -f ${DESTDIR}/.files + ssg ${SRCDIR} ${DESTDIR} ${SITENAME} ${URL} + +clean: + rm -rf ${DESTDIR} diff --git a/src/.files b/src/.files new file mode 100644 index 0000000..8a5f9b7 --- /dev/null +++ b/src/.files @@ -0,0 +1,21 @@ +./src/sitemap.xml +./src/src/sitemap.xml +./src/src/src/sitemap.xml +./src/src/src/src/sitemap.xml +./src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/src/src/src/src/makefile +./src/src/src/src/src/src/src/src/src/src/styles.css +./src/src/src/src/src/src/src/src/src/src/dst/index.html +./src/src/src/src/src/src/src/src/src/src/dst/favicon.png +./src/src/src/src/src/src/src/src/src/src/dst/styles.css +./src/src/src/src/src/src/src/src/src/src/dst/commonsizes.html +./src/src/src/src/src/src/src/src/src/src/dst/sitemap.xml +./src/src/src/src/src/src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/src/src/src/src/src/index.html +./src/src/src/src/src/src/src/src/src/src/src/favicon.png +./src/src/src/src/src/src/src/src/src/src/src/styles.css +./src/src/src/src/src/src/src/src/src/src/src/commonsizes.html diff --git a/src/_footer.html b/src/_footer.html new file mode 100644 index 0000000..56b1c9e --- /dev/null +++ b/src/_footer.html @@ -0,0 +1,4 @@ + diff --git a/src/_header.html b/src/_header.html new file mode 100644 index 0000000..952d587 --- /dev/null +++ b/src/_header.html @@ -0,0 +1,2 @@ +Mauri's blog + diff --git a/src/commonsizes.md b/src/commonsizes.md new file mode 100644 index 0000000..1ffcf62 --- /dev/null +++ b/src/commonsizes.md @@ -0,0 +1,291 @@ +# Size in loc of common software +Bloat is everywhere, in 2018 I started my journey on debloating my digital +life, so far I mostly use linux as my main OS (the mostly is due to uni +stuff I don't want and/or have time to deal with), I don't use a desktop environment, +got rid of systemd, pulseaudio and polkit just to name a few. I could go on +about how I debloated most of my computing life but that is not the goal +of this article, that is I recently started to wonder: how much bloat is really +there? + +In order to answer that question I rolled up my sleeves and with the mighty +power of post-its, git and [scc][1] I cloned the repositories of many +common programs in order to check their bloat suckless style, with +lines of code. Let's get to the data. + + + +## Init systems + +| Name | loc | +| ----------- | --------- | +| systemd | 722K | +| OpenRC | 21K | +| s6 | 20K | +| runit | 12K | +| sysVinit | 9K | + +## Logging daemons +Technically systemd includes its own logging daemon but here is omitted. + +| Name | loc | +| ----------- | --------- | +| rsyslog | 157K | +| socklog | 5.6K | +| metalog | 2.5K | + +## Network +Generic network management programs. + +| Name | loc | +| --------------- | --------- | +| wpa_supplicant | 555K | +| kea | 486K | +| NetworkManager | 429K | +| ModemManager | 194K | +| connman | 103K | +| (e)iwd | 86K | +| dhcpcd | 41K | + +## Music players + +| Name | loc | +| ----------- | --------- | +| mpd | 102K | +| cmus | 42K | +| moc(p) | 35K | +| ncmpcpp | 25K | +| herrie | 7.4K | + +## Text editors +Don't tell me you saw that one coming. + +| Name | loc | +| ----------- | --------- | +| vim | 931K | +| neovim | 771K | +| vis | 109K | +| kakoune | 31K | +| micro | 29K | +| nano | 17K | + +## Build systems + +| Name | loc | +| ----------- | --------- | +| cmake | 854K | +| tup | 271K | +| meson | 107K | +| GNU make | 34K | +| ninja | 20K | +| samurai | 3.7K | + +## Shells (POSIX or not) + +| Name | loc | +| ----------- | --------- | +| bash | 210K | +| fish | 165K | +| zsh | 119K | +| ksh93 | 72K | +| tcsh | 65K | +| mksh | 30K | +| ash | 21K | +| dash | 13K | + +## Boot loaders/managers + +| Name | loc | +| ----------- | --------- | +| CloverBoot | 1.8M | +| GRUB | 331K | +| syslinux | 254K | +| eEFInd | 75K | +| LILO | 36K | + +## Display servers +Dependencies are counted two levels "deep" excluding duplicates, from +the alpine linux x86_64 package repositories.\ +U: Not built, protocol code not generated +B: Code generated + +| Name | loc | dependencies | +| ------------------- | --------------- | ------------ | +| xorg-server | 422K | 44 | +| - | - | - | +| wayland + | | | +| wayland-protocols + | | | +| wlroots | U: 97K, B:268K | 27 | + +## SSH servers/clients + +| Name | loc | +| ----------- | --------- | +| dropbear | 144K | +| OpenSSH | 123K | +| TinySSH | 14K | + +## Terminal multiplexers + +| Name | loc | +| ----------- | --------- | +| tmux | 132K | +| GNU screen | 36K | +| dvtm | 4.0K | + +## Terminal emulators + +| Name | loc | +| ----------- | --------- | +| kitty | 114K | +| alacritty | 26K | +| wayst | 24K | +| havoc | 10K | +| wterm | 10K | +| st | 4.4K | + +## Kernels + +| Name | loc | +| ------------ | --------- | +| netbsd | 40M | +| linux | 21M | +| FreeBSD | 18M | +| OpenBSD | 17M | +| DragonflyBSD | 934K | + +## Permission managers + +| Name | loc | +| ----------- | --------- | +| sudo | 195K | +| polkit | 26K | +| OpenDoas | 2.9K | +| PAM | 61K | + +## Compilers + +| Name | loc | +| ----------- | --------- | +| gcc | 9.0M | +| llvm | 8.0M | +| zig | 2.1M | +| rust | 856K | +| tcc | 93K | + +## Torrent clients + +| Name | loc | +| ------------- | --------- | +| qBittorrent | 762K | +| transmission | 329K | +| deluge | 137K | +| rtorrent | 24K | + +## Web browsers +Does not include libraries, only the main repos. + +| Name | loc | +| ----------- | --------- | +| chromium | | +| Firefox | 27M | +| badwolf | 1.8K | + +## Window managers + +| Name | loc | +| ----------- | --------- | +| awesome | 83K | +| i3 | 58K | +| openbox | 42K | +| bspwm | 12K | +| 2bwm | 3.3K | +| dwm | 2.5K | + +## Wayland compositors + +| Name | loc | +| ----------- | --------- | +| weston | 117K | +| sway | 42K | +| wayfire | 27K | +| hikari | 15K | +| river | 5.9K | + +## Application launchers + +| Name | loc | +| ------------- | --------- | +| rofi | 84K | +| bemenu | 6.6K | +| wofi | 4.3K | +| nwg-launchers | 3.5K | +| dmenu | 1.3K | + +## Device managers +NOTE: mdev is only one source file, so loc count doesn't +include anything but that file. + +| Name | loc | +| ----------- | --------- | +| eudev | 28K | +| mdevd | 2.3K | +| smdev | 771 | +| mdev | 751 | + +## Initramfs generators + +| Name | loc | +| ----------- | --------- | +| dracut | 32K | +| tinyramfs | 1.0K | + +## Code counters + +| Name | loc | +| ----------- | --------- | +| scc | 19K | +| tokei | 11K | + +## Package managers + +| Name | loc | +| ----------- | --------- | +| apt | 100K | +| xbps | 43K | +| pacman | 37K | +| apk | 17K | +| kiss | 1.1K | + +## Webservers + +| Name | loc | +| ----------- | --------- | +| apache | 419K | +| nginx | 142K | +| lighttpd | 75K | + +## Syncronization and backup programs + +| Name | loc | +| ----------- | --------- | +| borg | 236K | +| syncthing | 153K | +| rsync | 56K | +| restic | 49K | +| casync | 33K | + +## Others +Stuff that doesn't fit any other category (for now) + +| Name | loc | +| ----------- | --------- | +| openssl | 894K | +| bluez | 395K | +| libressl | 384K | +| elogind | 145K | +| dbus | 126K | +| tint2 | 37K | +| lowdown | 19K | +| pass | 3.5K | + +[1]: https://github.com/boyter/scc diff --git a/src/favicon.png b/src/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..50532ddcd6418ff5b4fc5ca3bf23dc24f5f2e52a GIT binary patch literal 15086 zcmd5?2~?HU7XHgtzTR6UtMqBlatyP_C_OC>PWiy|@! zf|gopnVMGl0q!L;d)$O%fIy3vaSQZFN~6af{3*zDJh12Z}H>X zc!qb^x(urO&u=<1&2-ElIuKk$nUkrc?csHJcP-1Hx}SL0>kW@TwB;17>ra$5fM{EU zlNOB?8PfXEO|ZqaXb08(2er4&C>%4tSa1Ws%CLA?DH&8=$Wzll#RA>$ZkBV3mW?L! zlfEQ2SpUrb$)LWZ^J*Hu>OQW;%BWu=R(N~{dIxrGY6tcujcJ`%llWDK5A>*4=cBrx ziM`ypis$DH#+y;&yS} zRc`m>WYMkU9N?TXTl8HxY7u=C_ywKl@UdW)=O2zRAxm-CmakCnAcOiMuB+pxz6;;k z&?w7=JWrc@Njuwr86CUrgy26pbRC6`anqou_wPurv*2CGx+^eSWFd|P)HmR*Zv3i$ z_|7-?Y#_?!oU`sJ`gvfE>1g#O?P|JSo&kT?=|n+`%-=&Z%sXMP*yfJ+QtB-r$X(L@ z>+`x+Qkqq*f8_%#iGRyOP{_tZ&yGL$!%Jc7NMvH4KQ(M6JsCsvc$!IFl4+@8 zOT1^+-Eo044#Fn%XNvpdFRl)Fr?hokRrGe>nO|=?iSI|g|9w;^iiDn{9$xOnk9z#{ z1ft*!H+4-S>Y8YF2d0n|x*l{ATEtI-EO=I3KBPK=ABgWqeC9lVy}R|}b118OvPseH z-tpo`ybc+25kK2tJ8*&q8e~v?K!&RRsg9sC;6HcU`PHaL9p_TNZixgRamM~V(}N!| zkvyIzbNYNZ)ANqsW6blw89wd&4XTT(#;x=fzxY1O0PKiM#+27Nl_)H}gr?k|Mq1B^ z*KSMtoE7}AjfFpt`x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r9%zwSdd9$zSUikw5KTu!#B54r;L)R3u7-M{Cc;_dYE5IkZ-3Hg` z8NB&n`@;sX#qiid6Yshu(F*%~oy)bL3%-wI%=4kUozNZTgEw>m-qLss#@cD{J^t6` zJDuNiOdhRi!;3@qU&yb#@g5ChF-PU+>)W{vhmFu+zr==b{j4(Vja{-AKBVt47ISpI zy;t9gZIF_b!Obv!MXs}x!ed#H@%_r&dg$*n_u literal 0 HcmV?d00001 diff --git a/src/index.md b/src/index.md new file mode 100644 index 0000000..873673a --- /dev/null +++ b/src/index.md @@ -0,0 +1,3 @@ +# Mauri's blog lol + +[Size in loc of common software](commonsizes.html) diff --git a/src/makefile b/src/makefile new file mode 100644 index 0000000..5714ac5 --- /dev/null +++ b/src/makefile @@ -0,0 +1,12 @@ +SRCDIR = src +DESTDIR = dst +SITENAME = "Mauri's blog" +URL = "https://alemauri.eu" + +all: + mkdir -p ${DESTDIR} + rm -f ${DESTDIR}/.files + ssg ${SRCDIR} ${DESTDIR} ${SITENAME} ${URL} + +clean: + rm -rf ${DESTDIR} diff --git a/src/sitemap.xml b/src/sitemap.xml new file mode 100644 index 0000000..1f4fcb1 --- /dev/null +++ b/src/sitemap.xml @@ -0,0 +1,55 @@ + + +//www/dst/2020-08-081.0 +//www/dst/commonsizes.html2020-08-081.0 +//www/src/2020-08-081.0 +//www/src/commonsizes.html2020-08-081.0 +//www/src/dst/2020-08-081.0 +//www/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/2020-08-081.0 +//www/src/src/commonsizes.html2020-08-081.0 +//www/src/src/dst/2020-08-081.0 +//www/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/2020-08-081.0 +//www/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/dst/2020-08-081.0 +//www/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 + diff --git a/src/styles.css b/src/styles.css new file mode 100644 index 0000000..18588fd --- /dev/null +++ b/src/styles.css @@ -0,0 +1,63 @@ +/* Global options */ +* { + text-align: center; + font-family: monospace; +} + +/* Table styles */ +table, th, td { + margin-left: auto; + margin-right: auto; + text-align: left; + border-collapse: collapse; + width: 70%; +} + +th, td { + padding-top: 10px; + padding-bottom: 10px; + padding-left: 20px; + padding-right: 20px; +} + +th { + border-bottom: 1px solid black; +} + +tr:nth-child(odd) { + background-color: #dcdcdc; +} + +/* Paragraphs and text */ +p { + font-size: 1.25em; +} + +body { + width: 80%; + margin: 0 auto; + background-color: #f5fffa; + color: black; + padding: 10px; +} + +html { + background-color: #696969; + scroll-behavior: smooth; +} + +/* Headings and footer */ +h1, h2, h3, h4, h5, h6 { + text-decoration: underline; +} + +footer { + background-color: #dcdcdc; + border-radius: 10px; +} + +footer p { + padding: 10px; + margin: 0px; + font-size: 1em; +}