Add preview of 1984-2019

The 2020 winners are hinted it, but the source code is not there,
nor are the hints. Someone could look into the HTML and
see what was commented out, but that is not a problem because
WHO won is known and the name of their AWARD is known already.
Moreover a number of the winners have talked about what their
entirs do, so the commented out spoiler text is not a bit problem.

One will find HTML commented out with:

    <!-- XXX remove when 2020 is ready
    2020 links here
    XXX remove when 2020 is ready -->

The "XXX remove when 2020 is ready" string is found at the
start and end comment blocks.  Again, soneone could read
what was commented out, but that is OK since most of that
information is known or can be known.  The following files
have such HTML comment blocks in them.

    ./winners.html
    ./years-spoiler.html
    ./years.html

In addition, ./all/summary.txt was modified to not
include the 2020 entries for the momemt.

The 2020 winner code AND write-ups are NOT part of this set.

p.s. The all/all.tar.bz2 does not contain the 2020 source code (yet?).
This commit is contained in:
Landon Curt Noll committed 2020-12-30 16:57:03 -08:00
1 parent 28efc67f5d
commit c0663537cb
1683 files changed
+220064

No files matched your search

+77
View File
@@ -0,0 +1,77 @@
#!/bin/sh
PROGNAME="$0"
LINES="$1"
COLUMNS="$2"
if [ "$2" = "" ]
then
echo "Usage: $0 <LINES> <COLUMNS>"
exit 1
fi
OS=$(uname)
MAGIC_VALUE_LINUX=$(((COLUMNS*28+12)*LINES+36))
linux_min_vals() {
cat << EOF
net.core.wmem_max $MAGIC_VALUE_LINUX
net.core.wmem_default $MAGIC_VALUE_LINUX
EOF
}
MAGIC_VALUE_FREEBSD=16777216
freebsd_min_vals() {
cat << EOF
net.local.dgram.recvspace $MAGIC_VALUE_FREEBSD
net.local.dgram.maxdgram $MAGIC_VALUE_FREEBSD
net.local.seqpacket.recvspace $MAGIC_VALUE_FREEBSD
net.local.seqpacket.maxseqpacket $MAGIC_VALUE_FREEBSD
kern.ipc.maxsockbuf $((4*MAGIC_VALUE_FREEBSD))
EOF
}
list_fixup_commands() {
while read param min_value
do
cur_val=$(sysctl -n $param)
if [ "$cur_val" -lt "$min_value" ]
then
echo "$PROGNAME -- $ sudo sysctl $param=$min_value"
fi
done
}
echo
echo "$PROGNAME -- Detected OS: $OS"
case "$OS" in
"Linux")
fixup_commands="$(linux_min_vals | list_fixup_commands)"
;;
"FreeBSD")
fixup_commands="$(freebsd_min_vals | list_fixup_commands)"
;;
*)
echo "$PROGNAME -- Sorry, the program has not been designed or tested for your OS!"
exit 1 # failed, unknown OS
esac
if [ -z "$fixup_commands" ]
then
echo "$PROGNAME -- Checking IPC parameters... OK!"
echo
exit # script was successful
else
cat << EOF
$PROGNAME -- Checking IPC parameters... FAILED!
$PROGNAME -- Program compiled as ${COLUMNS}x${LINES} needs higher default IPC parameters.
$PROGNAME -- Please run:
$fixup_commands
EOF
exit 2 # failed, OS needs higher IPC parameter values.
fi