If I want more IRL, I must go AFK - blakewatson.com
www.blakewatson.com/journal/if-i-want-more-irl-i-must-go-afkI use a computer for hours and hours a day, partly because I love it, and partly to compensate for my disability. But how much is too much?
The KDL Document Language
kdl.devkdl is a document language, mostly based on SDLang, with xml-like semantics that looks like you're invoking a bunch of CLI commands!
Semantics similar to XML!
package {
name my-pkg
version "1.2.3"
dependencies {
// Nodes can have standalone values as well as
// key/value pairs.
lodash "^3.2.1" optional=#true alias=underscore
}
scripts {
// "Raw" and dedented multi-line strings are supported.
message """
hello
world
"""
build #"""
echo "foo"
node -c "console.log('hello, world!');"
echo "foo" > some-file.txt
"""#
}
// `\` breaks up a single node across multiple lines.
the-matrix 1 2 3 \
4 5 6 \
7 8 9
// "Slashdash" comments operate at the node level,
// with just `/-`.
/-this-is-commented {
this entire node {
is gone
}
}
}
Also reminds of QML, nginx config and of course Mycomarkup.
Making HTTP requests from a container that has no curl, using bash /dev/tcp
mareksuppa.com/til/bash-dev-tcp-http-without-curlMinimal container images often ship without curl, wget, or any HTTP client at all. Bash can open a TCP socket through /dev/tcp, which is enough to write a tiny HTTP/1.1 request by hand for quick checks.