Commit Graph

12 Commits (master)

Author SHA1 Message Date
Michael Santos f58742d7e0 examples: cleanup: use coproc 2 years ago
Michael Santos 25d8272656 examples: format and run shellcheck
~~~
shfmt -i 2 -ci -w examples
shellcheck examples/*
~~~
4 years ago
Michael Santos 11ee1c92f4 image-upload: example of uploading images
An example bot for:
* creating an HTTP upload slot
* using curl to put the image file
* displaying the image inline
4 years ago
Michael Santos 846f87c6bd scripts: rename variables 6 years ago
Michael Santos 0984bc763b examples: script clean up 6 years ago
Michael Santos ee32002c2f ssh-over-xmpp: clean up example 8 years ago
Michael Santos 9410df9d78 bot.sh: clean up 8 years ago
Michael Santos 69f97cd872 Add "to" field to message
Distinguish which user received a message. Possibly useful if multiple
sessions are logged in or someone directly messages the bot.
9 years ago
Michael Santos 1a680daa48 example: read in larger chunks of data
Lengthen the poll delay to read in larger chunks of data. With a poll
value of 1 ms, there could be a large protocol message overhead: 1
character per XML stanza.
9 years ago
Michael Santos 5b7c7a1b64 example: tunnel SSH over XMPP
Server (system with access to the SSH and XMPP server):

 # ssh-over-xmpp server <conference> <IP address> <port>
 ssh-over-xmpp server sshxmpp 1.2.3.4 22

Client (system with access to the XMPP server):

 ssh -o ProxyCommand="ssh-over-xmpp client sshxmpp" 127.0.0.1
9 years ago
Michael Santos c4499fa4df example: clean up the bot script 9 years ago
Michael Santos 3d79e9fda8 Forward stdin over XMPP 9 years ago