Skip to content

Instantly share code, notes, and snippets.

View dayvonjersen's full-sized avatar

dayvonjersen dayvonjersen

View GitHub Profile
@postpostscript
postpostscript / replify
Last active November 7, 2024 02:47
replify - Create a REPL for any command
#!/bin/sh
command="${*}"
printf "Initialized REPL for `%s`\n" "$command"
printf "%s> " "$command"
read -r input
while [ "$input" != "" ];
do
eval "$command $input"
printf "%s> " "$command"
@Nilpo
Nilpo / BIND for the Small LAN.md
Last active February 26, 2025 02:42
How to configure BIND 9 to act as a caching nameserver or as the nameserver for a local domain.
@sug0
sug0 / metaswitch.c
Created August 21, 2018 17:05
Enhanced switch meta control structure in C
#include <stdio.h>
#include <string.h>
#include "metaswitch.h"
int intcmp(const void *x, const void *y)
{
return *(int *)x - *(int *)y;
}