From fa0436bd9f69083bdcb1fa7596dbe65f325124b2 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 15 Aug 2018 17:29:30 -0400 Subject: Move nasd to shell script --- home/.local/bin/nasd | 9 +++++++++ home/.zshrc | 7 ------- 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100755 home/.local/bin/nasd (limited to 'home') diff --git a/home/.local/bin/nasd b/home/.local/bin/nasd new file mode 100755 index 00000000..203fdd2d --- /dev/null +++ b/home/.local/bin/nasd @@ -0,0 +1,9 @@ +#!/bin/sh +set -e -u + +dir=$(mktemp -d) +echo 'bits 64' > $dir/input +cat >> $dir/input +nasm -o $dir/output $dir/input || true +ndisasm -b 64 $dir/output || true +rm -r $dir diff --git a/home/.zshrc b/home/.zshrc index c7f58fce..3d6ec00c 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -36,13 +36,6 @@ alias gp='git push' gu='git pull' gf='git fetch' alias gr='git rebase' gra='gr --abort' grc='gr --continue' grs='gr --skip' alias rand='openssl rand -base64 33' -nasd() { - local tmp=$(mktemp) - cat > $tmp - nasm -p =(echo 'bits 64') -o >(ndisasm -b 64 /dev/stdin) $tmp - rm $tmp -} - setopt prompt_subst _prompt_git() { local dotgit=.git head -- cgit 1.4.1 ss='active' href='/src/log/www/photo.causal.agency/2024-07-14/000009180023.txt?showmsg=1&follow=1'>log tree commit diff
path: root/www/photo.causal.agency/2024-07-14/000009180023.txt (unfollow)
Commit message (Collapse)Author
2024-09-08Render trips hopefully more efficientlyJune McEnroe
2024-09-08Allow removing bodies and lensesJune McEnroe
2024-09-08Limit body width so it looks less silly on desktopJune McEnroe
2024-09-07Handle no film being loadedJune McEnroe
2024-09-07Fancy up the text a littleJune McEnroe