Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Feb 7, 2019
1 parent 4b6ed51 commit c415af2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ tmp
# Files to ignore #
###################
hello.txt
data.txt
7 changes: 6 additions & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ <h1><img src="https://user-images.githubusercontent.com/168240/39515825-119445f0
<li>Quickly share data and files between devices.</li>
<li>URL path names map to channels.</li>
<li>Anyone in the same channel can view what's streamed.</li>
<li>CLI <code>$ tail -F file.log | nc streamhut.io 1337</code></li>
<li>CLI examples:</li>
<li>Tail: <code>$ tail -F file.log | nc streamhut.io 1337</code></li>
<li>Tee: <code>$ (echo -n; sleep 5; htop) | tee >(nc streamhut.io 1337)</code></li>
<li>Pipe shell: <code>$ exec > >(nc streamhut.io 1337) 2>&1</code></li>
<li>Echo: <code>$ echo 'foo' | streamhut post -h streamhut.io -c mychannel</code></li>
<li>File: <code>$ streamhut post -h streamhut.io -c mychannel -f data.txt</code></li>
<li><a href="https://github.com/miguelmota/streamhut" target="_blank" rel="noopener noreferrer">Developer documentation</a> | <a href="https://github.com/miguelmota/streamhut/issues/new" target="_blank" rel="noopener noreferrer">Feedback</a></i>
</ul>
</div>
Expand Down

0 comments on commit c415af2

Please sign in to comment.