Skip to content

Instantly share code, notes, and snippets.

View novelistparty's full-sized avatar

novelistparty novelistparty

View GitHub Profile
@rlcamp
rlcamp / tunnel_wireguard_over_serial.c
Last active May 19, 2022 16:18
allow Wireguard to replace ppp
/* 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>
@rlcamp
rlcamp / inline_c.sh
Last active October 11, 2022 22:54
for when you really just need to run a bit of C logic from a bash script
#!/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) {
@merlinmann
merlinmann / wisdom.md
Last active November 14, 2025 03:16
Merlin's Wisdom Project (Draft)

Merlin's Wisdom Project

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.