<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Command-Line on</title><link>https://dawning.ca/tags/command-line/</link><description>Recent content in Command-Line on</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Copyright © James Snell</copyright><lastBuildDate>Fri, 14 Jul 2017 12:39:14 +0000</lastBuildDate><atom:link href="https://dawning.ca/tags/command-line/index.xml" rel="self" type="application/rss+xml"/><item><title>Unix Magic Trick: Rename stuff in bulk</title><link>https://dawning.ca/posts/unix-magic-trick-rename-stuff-in-bulk/</link><pubDate>Fri, 14 Jul 2017 12:39:14 +0000</pubDate><guid>https://dawning.ca/posts/unix-magic-trick-rename-stuff-in-bulk/</guid><description>
&lt;p>Here&amp;rsquo;s a magic-trick I rock from time to time. I only graze the basic abilities of the &amp;ldquo;rename&amp;rdquo; program, but even in my basic use of it, I find it super helpful.&lt;/p>
&lt;p>In this case, I had a situation where my eBooks had been resorted from a massive flat directory in to one containing sub-dirs named with the prefix &amp;ldquo;Categories - &amp;ldquo;. I might have sorted them in another manner if I didn&amp;rsquo;t know about the rename command. When I was done sorting and thus left with my category-based directories, I then wanted to rename each dir to dump the prefix.&lt;/p></description></item><item><title>The Anti-Epic Tale of Making IIS Play Nice with Apache</title><link>https://dawning.ca/posts/iis-and-apache/</link><pubDate>Wed, 24 Jun 2009 14:04:56 +0000</pubDate><guid>https://dawning.ca/posts/iis-and-apache/</guid><description>
&lt;figure style="float: right; margin: 0 0 1em 1em; max-width: 226px;">
&lt;img src="https://dawning.ca/uploads/2009/06/MattDamon.png" alt="">
&lt;figcaption>&lt;/figcaption>
&lt;/figure>
&lt;h2 id="the-mission">The Mission&lt;/h2>
&lt;p>To run an &lt;a href="http://en.wikipedia.org/wiki/Apache_HTTP_Server">Apache&lt;/a> server (on Windows) on the same machine that was already hosting &lt;a href="http://en.wikipedia.org/wiki/Internet_Information_Services">IIS&lt;/a>.&lt;/p>
&lt;h2 id="the-strategy">The Strategy&lt;/h2>
&lt;p>The plan was to alter each virtual host defined in IIS to not bind to the typical HTTP/HTTPS ports (80 &amp;amp; 443), but instead have it use arbitrary ports (was to be 8080 &amp;amp; 4433). With that in place, I could then run Apache normally. In order to get traffic to hit the right sites as hosted by IIS, the apache server would have it&amp;rsquo;s own virtual host definitions for each IIS site. In those definitions, there would be a Reverse Proxy config to get Apache to pass the traffic internally over to the arbitrary ports.&lt;/p></description></item></channel></rss>