This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# | |
# Local startup customisations. Everything logs to syslog | |
# | |
( | |
exec 1> >(logger -s -t rc-local) 2>&1 | |
# Remove the eth0 default route | |
/sbin/route del default eth0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Based on http://tinyhack.com/2014/03/12/implementing-a-web-server-in-a-single-printf-call/ | |
*/ | |
#include<stdio.h> | |
#include<string.h> | |
#include<stdlib.h> | |
#include<unistd.h> | |
#include<sys/types.h> | |
#include<sys/stat.h> |