<?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>A SEA OF FLAMES</title>
	<atom:link href="http://blog.aseaofflames.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.aseaofflames.com</link>
	<description>by Shawn McCrimmon</description>
	<lastBuildDate>Sun, 28 Nov 2010 04:19:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>The Great American Firewall</title>
		<link>http://blog.aseaofflames.com/2010/11/the-great-american-firewall/</link>
		<comments>http://blog.aseaofflames.com/2010/11/the-great-american-firewall/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 04:14:37 +0000</pubDate>
		<dc:creator>Shawn McCrimmon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.aseaofflames.com/?p=53</guid>
		<description><![CDATA[The weekend, the US Government seized the domains Torrent-Finder.com, RapGodFathers.com, Dajaz1.com and MySmash.com on the grounds of willful copyright infringement. Is this the start of the US Government censoring the internet? Or am I paranoid? Speaking of Internet Censorship: Congress is proposing a law that would force ISPs to block access to a list of specific [...]]]></description>
			<content:encoded><![CDATA[<p>The weekend, the US Government seized the domains Torrent-Finder.com, RapGodFathers.com, Dajaz1.com and MySmash.com on the grounds of willful copyright infringement. Is this the start of the US Government censoring the internet? Or am I paranoid?</p>
<p>Speaking of Internet Censorship:</p>
<p>Congress is proposing a law that would force ISPs to block access to a list of specific sites that they specify or allow them to seize domains (like above) without due process.</p>
<p>More information:</p>
<p><a href="http://www.huffingtonpost.com/david-segal/stop-the-internet-blackli_b_739836.html" target="_blank">http://www.huffingtonpost.com/david-segal/stop-the-internet-blackli_b_739836.html</a></p>
<p>US citizens please sign this petition and donate if possible:</p>
<p><a href="http://demandprogress.org/" target="_blank">http://demandprogress.org/</a></p>
<p>Please act to keep the internet free and open for all.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.aseaofflames.com%2F2010%2F11%2Fthe-great-american-firewall%2F&amp;title=The%20Great%20American%20Firewall" id="wpa2a_2"><img src="http://blog.aseaofflames.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="share save 171 16 The Great American Firewall"  title="The Great American Firewall" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.aseaofflames.com/2010/11/the-great-american-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Poke Yourself on Facebook</title>
		<link>http://blog.aseaofflames.com/2010/10/how-to-poke-yourself-on-facebook/</link>
		<comments>http://blog.aseaofflames.com/2010/10/how-to-poke-yourself-on-facebook/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 03:28:57 +0000</pubDate>
		<dc:creator>Shawn McCrimmon</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[battle]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[poke]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[stupid]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[your]]></category>
		<category><![CDATA[yourself]]></category>

		<guid isPermaLink="false">http://blog.aseaofflames.com/?p=36</guid>
		<description><![CDATA[One of the best things about having a non-focused blog is I can write about random thinks like poking yourself on Facebook. Why would you want to poke yourself? Why not? You can start a poke battle with yourself. And you know you will always poke yourself back. Step 1: Figure out your username. Click [...]]]></description>
			<content:encoded><![CDATA[<p>One of the best things about having a non-focused blog is I can write about random thinks like poking yourself on Facebook. Why would you want to poke yourself? Why not? You can start a poke battle with yourself. And you know you will always poke yourself back.</p>
<p><span id="more-36"></span></p>
<p>Step 1: Figure out your username. Click on the <a rel="attachment wp-att-37" href="http://blog.aseaofflames.com/2010/10/how-to-poke-yourself-on-facebook/screenshot-2/"><img class="alignnone size-full wp-image-37" title="Profile tab" src="http://blog.aseaofflames.com/wp-content/uploads/2010/10/Screenshot-2.png" alt="Screenshot 2 How To: Poke Yourself on Facebook" width="49" height="29" /></a> tab and then copy everything in the url after the /</p>
<p><a rel="attachment wp-att-38" href="http://blog.aseaofflames.com/2010/10/how-to-poke-yourself-on-facebook/screenshot-1/"><img class="alignnone size-medium wp-image-38" title="Url" src="http://blog.aseaofflames.com/wp-content/uploads/2010/10/Screenshot-1-300x28.png" alt="Screenshot 1 300x28 How To: Poke Yourself on Facebook" width="300" height="28" /></a></p>
<p>For example in the picture about you would copy smccrimmon.</p>
<p>Step 2: Enter http://www.facebook.com/poke.php?id=your_username</p>
<p><a rel="attachment wp-att-39" href="http://blog.aseaofflames.com/2010/10/how-to-poke-yourself-on-facebook/screenshot-3/"><img class="alignnone size-medium wp-image-39" title="Poke url" src="http://blog.aseaofflames.com/wp-content/uploads/2010/10/Screenshot-3-300x28.png" alt="Screenshot 3 300x28 How To: Poke Yourself on Facebook" width="300" height="28" /></a></p>
<p>For example for the username smccrimmon, the url would be http://www.facebook.com/poke.php?id=smccrimmon</p>
<p>You should then see this page:</p>
<p><a rel="attachment wp-att-40" href="http://blog.aseaofflames.com/2010/10/how-to-poke-yourself-on-facebook/screenshot-facebook-poke-someone-google-chrome/"><img class="alignnone size-medium wp-image-40" title="Are you sure you want to poke yourself" src="http://blog.aseaofflames.com/wp-content/uploads/2010/10/Screenshot-Facebook-Poke-Someone-Google-Chrome-300x175.png" alt="Screenshot Facebook Poke Someone Google Chrome 300x175 How To: Poke Yourself on Facebook" width="300" height="175" /></a></p>
<p>Click Poke and you should see this screen:</p>
<p><a rel="attachment wp-att-41" href="http://blog.aseaofflames.com/2010/10/how-to-poke-yourself-on-facebook/screenshot-facebook-poke-someone-google-chrome-1/"><img class="alignnone size-medium wp-image-41" title="you have poked yourself" src="http://blog.aseaofflames.com/wp-content/uploads/2010/10/Screenshot-Facebook-Poke-Someone-Google-Chrome-1-300x175.png" alt="Screenshot Facebook Poke Someone Google Chrome 1 300x175 How To: Poke Yourself on Facebook" width="300" height="175" /></a></p>
<p>Congratulations, you have successfully poked yourself.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.aseaofflames.com%2F2010%2F10%2Fhow-to-poke-yourself-on-facebook%2F&amp;title=How%20To%3A%20Poke%20Yourself%20on%20Facebook" id="wpa2a_4"><img src="http://blog.aseaofflames.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="share save 171 16 How To: Poke Yourself on Facebook"  title="How To: Poke Yourself on Facebook" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.aseaofflames.com/2010/10/how-to-poke-yourself-on-facebook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To: Backup Your Shared Server</title>
		<link>http://blog.aseaofflames.com/2010/10/how-to-backup-your-shared-server/</link>
		<comments>http://blog.aseaofflames.com/2010/10/how-to-backup-your-shared-server/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 02:33:52 +0000</pubDate>
		<dc:creator>Shawn McCrimmon</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[back]]></category>
		<category><![CDATA[geeky]]></category>
		<category><![CDATA[hostgator]]></category>
		<category><![CDATA[protection]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[strongspace]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.aseaofflames.com/?p=7</guid>
		<description><![CDATA[I had a catastrophe last night, I stupidly ran an rm command on my server without specifying the right folder. It deleted almost every file on my server. Luckily Hostgator makes weekly backups. Therefore for the lovely price of $15, I had them restore everything. At least everything created before last Sunday. So I decided to [...]]]></description>
			<content:encoded><![CDATA[<p>I had a catastrophe last night, I stupidly ran an rm command on my server without specifying the right folder. It deleted almost every file on my server. Luckily <a href="http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=prjvalpo">Hostgator</a> makes weekly backups. Therefore for the lovely price of $15, I had them restore everything. At least everything created before last Sunday. So I decided to take matters into my own hands, and create my own scheduled backups.</p>
<p>UPDATE: Remember to ALWAYS make a backup of your files regularly and especially before doing any automation work (like this tutorial).</p>
<p><span id="more-7"></span></p>
<p>Needed:<br />
1. Linux server with rsync. (ask your host)<br />
2. ssh-access to server (jailed ssh works fine)<br />
3. A backup service with rsync support (i use <a href="http://www.strongspace.com" target="_blank">Strongspace</a>)<br />
4. <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">Putty</a><br />
5.  FTP Client (I use <a href="http://filezilla-project.org/" target="_blank">filezilla</a>)</p>
<p>Steps:<br />
<a href="#step1">Step 1 - Setup passwordless access to strongspace from your server</a><br />
<a href="#step2">Step 2 &#8211;  Setup rsync</a><br />
<a href="#step3">Step 3 &#8211;  backup mysql databases</a></p>
<p><a name="step1"></a></p>
<p>Open up putty</p>
<p>type in your server address and port (usually 22, but 2222 on hostgator)</p>
<p><a rel="attachment wp-att-8" href="http://blog.aseaofflames.com/2010/10/how-to-backup-your-shared-server/putty/"><img class="alignnone size-medium wp-image-8" title="putty login" src="http://blog.aseaofflames.com/wp-content/uploads/2010/10/putty-300x288.png" alt="putty 300x288 How To: Backup Your Shared Server" width="300" height="288" /></a></p>
<p>Click Open</p>
<p>Now type in your username and password to login to the server. You should see something similar to this:</p>
<p><a rel="attachment wp-att-9" href="http://blog.aseaofflames.com/2010/10/how-to-backup-your-shared-server/login/"><img class="alignnone size-medium wp-image-9" title="login to server" src="http://blog.aseaofflames.com/wp-content/uploads/2010/10/login-300x188.png" alt="login 300x188 How To: Backup Your Shared Server" width="300" height="188" /></a></p>
<p>Now type in <strong>ssh-keygen</strong> and hit enter, then hit enter for each option presented. You should see a screen like this:</p>
<p><a rel="attachment wp-att-10" href="http://blog.aseaofflames.com/2010/10/how-to-backup-your-shared-server/keygenerated/"><img class="alignnone size-medium wp-image-10" title="ssh public key generated" src="http://blog.aseaofflames.com/wp-content/uploads/2010/10/keygenerated-300x187.png" alt="keygenerated 300x187 How To: Backup Your Shared Server" width="300" height="187" /></a></p>
<p>remember the location of your public key (should be similar to /home/YOUR_USERNAME/.ssh/id_rsa.pub)</p>
<p>Open up your FTP Client and login to your server. Navigate to the location listed above and download id_rsa.pub. Open id_rsa in a text editor (something besides Notepad, I use Notepad++)  Copy everything in the file.</p>
<p>Open strongspace and navigate to<strong> account -&gt; ssh public keys</strong> Click <strong>add a new key. </strong>Give your key a name and then paste it into the box. Click save.</p>
<p><a rel="attachment wp-att-14" href="http://blog.aseaofflames.com/2010/10/how-to-backup-your-shared-server/new-key1-4/"><img class="alignnone size-medium wp-image-14" title="new key" src="http://blog.aseaofflames.com/wp-content/uploads/2010/10/new-key1-300x202.jpg" alt="new key1 300x202 How To: Backup Your Shared Server" width="300" height="202" /></a></p>
<p><a rel="attachment wp-att-14" href="http://blog.aseaofflames.com/2010/10/how-to-backup-your-shared-server/new-key1-4/"></a>Switch back to putty and type in</p>
<p><strong>sftp username@username.strongspace.com </strong></p>
<p>type <strong>yes</strong> when prompted.</p>
<p><a rel="attachment wp-att-15" href="http://blog.aseaofflames.com/2010/10/how-to-backup-your-shared-server/add-public/"><img class="alignnone size-medium wp-image-15" title="add public key" src="http://blog.aseaofflames.com/wp-content/uploads/2010/10/add-public-300x189.png" alt="add public 300x189 How To: Backup Your Shared Server" width="300" height="189" /></a></p>
<p>type <strong>quit</strong>, then <strong>exit</strong> to close putty.</p>
<p><a name="step2"></a></p>
<p>Open your text editor</p>
<p>type the following (change strongspace username and account dir accordingly)</p>
<blockquote>
<div id="_mcePaste">#!/bin/sh</div>
<div id="_mcePaste">### Configuration change paths/usernames</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste">BACKUP_DIR=&#8221;/home/username&#8221;</div>
<div id="_mcePaste">STRONGSPACE_USERNAME=username</div>
<div id="_mcePaste">STRONGSPACE_PATH=/strongspace/${STRONGSPACE_USERNAME}/home/backup</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste">#### Do the backup. Note: use absolute path for rsync</div>
<div id="_mcePaste"># Push the backups off to Strongspace</div>
<div id="_mcePaste">/usr/bin/rsync -a ${BACKUP_DIR} ${STRONGSPACE_USERNAME}@${STRONGSPACE_USERNAME}.strongspace.com:${STRONGSPACE_PATH}</div>
<div id="_mcePaste">#</div>
</blockquote>
<div>save this file as backup.sh somewhere below the public_html folder on your server</div>
<div>chmod the file to 0777</div>
<div>setup a cron job to run the file as often as you want a full site backup made.</div>
<div><a name="step3"></a></div>
<div>create a new file &#8220;mysql_backup.sh&#8221;</div>
<blockquote>
<div>
<p><span style="font-family: 'Helvetica Neue', Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, Arial, sans-serif; line-height: 17px;"> </span></p>
<pre class="code" style="background-color: #f0f0f0; padding-top: 1em; padding-right: 1em; padding-bottom: 0px; padding-left: 1em; font-size: 13px; overflow-x: auto; overflow-y: auto; margin: 0px; border: 1px solid #cccccc;">#!/bin/sh
### Configuration
#
MYSQL_USERNAME=backup_username
MYSQL_PASSWORD=your_mysql_password
MYSQL_DATABASE=production
BACKUP_DIR="/users/home/somebody/mysql_backup"
STRONGSPACE_USERNAME=username
STRONGSPACE_PATH=/strongspace/${STRONGSPACE_USERNAME}/home/mysql_backup
#
#### Do the backup. Note: use absolute paths for mysqldump/gzip/find/rsync
/opt/local/bin/mysqldump --user=${MYSQL_USERNAME} --password=${MYSQL_PASSWORD} ${MYSQL_DATABASE} | /usr/bin/gzip &gt; "${BACKUP_DIR}/${MYSQL_DATABASE} - `date +%F\ %T`.sql.gz"
# Push the backups off to Strongspace
/opt/local/bin/rsync -a ${BACKUP_DIR} ${STRONGSPACE_USERNAME}@${STRONGSPACE_USERNAME}.strongspace.com:${STRONGSPACE_PATH}
#</pre>
</div>
</blockquote>
<div>Save this file with the other one. chmod it to 0777 and create a cron job (you should probably run this nightly)</div>
<div>Make sure to test the backups, a corrupted backup is not a real backup.</div>
<div>Post any questions in the comments below.</div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.aseaofflames.com%2F2010%2F10%2Fhow-to-backup-your-shared-server%2F&amp;title=How%20To%3A%20Backup%20Your%20Shared%20Server" id="wpa2a_6"><img src="http://blog.aseaofflames.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="share save 171 16 How To: Backup Your Shared Server"  title="How To: Backup Your Shared Server" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.aseaofflames.com/2010/10/how-to-backup-your-shared-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

