shithub: rc

Download patch

ref: 684a52878dce130755d64408973fc0f66e379e19
parent: 4ee0ccfd8f68e7d86a339f9c57a606b02d14ab3e
author: sl <sl@x1yg3>
date: Sat Jul 5 23:24:22 EDT 2025

add vr

--- a/INDEX
+++ b/INDEX
@@ -34,5 +34,6 @@
 w - print weather report from api.weather.gov
 weather - print weather report from wttr.in (by Fulton Browne)
 wircrc - rio irc client (by cinap_lenrek)
+vr - post to http://vr.stanleylieber.com
 vtb - run vt -b with proper size fonts
 zombie - launch uxn/zombie.rom
--- /dev/null
+++ b/vr
@@ -1,0 +1,11 @@
+#!/bin/rc
+# Post to http://vr.stanleylieber.com
+# 2015-09-29T19:26:51-0400
+if(~ $#* 0)
+	file=/fd/0
+if not
+	file=$1
+hpost -u http://vr.stanleylieber.com -p index.rc submit:submit form_input@$file |
+	grep -e '^<img src' |
+	sed 's/^.*http/http/' |
+	sed 's/\.png.*$/\.png/'
--