Skip to content

Instantly share code, notes, and snippets.

View Anillc's full-sized avatar
πŸ’­
wwww

Anillc

πŸ’­
wwww
View GitHub Profile
Nix 8 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘ 67.4%
YAML 4 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 32.6%
#!/usr/bin/env bash
echo dump | socat stdio tcp6:[::1]:33123 | awk '
BEGIN {
i = 0
ORS = ""
}
{
if ($2 == "route" && $9 == "yes") {
if (i == 0) {
print "if "