diff options
author | Akshay <[email protected]> | 2020-04-16 09:10:50 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-04-16 09:10:50 +0100 |
commit | 2a778912251874f9b808f82e61244efcd12210aa (patch) | |
tree | 72cd692749c36f068fe22a32ede51a88a65bc759 /docs/posts/termux_tandem/index.html | |
parent | d71a288d944959057064d64ce03cad759a42ba06 (diff) |
rerender with pandoc
Diffstat (limited to 'docs/posts/termux_tandem/index.html')
-rw-r--r-- | docs/posts/termux_tandem/index.html | 72 |
1 files changed, 33 insertions, 39 deletions
diff --git a/docs/posts/termux_tandem/index.html b/docs/posts/termux_tandem/index.html index 972f0e2..a2aba29 100644 --- a/docs/posts/termux_tandem/index.html +++ b/docs/posts/termux_tandem/index.html | |||
@@ -37,52 +37,46 @@ | |||
37 | Termux Tandem | 37 | Termux Tandem |
38 | </h1> | 38 | </h1> |
39 | <div class="post-text"> | 39 | <div class="post-text"> |
40 | <p>I learnt about <code>termux</code> from a friend on IRC recently. | 40 | <!DOCTYPE html> |
41 | It looked super gimmicky to me at first, but it eventually | 41 | <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> |
42 | proved to be useful. Here's what I use it for:</p> | 42 | <head> |
43 | 43 | <meta charset="utf-8" /> | |
44 | <meta name="generator" content="pandoc" /> | ||
45 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> | ||
46 | <title>termux_tandem</title> | ||
47 | <style> | ||
48 | code{white-space: pre-wrap;} | ||
49 | span.smallcaps{font-variant: small-caps;} | ||
50 | span.underline{text-decoration: underline;} | ||
51 | div.column{display: inline-block; vertical-align: top; width: 50%;} | ||
52 | div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} | ||
53 | ul.task-list{list-style: none;} | ||
54 | </style> | ||
55 | <!--[if lt IE 9]> | ||
56 | <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> | ||
57 | <![endif]--> | ||
58 | </head> | ||
59 | <body> | ||
60 | <p>I learnt about <code>termux</code> from a friend on IRC recently. It looked super gimmicky to me at first, but it eventually proved to be useful. Here’s what I use it for:</p> | ||
44 | <h3 id="rsync">rsync</h3> | 61 | <h3 id="rsync">rsync</h3> |
45 | 62 | <p>Ever since I degoogled my android device, syncing files between my phone and my PC has always been a pain. I’m looking at you MTP. But, with <code>termux</code> and <code>sshd</code> all set up, it’s as simple as:</p> | |
46 | <p>Ever since I degoogled my android device, syncing files | ||
47 | between my phone and my PC has always been a pain. I’m | ||
48 | looking at you MTP. But, with <code>termux</code> and <code>sshd</code> all set up, | ||
49 | it's as simple as:</p> | ||
50 | |||
51 | <pre><code>$ arp | 63 | <pre><code>$ arp |
52 | Address HWtype HWad ... | 64 | Address HWtype HWad ... |
53 | 192.168.43.187 ether d0:0 ... | 65 | 192.168.43.187 ether d0:0 ... |
54 | 66 | ||
55 | $ rsync -avz 192.168.43.187:~/frogs ~/pics/frogs | 67 | $ rsync -avz 192.168.43.187:~/frogs ~/pics/frogs</code></pre> |
56 | </code></pre> | 68 | <h3 id="ssh-tmux">ssh & tmux</h3> |
57 | 69 | <p>My phone doubles as a secondary view into my main machine with <code>ssh</code> and <code>tmux</code>. When I am away from my PC (read: sitting across the room), I check build status and IRC messages by <code>ssh</code>ing into a tmux session running the said build or weechat.</p> | |
58 | <h3 id="ssh%20&#38;%20tmux">ssh & tmux</h3> | 70 | <h3 id="file-uploads">file uploads</h3> |
59 | 71 | <p>Not being able to access my (ssh-only) file host was crippling. With a <code>bash</code> instance on my phone, I just copied over my ssh keys, and popped in a file upload script (a glorified <code>scp</code>). Now I just have to figure out a way to clean up these file names …</p> | |
60 | <p>My phone doubles as a secondary view into my main machine | 72 | <pre><code>~/storage/pictures/ $ ls |
61 | with <code>ssh</code> and <code>tmux</code>. When I am away from my PC (read: | ||
62 | sitting across the room), I check build status and IRC | ||
63 | messages by <code>ssh</code>ing into a tmux session running the said | ||
64 | build or weechat.</p> | ||
65 | |||
66 | <h3 id="file%20uploads">file uploads</h3> | ||
67 | |||
68 | <p>Not being able to access my (ssh-only) file host was | ||
69 | crippling. With a <code>bash</code> instance on my phone, I just copied | ||
70 | over my ssh keys, and popped in a file upload script (a | ||
71 | glorified <code>scp</code>). Now I just have to figure out a way to | ||
72 | clean up these file names …</p> | ||
73 | |||
74 | <pre><code>~/storage/pictures/ $ ls | ||
75 | 02muf5g7b2i41.jpg 7alt3cwg77841.jpg cl4bsrge7id11.png | 73 | 02muf5g7b2i41.jpg 7alt3cwg77841.jpg cl4bsrge7id11.png |
76 | mtZabXG.jpg p8d5c584f2841.jpg vjUxGjq.jpg | 74 | mtZabXG.jpg p8d5c584f2841.jpg vjUxGjq.jpg</code></pre> |
77 | </code></pre> | ||
78 | |||
79 | <h3 id="cmus">cmus</h3> | 75 | <h3 id="cmus">cmus</h3> |
80 | 76 | <p>Alright, I don’t really listen to music via <code>cmus</code>, but I did use it a couple times when my default music player was acting up. <code>cmus</code> is a viable option:</p> | |
81 | <p>Alright, I don't really listen to music via <code>cmus</code>, but I | 77 | <p><a href="https://u.peppe.rs/CP.jpg"><img src="https://u.peppe.rs/CP.jpg" /></a></p> |
82 | did use it a couple times when my default music player was | 78 | </body> |
83 | acting up. <code>cmus</code> is a viable option:</p> | 79 | </html> |
84 | |||
85 | <p><a href="https://u.peppe.rs/CP.jpg"><img src="https://u.peppe.rs/CP.jpg" alt="cmus.png" /></a></p> | ||
86 | 80 | ||
87 | </div> | 81 | </div> |
88 | 82 | ||