<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The online home of Rufus Pollock &#187; Sysadmin</title>
	<atom:link href="http://rufuspollock.org/tags/sysadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://rufuspollock.org</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 15:12:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Reverse Proxying to WordPress.com</title>
		<link>http://rufuspollock.org/2009/10/02/reverse-proxying-to-wordpresscom/</link>
		<comments>http://rufuspollock.org/2009/10/02/reverse-proxying-to-wordpresscom/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 10:50:11 +0000</pubDate>
		<dc:creator>Rufus Pollock</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://www.rufuspollock.org/2009/10/02/reverse-proxying-to-wordpresscom/</guid>
		<description><![CDATA[I wanted to do a reverse proxy to wordpress.com in order to integrate an existing wordpress.com blog into an existing site. This turned out to be a little trickier than I&#8217;d thought due to wordpress.com&#8217;s usage of gzip deflation of their output. Figured this out thanks to sound advice <a href="http://www.apachetutor.org/admin/reverseproxies">here</a> and <a href="http://wiki.uniformserver.com/index.php/Reverse_Proxy_Server_2:_mod_proxy_html_2">here</a>: ... [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to do a reverse proxy to wordpress.com in order to integrate an existing wordpress.com blog into an existing site. This turned out to be a little trickier than I&#8217;d thought due to wordpress.com&#8217;s usage of gzip deflation of their output.</p>

<p>Figured this out thanks to sound advice <a href="http://www.apachetutor.org/admin/reverseproxies">here</a> and <a href="http://wiki.uniformserver.com/index.php/Reverse_Proxy_Server_2:_mod_proxy_html_2">here</a>:</p>

<pre><code>  ...

  &lt;Proxy *&gt;
        Allow from .mysite.com
  &lt;/Proxy&gt;
  ProxyPass / myblog.wordpress.com
  ProxyPassReverse / http://myblog.wordpress.com/
  ProxyHTMLURLMap http://myblog.wordpress.com/ /
  &lt;Location /&gt;
    SetOutputFilter proxy-html
    # get rid of Content-Encoding at wordpress end
    # To use this you'll need to do (on debian) a2enmod headers
    RequestHeader unset  Accept-Encoding

    # Alternative method: inflate then deflate again ... (requires more effort at our end)
    # Could NOT get this to work (though suggested by both reference sites!)
    # SetOutputFilter INFLATE;proxy-html;DEFLATE
  &lt;/Location&gt;

  ....
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://rufuspollock.org/2009/10/02/reverse-proxying-to-wordpresscom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion Hacks</title>
		<link>http://rufuspollock.org/2008/06/20/subversion-hacks/</link>
		<comments>http://rufuspollock.org/2008/06/20/subversion-hacks/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 13:45:55 +0000</pubDate>
		<dc:creator>Rufus Pollock</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://www.rufuspollock.org/2008/06/20/subversion-hacks/</guid>
		<description><![CDATA[Automatically Adding or Removing Files Especially useful when, for example, versioning /etc/:  Files to remove: svn stat -q &#124; grep '^!' svn stat -q &#124; grep '^!' &#124; sed -e 's/^!\s*//' &#124; xargs &#124; svn rm Files to add: svn stat &#124; grep '^?' svn stat -q &#124; grep '^?' &#124; sed -e 's/^?\s*//' [...]]]></description>
			<content:encoded><![CDATA[<h1>Automatically Adding or Removing Files</h1>

<p>Especially useful when, for example, versioning /etc/:</p>

<p><pre>
Files to remove:</pre></p>

<p>svn stat -q | grep '^!'
svn stat -q | grep '^!' | sed -e 's/^!\s*//' | xargs | svn rm</p>

<p>Files to add:</p>

<p>svn stat | grep '^?'
svn stat -q | grep '^?' | sed -e 's/^?\s*//' | xargs | svn rm</p>

<p>find . -name '<em>dpkg-old</em>' -exec rm -i {} \;
</p>
]]></content:encoded>
			<wfw:commentRss>http://rufuspollock.org/2008/06/20/subversion-hacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

