Compare commits

..

No commits in common. "6784b968bae2ba42b2612497b42008d690cca8ec" and "42f7cad47c5ca862b77bca572727a08b5ac666a2" have entirely different histories.

5 changed files with 4 additions and 139 deletions

View file

@ -29,11 +29,11 @@ dist/bin:
mkdir -pv $@
dist/bin/%.bash: %.bash
ln -sf ../lib/bash-util/$*.bash $@
ln -s ../lib/bash-util/$*.bash $@
dist/bin/%: scripts/% dist/bin
sed 's/^\(.\s\+\)\("\)*.\+\/util\//\1\2$(shell \
echo -n $(PREFIX) | sed 's/\([$\/]\)/\\\1/g')\/lib\/bash-util\//' < $< > $@
sed 's/\([$\/]\)/\\\1/g' <<<$(PREFIX))\/lib\/bash-util\//' < $< > $@
chmod 755 $@
dist/lib/bash-util:
@ -44,12 +44,12 @@ dist/lib/bash-util/%.bash: %.bash
chmod 644 $@
$(PREFIX)/bin/util:
ln -sf $(PREFIX)/lib/bash-util $(PREFIX)/bin/util
ln -s $(PREFIX)/lib/bash-util $(PREFIX)/bin/util
install: dist
cd dist && \
for each in *; \
do cp -rv "$$each"/* "$(PREFIX)/$$each/"; \
do cp -rv "$$each" "$(PREFIX)/$$each"; \
done
clean:

View file

@ -6,4 +6,3 @@ dedcat() { (>&2 cat <<<"$@"); exit 1; }
xcat() { (>&2 cat "$@"); exit 0; }
excat() { (>&2 cat <<<"$@"); exit 0; }
die() { errcho $@; exit 1; }
mktimestamp() { date '+%Y-%m-%d_%s'; }

View file

@ -1,34 +0,0 @@
#!/usr/bin/env bash
: '
* Record calls with Julia for future annotation 😻
* (just the audio on my end)
'
. "$(dirname $0)/util/logging.bash"
read -d '' usage <<EOUSAGE
Usage: $0 [-h]
OPTIONS
-h Display this help.
EOUSAGE
while getopts 'h' opt; do
case "${opt}" in
h)
excat "$usage"
;;
*)
dedcat "$usage"
;;
esac
done
shift $((OPTIND-1))
rec_prefix="$HOME/librecode/Julia Calls 😻/mine"
mkdir -p "$rec_prefix"
timestamp=$(mktimestamp)
ffmpeg -f pulse -ac 2 -i default "$rec_prefix/$timestamp.wav"

View file

@ -1,54 +0,0 @@
#!/usr/bin/env bash
: '
* Record sessions with Asciinema for the Librecode project!
'
. "$(dirname $0)/util/logging.bash"
read -d '' usage <<EOUSAGE
Usage: $0 [-h|-i]
OPTIONS
-h Display this help.
-i Record stdin. (BE CAREFUL WITH SECRETS!)
EOUSAGE
SPOOPY_STDIN=''
while getopts 'hi' opt; do
case "${opt}" in
h)
excat "$usage"
;;
i)
SPOOPY_STDIN='--stdin'
;;
*)
dedcat "$usage"
;;
esac
done
shift $((OPTIND-1))
. /etc/os-release
timestamp=$(mktimestamp)
case "${ID}" in
arch)
SUB_ID="${BUILD_ID}"
;;
debian)
SUB_ID="${VERSION_CODENAME}"
;;
*)
SUB_ID="unknown"
;;
esac
rec_prefix="$HOME/librecode/sessions/mine/$ID/$SUB_ID"
mkdir -p "$rec_prefix"
asciinema rec $SPOOPY_STDIN "$rec_prefix/$timestamp"

View file

@ -1,46 +0,0 @@
#!/usr/bin/env bash
: '
* Generate my resume using pandoc!
'
. "$(dirname $0)/util/logging.bash"
FONT='monofur for Powerline'
EXTENSION='.pdf'
read -d '' usage <<EOUSAGE
Usage: $0 [-h][-f FONT][-t] RESUME_FILE
OPTIONS
-f FONT Specify font by name.
-h Display this help.
-t Compile intermediate TeX instead of PDF.
EOUSAGE
while getopts 'f:ht' opt; do
case "${opt}" in
f)
FONT=$OPTARG
;;
h)
excat "$usage"
;;
t)
EXTENSION='.tex'
;;
*)
dedcat "$usage"
;;
esac
done
shift $((OPTIND-1))
[ -z "$1" ] && dedcat "$usage"
pandoc $1 \
-o $(sed 's/\(.md\)$//' <<<$1)"$EXTENSION" \
--pdf-engine=xelatex \
-V mainfont="$FONT" \
-V fontsize=9pt \
-V geometry:margin=0.75in