From 22ae38f206fa35e8745609ef01cfb0a8619159a6 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Tue, 17 Oct 2023 15:58:10 -0400 Subject: [PATCH] Add autoremote helper usage: autoremote "message goes here" sends the message to autoremote --- zshrc.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zshrc.org b/zshrc.org index b7feffb..10b930a 100644 --- a/zshrc.org +++ b/zshrc.org @@ -146,6 +146,13 @@ These are various helpers to drive my current Android phone when connected to th } #+end_src +This is an autoremote helper + +#+begin_src sh + autoremote () { + curl "https://autoremotejoaomgcd.appspot.com/sendmessage?key=cVRJiHQtxGk:APA91bGQz3O3Z5RUkgvq6hXzlIiLvyC8ZVW5XlgIBhLO5Li3QwZausSkoaK48D3jyhFcJAi3pqB-T4fI45rICR0Rld9ikeTHMZp2m6w05FxaSvQcdofJ3blyxJGLT9B-6oGruLenXdrM&message=$(echo $1 | sed -e 's/ /\%20/g')&password=$(pass autoremote)" + } +#+end_src **** TODO The last bit is really pi material *** Misc helpers :pi:daily:android: