<?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>318 Tech Journal &#187; Scripts</title>
	<atom:link href="http://techjournal.318.com/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://techjournal.318.com</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 22:09:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Using Squidman as a Web Proxy for OS X</title>
		<link>http://techjournal.318.com/scripts/using-squidman-as-a-web-proxy-for-os-x/</link>
		<comments>http://techjournal.318.com/scripts/using-squidman-as-a-web-proxy-for-os-x/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 10:00:46 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[General Technology]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[App Store Proxy]]></category>
		<category><![CDATA[auto-configure]]></category>
		<category><![CDATA[bypass proxy]]></category>
		<category><![CDATA[cache size]]></category>
		<category><![CDATA[direct]]></category>
		<category><![CDATA[dynamic content]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Mac App Store]]></category>
		<category><![CDATA[maximum objects]]></category>
		<category><![CDATA[PAC file]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[Squidman]]></category>
		<category><![CDATA[tcp]]></category>
		<category><![CDATA[visible hostname]]></category>

		<guid isPermaLink="false">http://techjournal.318.com/?p=836</guid>
		<description><![CDATA[Squid is an open source package available at http://www.squid-cache.org that caches web files to a local server, increasing throughput for users and decreasing the amount of traffic on WAN connections. A Mac OS X software package named SquidMan, which includes Squid is available at http://web.me.com/adg/squidman/index.html. SquidMan makes installing and using Squid much easier, giving nice buttons [...]]]></description>
			<content:encoded><![CDATA[<p>Squid is an open source package available at <a href="http://www.squid-cache.org/">http://www.squid-cache.org</a> that caches web files to a local server, increasing throughput for users and decreasing the amount of traffic on WAN connections. A Mac OS X software package named SquidMan, which includes Squid is available at <a href="http://web.me.com/adg/squidman/index.html">http://web.me.com/adg/squidman/index.html</a>. SquidMan makes installing and using Squid much easier, giving nice buttons to use for management rather than managing Squid using configuration files.</p>
<p>Once SquidMan is downloaded, copy the SquidMan application bundle to the /Applications directory. Then open it. At the Helper Tool Installation screen click on the Yes button.</p>
<p><a href="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.39.31-PM.png"><img class="aligncenter size-medium wp-image-838" title="Screen Shot 2011-10-26 at 4.39.31 PM" src="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.39.31-PM-300x151.png" alt="" width="300" height="151" /></a>At the Squid Missing screen click on the OK button to install squid itself.</p>
<p><a href="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.39.40-PM.png"><img class="aligncenter size-medium wp-image-839" title="Screen Shot 2011-10-26 at 4.39.40 PM" src="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.39.40-PM-300x150.png" alt="" width="300" height="150" /></a>The Preferences screen then opens. Click on the Clients tab and, if you would like to restrict access to only a set of IP addresses, define them (or use the net mask to define a range).</p>
<p><a href="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.40.20-PM.png"><img class="aligncenter size-medium wp-image-840" title="Screen Shot 2011-10-26 at 4.40.20 PM" src="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.40.20-PM-300x208.png" alt="" width="300" height="208" /></a>Click on the General tab. Here, provide the following information:</p>
<ul>
<li>HTTP Port: The port number that the proxy will run on.</li>
<li>Visible hostname: The hostname of the server (e.g. proxy.318.com).</li>
<li>Cache size: The total amount of space used for the proxies cache.</li>
<li>Maximum object size: The maximum size of single cached files.</li>
<li>Rotate logs: The frequency with which log files are rotated (I usually use Manually here).</li>
<li>Start Squid on launch: Automatically start squid when SquidMan is launched, and delay start by x number of seconds.</li>
<li>Quid Squid on logout: Define whether logging out of the server also stops squid.</li>
<li>Show errors produced by Squid: Displays squid&#8217;s errors in SquidMan.</li>
</ul>
<p><a href="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.40.47-PM.png"><img class="aligncenter size-medium wp-image-841" title="Screen Shot 2011-10-26 at 4.40.47 PM" src="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.40.47-PM-300x208.png" alt="" width="300" height="208" /></a>Click on the Parent and define a proxy server that this one will use (if there is one, otherwise it just uses the web to directly access files). This feature is only used if you are daisy chaining multiple squid servers.</p>
<p><a href="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.41.11-PM.png"><img class="aligncenter size-medium wp-image-842" title="Screen Shot 2011-10-26 at 4.41.11 PM" src="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.41.11-PM-300x208.png" alt="" width="300" height="208" /></a>Click on the Direct tab and enter any sites that should not be proxied. Internal staging environments are a great example of sites that should bypass proxy servers.</p>
<p><a href="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.41.31-PM.png"><img class="aligncenter size-medium wp-image-843" title="Screen Shot 2011-10-26 at 4.41.31 PM" src="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.41.31-PM-300x208.png" alt="" width="300" height="208" /></a>At the Template tab, enter any custom variables.</p>
<p><a href="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.41.40-PM.png"><img class="aligncenter size-medium wp-image-844" title="Screen Shot 2011-10-26 at 4.41.40 PM" src="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.41.40-PM-300x208.png" alt="" width="300" height="208" /></a></p>
<p>Squid is usually used to cache and speed up web access, so the default configuration file is optimized for small files. In order to cache larger files effectively, change the configuration to allow for larger files (up to 64 megabytes) and allow for more total disk storage of cached files (up to 8 gigabytes in our tests for a few specific projects, but much larger is fine). This usually depends on the total available disk space on the machine which will run squid.</p>
<p>These are some of the options which we updated for a specific project we&#8217;re working on in the squid.conf (Template):</p>
<blockquote><p>http_port 3128 transparent (add transparent if using NAT to redirect http requests):<br />
maximum_object_size_in_memory 65536 KB<br />
cache_dir ufs /usr/local/var/squid/cache 8192 16 256<br />
maximum_object_size 65536 KB</p></blockquote>
<p>These days, we prefer to use squid running in NetBSD&#8217;s pkgsrc, although any method of installation (such as the squidman approach) should be acceptable.</p>
<p>Next, click on the SquidMan application which should have been running the whole time and click Start Squid.</p>
<p><a href="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.41.50-PM.png"><img class="aligncenter size-medium wp-image-845" title="Screen Shot 2011-10-26 at 4.41.50 PM" src="http://techjournal.318.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-26-at-4.41.50-PM-300x167.png" alt="" width="300" height="167" /></a></p>
<p>The squid daemon then starts. Looking at the processes running on the host reveals that it is run as follows:</p>
<blockquote><p>/usr/local/squid/sbin/squid -f /Users/admin/Library/Preferences/squid.conf</p></blockquote>
<p>Client systems can then be configured to use the squid proxy, or PAC (Proxy auto-config) file can be configured to configure clients. Another option being transparent parodying:</p>
<blockquote><p>rdr de0 0.0.0.0/0 port 80 -&gt; (local Squid server) port 3128 tcp</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/using-squidman-as-a-web-proxy-for-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling Spanning Tree on Cisco Switches</title>
		<link>http://techjournal.318.com/scripts/disabling-spanning-tree-on-cisco-switches/</link>
		<comments>http://techjournal.318.com/scripts/disabling-spanning-tree-on-cisco-switches/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 11:00:18 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[General Technology]]></category>
		<category><![CDATA[IT Management]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Mass Deployments]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[Cisco Spanning Tree]]></category>
		<category><![CDATA[cisco switches]]></category>

		<guid isPermaLink="false">http://techjournal.318.com/?p=707</guid>
		<description><![CDATA[Spanning Tree Protocol has always been a problem with Mac OS X Server. This goes back to the early days when OS&#8217;s whacked each other over the head with rocks to go from Alpha to Beta. This usually manifests itself in weird speed and connectivity issues. You can mitigate by changing timing values, but when [...]]]></description>
			<content:encoded><![CDATA[<p>Spanning Tree Protocol has always been a problem with Mac OS X Server. This goes back to the early days when OS&#8217;s whacked each other over the head with rocks to go from Alpha to Beta. This usually manifests itself in weird speed and connectivity issues. You can mitigate by changing timing values, but when testing, it is often easiest to start by disabling Spanning Tree Protocol, seeing if the problems you have go away and then working from there.</p>
<p>By default, Spanning Tree is enabled on all Cisco Switches. In this article we&#8217;ll look at disabling Spanning Tree Protocol. But it is important to point out that once disabled, it is important to keep in mind that creating an additional VLAN automatically runs another instance of spanning tree protocol, so you may need to repeat this process in the future.</p>
<p>First <a href="http://techjournal.318.com/linux/backing-up-cisco-configurations-using-mac-os-x/">backup the device</a>. Then, ssh into the device:</p>
<p><code>ssh admin@64.32.49.172</code></p>
<p>You should be prompted for credentials at this time if using telnet. If you are using SSH you should only be prompted for the password. Once connected to the device you will need to go into enable mode by typing en at the command prompt and hit enter:</p>
<p><code>en</code></p>
<p>It may prompt you for a password, which you will need to know. Once complete you will notice that the prompt turns from an &gt; to an # symbol. Now that you have administrative access, you will need to go into global configuration mode using the config t command:</p>
<p><code>config t</code></p>
<p>Now let&#8217;s actually disable spanning tree protocol. Enter in the no verb followed by spanning-tree, the protocol we&#8217;re disabling, followed by VLAN, followed by the VLAN identifier:</p>
<p><code>no spanning-tree VLAN vlan-id</code></p>
<p>Repeat for each VLAN if you need to do this on multiple. When done, exit config mode by entering the end command:</p>
<p><code>end</code></p>
<p>You can then enter the show command along with the spanning-tree option and view to see if there are any remaining spanning tree’s still active and verify if your command took:</p>
<p><code>show spanning-tree</code></p>
<p>If the command took and spanning tree is no longer enabled. Run the coppy command, followed by running-config and then startup-config, which copies your running configuration to your startup configuration making your change permanent:</p>
<p><code>copy running-config startup-config</code></p>
<p>It is then usually recommended to go ahead and reboot servers and clients prior to testing.</p>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/disabling-spanning-tree-on-cisco-switches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Voice Dictation on iPhone and iPad</title>
		<link>http://techjournal.318.com/scripts/voice-dictation-on-iphone-and-ipad/</link>
		<comments>http://techjournal.318.com/scripts/voice-dictation-on-iphone-and-ipad/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 17:34:27 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[General Technology]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Wireless Networking]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Drago Dictation]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[GERTY]]></category>
		<category><![CDATA[HAL]]></category>
		<category><![CDATA[Jarvis]]></category>
		<category><![CDATA[KITT]]></category>
		<category><![CDATA[Mother]]></category>
		<category><![CDATA[nuance]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Voice dictation]]></category>

		<guid isPermaLink="false">http://techjournal.318.com/?p=632</guid>
		<description><![CDATA[The iPhone has a built-in voice controls that allow you to speak to the phone and have it perform certain tasks, such as dial a given contact, go to the next track when playing music and even start playing music. This allows you to control the device, hands free and perform basic tasks. Have you [...]]]></description>
			<content:encoded><![CDATA[<p>The iPhone has a built-in voice controls that allow you to speak to the phone and have it perform certain tasks, such as dial a given contact, go to the next track when playing music and even start playing music. This allows you to control the device, hands free and perform basic tasks. Have you ever wanted to use that same kind of technology to dictate emails, notes and write documents while on the go? Well, <a href="http://itunes.apple.com/us/app/dragon-dictation/id341446764?mt=8">Dragon Dictation</a>, from Nuance Communications has got ya&#8217; covered!</p>
<p>Using Dragon Dictation, you can press a button and dictate text. You can then review and edit the text if needed. That text can then be emailed, posted to your wall on Facebook, posted to Twitter, sent as an SMS and yes, even copied to the clipboard. If you find yourself in any situation where you cannot use the keyboard for extended periods of time then Dragon Dictation is a must have! And you can&#8217;t beat the price; Dragon Dictation is currently free!</p>
<p><a href="http://techjournal.318.com/wp-content/uploads/2010/11/IMG_2524.png"><img class="aligncenter size-medium wp-image-633" title="IMG_2524" src="http://techjournal.318.com/wp-content/uploads/2010/11/IMG_2524-200x300.png" alt="" width="200" height="300" /></a></p>
<p>Dragon also has a product for Mac OS X, Dragon Naturally Speaking, and versions for Windows as well. You can also use the desktop applications to control the computer itself, allowing you to name it Jarvis, KITT, GERTY, HAL, Mother or just plain old Computer. If you link it up to automator or do a little scripting then you can even control other applications, allowing you to tell the computer to turn the lights on, make you coffee and even turn off those Christmas lights.</p>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/voice-dictation-on-iphone-and-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Backup Options</title>
		<link>http://techjournal.318.com/scripts/mysql-backup-options/</link>
		<comments>http://techjournal.318.com/scripts/mysql-backup-options/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 22:04:52 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://techjournal.318.com/?p=587</guid>
		<description><![CDATA[MySQL bills itself as the world&#8217;s most popular open source database. It turns up all over, including most installations of WordPress. Packages for multiple platforms make installation easy and online resources are plentiful. Web-based admin tools like phpMyAdmin are very popular and there are many stand-alone options for managing MySQL databases as well. When it [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mysql.com"><img src="http://techjournal.318.com/wp-content/uploads/2010/07/MySQLlogo.gif" alt="" title="MySQLlogo" width="120" height="60" class="alignright size-full wp-image-588" /></a><a href="http://www.mysql.com/">MySQL</a> bills itself as the world&#8217;s most popular open source database. It turns up all over, including most installations of <a href="http://wordpress.org">WordPress</a>. <a href="http://www.mysql.com/downloads/mysql/">Packages</a> for multiple platforms make installation easy and online resources are plentiful. Web-based admin tools like <a href="http://www.phpmyadmin.net/">phpMyAdmin</a> are very popular and there are many stand-alone options for managing MySQL databases as well.</p>
<p>When it comes to back-up, though, are you prepared? Backup plug-ins for WordPress databases are fairly common, but what other techniques can be used? Scripting to the rescue!</p>
<p>On Unix-type systems, it&#8217;s easy to find one of the many example scripts online, customize them to your needs, then add the script to a nightly cron job (or launchd on Mac OS X systems). Most of these scripts use the mysqldump command to create a text file that contains the structure and data from your database. More advanced scripts can loop through multiple databases on the same server, compress the output and email you copies.</p>
<p>Here is an example we found online a long time ago and modified (thanks to the unknown author):</p>
<p><code><br />
#!/bin/sh</p>
<p># List all of the MySQL databases that you want to backup in here,<br />
# each seperated by a space<br />
databases="database1 database2 database3"</p>
<p># Directory where you want the backup files to be placed<br />
backupdir=/mydatabasebackups</p>
<p># MySQL dump command, use the full path name here<br />
mysqldumpcmd=/usr/local/mysql/bin/mysqldump</p>
<p># MySQL Username and password<br />
userpassword=" --user=myusername --password=mypassword"</p>
<p># MySQL dump options<br />
dumpoptions=" --quick --add-drop-table --add-locks --extended-insert --lock-tables"</p>
<p># Unix Commands<br />
gzip=/usr/bin/gzip<br />
uuencode=/usr/bin/uuencode</p>
<p># Create our backup directory if not already there<br />
mkdir -p ${backupdir}<br />
if [ ! -d ${backupdir} ]<br />
then<br />
   echo "Not a directory: ${backupdir}"<br />
   exit 1<br />
fi</p>
<p># Dump all of our databases<br />
echo "Dumping MySQL Databases"<br />
for database in $databases<br />
do<br />
   $mysqldumpcmd $userpassword $dumpoptions $database > ${backupdir}/${database}.sql<br />
done</p>
<p># Compress all of our backup files<br />
echo "Compressing Dump Files"<br />
for database in $databases<br />
do<br />
   rm -f ${backupdir}/${database}.sql.gz<br />
   $gzip ${backupdir}/${database}.sql<br />
done</p>
<p># And we're done<br />
ls -l ${backupdir}<br />
echo "Dump Complete!"<br />
exit<br />
</code></p>
<p>Once you verify that your backup script is giving you valid backup files, these should be added to your other backup routines, such as CrashPlan, Mozy, Retrospect, Time Machine, Backup Exec, PresSTORE, etc. It never hurts to have too many copies of your critical data files.</p>
<p>To make sure your organization is prepared, contact your 318 account manager today, or email <a href="mailto:sales@318.com">sales@318.com</a> for assistance.</p>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/mysql-backup-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WWDC 2010</title>
		<link>http://techjournal.318.com/scripts/wwdc-2010/</link>
		<comments>http://techjournal.318.com/scripts/wwdc-2010/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 15:46:00 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://techjournal.318.com/?p=532</guid>
		<description><![CDATA[The annual Apple WorldWide Developers Conference, WWDC, has been announced for June 7th through June 11th. The Developers Conference will again be held in the Moscone Center in San Francisco and this year will be solely focused on development, having no IT track. To see a list of sessions, click here. As part of WWDC, [...]]]></description>
			<content:encoded><![CDATA[<p>The annual Apple WorldWide Developers Conference, WWDC, <a href="http://developer.apple.com/wwdc/">has been announced for June 7th through June 11th</a>. The Developers Conference will again be held in the Moscone Center in San Francisco and this year will be solely focused on development, having no IT track. To see a list of sessions, <a href="http://developer.apple.com/wwdc/sessions/">click here</a>.</p>
<p><img class="aligncenter" title="WWDC Badge" src="http://devimages.apple.com/wwdc/images/wwdc10_experience_wwdcicon20100416.png" alt="" width="220" height="233" /></p>
<p>As part of WWDC, Apple also hands out a number of design awards. If you have any applications you would like to nominate for a design award then <a href="http://developer.apple.com/wwdc/ada/">you can do so here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/wwdc-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OmniGraffle Tips &amp; Tricks</title>
		<link>http://techjournal.318.com/scripts/omnigraffle-tips-tricks/</link>
		<comments>http://techjournal.318.com/scripts/omnigraffle-tips-tricks/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 19:13:51 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[General Technology]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Network Architecture]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[318]]></category>
		<category><![CDATA[graffle]]></category>
		<category><![CDATA[OmniGraffle]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.318.com/techjournal/?p=415</guid>
		<description><![CDATA[Here are some great OmniGraffle Tips and Tricks!]]></description>
			<content:encoded><![CDATA[<p>Here are some great OmniGraffle Tips and Tricks!</p>
<p style="text-align: center;"><a href="http://www.318.com/techjournal/wp-content/uploads/2009/12/omnigraffle-tips-pub.pdf"><img class="aligncenter" title="OmniGraffle Tips &amp; Tricks" src="http://www.318.com/techjournal/wp-content/uploads/2009/12/screen-shot-2009-12-01-at-10557-pm1.pdf" alt="" width="405" height="303" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/omnigraffle-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Directory Auto Archiver</title>
		<link>http://techjournal.318.com/scripts/open-directory-auto-archiver/</link>
		<comments>http://techjournal.318.com/scripts/open-directory-auto-archiver/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 14:53:12 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Open Directory Auto Archiver]]></category>

		<guid isPermaLink="false">http://www.318.com/techjournal/?p=360</guid>
		<description><![CDATA[Have you struggled with Open Directory backups? Do you open up Server Admin and click on the Archive button when an alarm in your calendar tells you to do so? Well, we&#8217;re gonna&#8217; help you out then. We&#8217;re going to automate backing up your Open Directory. We&#8217;re going to invoke the backups through launchd and [...]]]></description>
			<content:encoded><![CDATA[<p>Have you struggled with Open Directory backups? Do you open up Server Admin and click on the Archive button when an alarm in your calendar tells you to do so? Well, we&#8217;re gonna&#8217; help you out then. We&#8217;re going to automate backing up your Open Directory. We&#8217;re going to invoke the backups through launchd and we&#8217;re going to keep them for an amount of time you determine and automatically prune the old ones. We&#8217;re going to let you choose the location to store them and the password to unlock them. And we&#8217;re going to let you do all this through a graphical package called the <a href="http://www.318.com/techjournal/wp-content/uploads/2009/10/318odb.dmg">318 Auto Archiver</a>.</p>
<p>Originally written for our own staff we now open it up to you as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/open-directory-auto-archiver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Buys Sun</title>
		<link>http://techjournal.318.com/scripts/oracle-buys-sun/</link>
		<comments>http://techjournal.318.com/scripts/oracle-buys-sun/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 16:18:08 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[Directory Services]]></category>
		<category><![CDATA[General Technology]]></category>
		<category><![CDATA[IT Management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle to buy Sun]]></category>
		<category><![CDATA[SOlaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.318.com/techjournal/?p=265</guid>
		<description><![CDATA[Sun was in merger talks with IBM.  Talks that had fallen through.  Today, the Sun website says &#8220;Oracle to Buy Sun.&#8221; Oracle is the largest database company in the world and has been tinkering with selling support contracts for Linux and the Oracle suite of database products, that already includes PeopleSoft, Hyperion and Siebel. This merger, [...]]]></description>
			<content:encoded><![CDATA[<p>Sun was in merger talks with IBM.  Talks that had fallen through.  Today, <a href="http://www.sun.com/third-party/global/oracle/index.jsp">the Sun website says &#8220;Oracle to Buy Sun</a>.&#8221;  Oracle is the largest database company in the world and has been tinkering with selling support contracts for Linux and the Oracle suite of database products, that already includes PeopleSoft, Hyperion and Siebel.  This merger, valued at $7.4Billion, will give Oracle access to sell hardware bundled solutions, further the Oracle development product offerings and give Oracle one of the best operating systems for running databases on the planet.</p>
<p>Oracle doesn&#8217;t just get hardware and Solaris though.  This move also solidifies a plan for Oracle customers to integrate Sun storage.  Oracle had previously been working with HP in a partnership that never seemed to gain traction.  Then there is Java, MySQL, VirtualBox, GlassFish and OpenOffice.org.  A number of the Sun contributions will be Open Source projects, but overall it&#8217;s possible to see a strategy that can emerge from a new Oracle + Sun organization.</p>
<p>As a Sun partner, 318 can assist its clients through this transition, be it with storage, MySQL, Java, Solaris or Oracle middleware scripting.  Overall, this deal makes a lot of sense and 318 is behind doing whatever possible to ease our clients through the transition.</p>
<p>Finally, for those concerned that Oracle might just be buying Sun to kill off MySQL, keep in mind that the Open Source community built MySQL in the first place (or was integral to building it) and it can build another in its place just as easily, this time faster and with less required legacy support.  MySQL is not a fluke.  <a href="http://en.wikipedia.org/wiki/PostgreSQL">PostgreSQL</a> or a newer solution will take its place if MySQL were to fall by the wayside under the Oracle helm.  Oracle is not going to make MySQL into a martyr of sorts, and is going to want to capitalize on their investment (a Billion dollar purchase by Sun and obviously part of this purchase); especially with a clear business plan for MySQL to be profitable (which is why Sun bought them for such a lofty price in the first place).  Overall, Oracle has no reason to kill MySQL; instead, with Siebel, MySQL, Oracle, PeopleSoft, etc &#8211; they can simply tout &#8220;All Your Databasen Are Belong To Us!&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/oracle-buys-sun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ESX Patch Management</title>
		<link>http://techjournal.318.com/scripts/esx-patch-management/</link>
		<comments>http://techjournal.318.com/scripts/esx-patch-management/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 13:18:53 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mass Deployments]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxcfg-firewall]]></category>
		<category><![CDATA[esxupdate]]></category>
		<category><![CDATA[noreboot]]></category>
		<category><![CDATA[patch management]]></category>
		<category><![CDATA[Test]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.318.com/techjournal/?p=257</guid>
		<description><![CDATA[VMware&#8217;s ESX Server, like any system, needs to be updated regularly. To see what patches have been installed on your ESX server use the following command: esxupdate -query Once you know what updates have already been applied to your system it&#8217;s time to go find the updates that still need to be applied. You can [...]]]></description>
			<content:encoded><![CDATA[<p>VMware&#8217;s ESX Server, like any system, needs to be updated regularly.  To see what patches have been installed on your ESX server use the following command:</p>
<blockquote><p>esxupdate -query</p></blockquote>
<p>Once you know what updates have already been applied to your system it&#8217;s time to go find the updates that still need to be applied.  You can download the updates that have not yet been run at <a href="http://support.vmware.com/selfsupport/download/">http://support.vmware.com/selfsupport/download/</a>.  Here you will see a bevy of information about each patch and can determine whether you consider it an important patch to run.  At a minimum, all security patches should be run as often as your change control environment allows.  Once downloaded make sure you have enough free space to install the software you&#8217;ve just downloaded and then you will need to copy the patches to the server (using ssh, scp or whatever tool you prefer to use to copy files to your ESX host).  Now extract the patches prior to running them.  To do so use the tar command, as follows: </p>
<blockquote><p>tar xvzf <NAMEOFPATCH>.tgz</p></blockquote>
<p>Once extracted, cd into the patch directory and then use the esxupdate command with the update flag and then the test flag, as follows:</p>
<blockquote><p>esxupdate &#8211;test update </p></blockquote>
<p>Provided that the update tests clean, run the update itself with the following command (still with a working directory inside the extracted tarball from a couple of steps ago): </p>
<blockquote><p>esxupdate update</p></blockquote>
<p>There are a couple of flags that can be used with esxupdate.  Chief amongst them are -noreboot (which doesn&#8217;t reboot after a given update), -d, -b and -l (which are used for working with bundles and depots).</p>
<p>If esxupdate fails with an error code these can be cross referenced using the ESX Patch Management Guide. </p>
<p>You can also run patches without copying the updates to the server manually, although this will require you to know the URL of the patch.  To do so, first locate the patch number that you would like to run.  Then, open outgoing ports on the server as follows:</p>
<blockquote><p>esxcfg-firewall -allowOutgoing</p></blockquote>
<p>Next, issue the esxupdate command with the path embedded:</p>
<blockquote><p>esxupdate &#8211;noreboot -r http://
<path of update> update</p></blockquote>
<p>Once you&#8217;ve looped through all the updates you are looking to run, lock down your ESX firewall again using the following command:</p>
<blockquote><p>esxcfg-firewall -blockOutgoing</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/esx-patch-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X: Show Only Active Apps in the Dock</title>
		<link>http://techjournal.318.com/scripts/mac-os-x-show-only-active-apps-in-the-dock/</link>
		<comments>http://techjournal.318.com/scripts/mac-os-x-show-only-active-apps-in-the-dock/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 15:23:01 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[defaults]]></category>
		<category><![CDATA[Dock]]></category>

		<guid isPermaLink="false">http://www.318.com/techjournal/?p=242</guid>
		<description><![CDATA[The dock should have the applications you commonly need to get to.  However, some simply want it to show them the applications that are open.  You can do this by running the following command: defaults write com.apple.dock static-only -bool TRUE Once run, reboot, or just restart your dock with the following command: killall Dock To [...]]]></description>
			<content:encoded><![CDATA[<p>The dock should have the applications you commonly need to get to.  However, some simply want it to show them the applications that are open.  You can do this by running the following command:</p>
<blockquote><p>defaults write com.apple.dock static-only -bool TRUE</p></blockquote>
<p>Once run, reboot, or just restart your dock with the following command:</p>
<blockquote><p>killall Dock</p></blockquote>
<p>To undo it:</p>
<blockquote><p>defaults write com.apple.dock static-only -bool FALSE</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/mac-os-x-show-only-active-apps-in-the-dock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kerberos Pruning Script</title>
		<link>http://techjournal.318.com/scripts/kerberos-pruning-script/</link>
		<comments>http://techjournal.318.com/scripts/kerberos-pruning-script/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 23:58:53 +0000</pubDate>
		<dc:creator>Charles Edge</dc:creator>
				<category><![CDATA[Directory Services]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.318.com/techjournal/?p=61</guid>
		<description><![CDATA[I have noticed that over time inconsistancies can arise where a machine entry will be deleted from LDAP but the relevant kerberos principals remain in the KDC. Here&#8217;s a small script that I wrote up to help prune out unwanted/stale kerberos principals. Obviously great care must be taken when running this script; if you delete [...]]]></description>
			<content:encoded><![CDATA[<p>I have noticed that over time inconsistancies can arise where a machine entry will be deleted from LDAP but the relevant kerberos principals remain in the KDC.  Here&#8217;s a small script that I wrote up to help prune out unwanted/stale kerberos principals.  Obviously great care must be taken when running this script; if you delete a principal that is still in use, things ARE going to break.  So, think before you type.  That being said, if you&#8217;re not interested in typing 20 delprinc commands, this script is for you.</p>
<p><strong>Usage:</strong>  %pruneKerb.sh <em>query</em></p>
<p>pruneKerb will then list all principals matching &#8220;<em>query</em>&#8221; (standard case-sensitive grep match)</p>
<p>It takes a single argument <em>query</em> and outputs a list of matching<br />
kerberos principals, presenting the user with the option to delete individual principals, all principles or simply print a list of matching principals. </p>
<p>Please read the scripts&#8217; comments for more information.</p>
<p><a href="http://www.318.com/techjournal/wp-content/uploads/2007/10/prunekerbsh.zip">pruneKerb.sh</a></p>
]]></content:encoded>
			<wfw:commentRss>http://techjournal.318.com/scripts/kerberos-pruning-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

