Skip to content

Instantly share code, notes, and snippets.

@misebox
misebox / envst-nginx-conf
Last active July 9, 2021 17:46
Script for using environment variables in /etc/nginx/**/*.conf.template
#!/bin/sh
# Create /etc/nginx/**/*.conf from replacing the strings like
# ${NGINX_xxxxx} contained in /etc/nginx/**/*.conf.template
# with the value of each environment variable.
envs="$(env | egrep '^NGINX_' | sed -r 's/^(.+)=.*/\$\$\1/g')"
for template in `find /etc/nginx -name '*.conf.template'`
do
conf=`basename -s .template $template`
@ayu-mushi
ayu-mushi / takt-basic-syntax-quick-master.md
Last active March 7, 2021 16:00
Takt基礎文法最速マスター

この文書は書きかけです

Takt基礎文法最速マスター

はじめに

Taktはテキストで音楽を記述するプログラミング言語で、Taktで書かれたコードをTaktインタプリタで実行するとMIDIを生成します。 Emacsプラグインが付属していたり、midiからソースコードを逆生成できたりします。

PMMLという言語の後継に当たり、似た構文です。