<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>CommandLine on neildaemond&#39;s hacker blog</title>
    <link>https://808.ninja/tags/commandline/</link>
    <description>Recent content in CommandLine on neildaemond&#39;s hacker blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 12 May 2025 13:57:43 +0800</lastBuildDate>
    <atom:link href="https://808.ninja/tags/commandline/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Script to auto-reconnect SSH connections to tmux sessions</title>
      <link>https://808.ninja/coder/script-for-auto-reconnecting-ssh-to-tmux-sessions/</link>
      <pubDate>Mon, 12 May 2025 13:57:43 +0800</pubDate>
      <guid>https://808.ninja/coder/script-for-auto-reconnecting-ssh-to-tmux-sessions/</guid>
      <description>&lt;p&gt;I like the idea of SSH&amp;rsquo;ing into a tmux session when doing work on a remote machine so that I can reconnect right where I left off.&lt;/p&gt;&#xA;&lt;p&gt;However, I don&amp;rsquo;t like it when the internet connection is unstable, and you must reconnect whenever you drop off. Or, when I close my laptop for a couple of hours and open it back up to a crashed terminal emulator. I tried using &lt;code&gt;mosh&lt;/code&gt; as I&amp;rsquo;ve done with IRC before, but I didn&amp;rsquo;t like how the terminal scrolling &amp;amp; copy/paste behaviour was affected unintuitively by mosh &amp;amp; tmux.&lt;/p&gt;</description>
    </item>
    <item>
      <title>F11 Can&#39;t Scroll Nicknames Down When Using Weechat in Terminal</title>
      <link>https://808.ninja/quick-tips/f11-cant-scroll-nicknames-down-when-using-weechat-in-terminal/</link>
      <pubDate>Sat, 21 Sep 2019 15:17:17 +0800</pubDate>
      <guid>https://808.ninja/quick-tips/f11-cant-scroll-nicknames-down-when-using-weechat-in-terminal/</guid>
      <description>&lt;h2 id=&#34;ttmega-lolz-paying-homage-to-90s-computing-and-web-pages-via-tildeclubtt&#34;&gt;&lt;tt&gt;MeGa LoLz: Paying HoMaGe to 90&amp;rsquo;s ComPuTinG AnD WeB PaGeS ViA tilde.club&lt;/tt&gt;&lt;/h2&gt;&#xA;&lt;p&gt;ssh&amp;rsquo;ing into my new account on &lt;a href=&#34;https://tilde.club&#34;&gt;tilde.club&lt;/a&gt;, I was re-introduced to their favourite command line irc client, &lt;a href=&#34;https://weechat.org&#34;&gt;WeeChat&lt;/a&gt;. I&amp;rsquo;m quite excited about tilde.club( mine is &lt;a href=&#34;https://tilde.club/~neildaemond&#34;&gt;tilde.club/~neildaemond&lt;/a&gt; ;) ) as it provides the perfect remote server for irc chat if I run it in a screen/tmux/etc. At my local hackerspace, &lt;a href=&#34;https://dimsumlabs.com&#34;&gt;dimsumlabs&lt;/a&gt;, we&amp;rsquo;re trying to encourage irc usage. In Particular, our &lt;code&gt;#dimsumlabs&lt;/code&gt; channel on Freenode.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Find Nodes on Network Using Nmap</title>
      <link>https://808.ninja/quick-tips/find-nodes-on-network-using-nmap/</link>
      <pubDate>Fri, 12 Oct 2018 10:17:20 +0800</pubDate>
      <guid>https://808.ninja/quick-tips/find-nodes-on-network-using-nmap/</guid>
      <description>&lt;p&gt;Using:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;nmap -sP 192.168.2.1/24&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I was able to find my SOPine nodes, which were plugged into a Pine64 Clusterboard on wired network.&lt;/p&gt;</description>
    </item>
    <item>
      <title>base64 for html</title>
      <link>https://808.ninja/quick-tips/base64-for-html/</link>
      <pubDate>Thu, 21 Sep 2017 13:02:33 +0800</pubDate>
      <guid>https://808.ninja/quick-tips/base64-for-html/</guid>
      <description>&lt;p&gt;the following commands mentioned on &lt;a href=&#34;https://stackoverflow.com/questions/16918602/how-to-base64-encode-image-in-linux-bash-shell&#34;&gt;this post on stackoverflow&lt;/a&gt; can generate base64 encoded image for use in html.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;file=&amp;quot;DSC_0251.JPG&amp;quot;&#xA;type=$(identify -format &amp;quot;%m&amp;quot; &amp;quot;$file&amp;quot; | tr &#39;[A-Z]&#39; &#39;[a-z]&#39;)&#xA;echo &amp;quot;data:image/$type;base64,$(base64 -w 0 &amp;quot;$file&amp;quot;)&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>my favourite way to see git log from command line</title>
      <link>https://808.ninja/quick-tips/my-favorite-way-to-see-git-log-from-command-line/</link>
      <pubDate>Thu, 21 Sep 2017 08:36:10 +0800</pubDate>
      <guid>https://808.ninja/quick-tips/my-favorite-way-to-see-git-log-from-command-line/</guid>
      <description>&lt;p&gt;it is&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;git log --graph --oneline --decorate --branches&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>screenshot from command line</title>
      <link>https://808.ninja/quick-tips/screenshot-from-command-line/</link>
      <pubDate>Wed, 12 Aug 2015 09:20:32 +0800</pubDate>
      <guid>https://808.ninja/quick-tips/screenshot-from-command-line/</guid>
      <description>&lt;p&gt;If you have &lt;a href=&#34;http://www.imagemagick.org&#34;&gt;ImageMagick&lt;/a&gt; installed, you can use:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;import filename.png&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;to then select an image window via a mouse. Or, the pure command line method of:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;import filename.png -window root&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;to take a snapshot of the whole screen.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
