Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
| /* isc license probably */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #include <time.h> | |
| #include <unistd.h> | |
| #include <fcntl.h> | |
| #include <poll.h> |
| #!/bin/bash | |
| TMPFILE=$(mktemp) | |
| cc -Wall -Wextra -Wshadow -Os -lm -o ${TMPFILE} -x c <(tail -n+$(awk '/^exit$/ { print NR + 1 }' $0) $0) && chmod +x ${TMPFILE} && ${TMPFILE} "$@" | |
| rm ${TMPFILE} | |
| exit | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| int main(const int argc, const char ** const argv) { |