<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-22299226</atom:id><lastBuildDate>Thu, 10 Sep 2009 18:20:07 +0000</lastBuildDate><title>Cardboard Box</title><description>A place to store useful snippets of code, links and other such geek stuffs.</description><link>http://digital-penguin.com/</link><managingEditor>noreply@blogger.com (Don)</managingEditor><generator>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-5335504451910514502</guid><pubDate>Wed, 24 Jun 2009 17:12:00 +0000</pubDate><atom:updated>2009-06-24T13:13:32.784-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Geek</category><category domain='http://www.blogger.com/atom/ns#'>Mac</category><category domain='http://www.blogger.com/atom/ns#'>Linux</category><title>Examine x509 Certificate</title><description>I've noted uses of the "openssl" command before.  Here is another.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A quick way to examine a certificate in plain text.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;openssl x509 -text -in cert.pem&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-5335504451910514502?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2009/06/examine-x509-certificate.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-3599304607306714</guid><pubDate>Thu, 04 Jun 2009 15:21:00 +0000</pubDate><atom:updated>2009-06-04T11:34:50.567-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Geek</category><category domain='http://www.blogger.com/atom/ns#'>Mac</category><category domain='http://www.blogger.com/atom/ns#'>Linux</category><title>Convert Seperate Key/Cert Files to PFX</title><description>The reverse of the process of &lt;a href="http://www.digital-penguin.com/2008/12/convert-pfx-to-separate-keycert-files.html"&gt;extracting the key/certs from a PFX&lt;/a&gt; can be achieved via the following:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;openssl pkcs12 -export -in [certificate.crt] -inkey [private.key] -out [package.pfx]&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-3599304607306714?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2009/06/convert-seperate-keycert-files-to-pfx.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-8435575517860877064</guid><pubDate>Mon, 20 Apr 2009 13:46:00 +0000</pubDate><atom:updated>2009-04-20T09:57:01.487-04:00</atom:updated><title>Recover MySQL Root Password</title><description>To recover the password for the root account on a MySQL server use the following steps.  Essentially, it can be done by restarting the daemon without the grant tables.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;1. Stop the currently mysql daemon&lt;/div&gt;&lt;div&gt;# /etc/init.d/mysql stop&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Start the daemon without the grant tables&lt;/div&gt;&lt;div&gt;# mysqld_safe --skip-grant-tables &amp;amp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3. Login to mysql as the root user ... it will have a blank password&lt;/div&gt;&lt;div&gt;# mysql -u root&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4. Reset the root account password&lt;/div&gt;&lt;div&gt;mysql&gt; use mysql;&lt;/div&gt;&lt;div&gt;mysql&gt; update user set password=PASSWORD("NEW-PASSWORD") where User='root';&lt;/div&gt;&lt;div&gt;mysql&gt; flush privileges;&lt;/div&gt;&lt;div&gt;mysql&gt; quit&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;5. Stop &amp;amp; restart the daemon&lt;/div&gt;&lt;div&gt;# /etc/init.d/mysql stop&lt;/div&gt;&lt;div&gt;# /etc/init.d/mysql start&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I found this tip &lt;a href="http://www.cyberciti.biz/tips/recover-mysql-root-password.html"&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-8435575517860877064?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2009/04/recover-mysql-root-password.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-2455169071555431462</guid><pubDate>Fri, 10 Apr 2009 19:18:00 +0000</pubDate><atom:updated>2009-04-10T15:41:46.306-04:00</atom:updated><title>Content-Disposition Header</title><description>In situations where you want a file linked to from within a website to present a 'Save As' dialog rather than simply displaying the content ... you can inject a Content-Disposition header into the HTTP connection to prompt the browser to do so.  I recently had a situation where I was linking to an uncommon file extension through a reverse-proxy and Internet Explorer 6 wanted to include extra URI information in the 'Save As' file name.  You can force the saved file name with this header as well.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In PHP, the header is introduced as follows...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;header('Content-type: text/plain');&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;header('Content-Disposition: attachment; filename=myfile.ext');&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Additional information, and my source for this information, can be found &lt;a href="http://www.jtricks.com/bits/content_disposition.html"&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-2455169071555431462?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2009/04/content-disposition-header.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-5248841188762449633</guid><pubDate>Wed, 25 Mar 2009 15:31:00 +0000</pubDate><atom:updated>2009-03-25T11:41:01.035-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Mac</category><category domain='http://www.blogger.com/atom/ns#'>Linux</category><category domain='http://www.blogger.com/atom/ns#'>Shell</category><title>Upper To Lower To Upper Case Command Line</title><description>Nice trick to pipe command line data through to convert it's alpha characters to upper or lower case.  Most people dont even realize the 'tr' command exists on most linux/shell releases.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;From UPPER to lower: tr [:upper:] [:lower:]&lt;/div&gt;&lt;div&gt;From lower to UPPER: tr [:lower:] [:upper:]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Example: ls /directory | tr [:lower:] [:upper:] | sort&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-5248841188762449633?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2009/03/upper-to-lower-to-upper-case-command.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-9139328857941985881</guid><pubDate>Thu, 22 Jan 2009 21:44:00 +0000</pubDate><atom:updated>2009-01-22T16:47:50.746-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Linux</category><title>Mount ISO (.iso) In Linux</title><description>To mount an ISO (.iso) on a Linux system...&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;mount -t iso9660 -o ro,loop /path-to-file/file.iso /path-to-mount-point&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In many cases you will not have to specify the "-t iso9660" as most Linux distributions will auto detect that.  The "ro" in the "-o ro,loop" tell this system to mount it ISO read-only.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-9139328857941985881?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2009/01/mount-iso-iso-in-linux.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-5646963281385008314</guid><pubDate>Thu, 15 Jan 2009 15:57:00 +0000</pubDate><atom:updated>2009-01-15T11:01:15.499-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Mac</category><title>Enable Syntax Highlighting In Vim (vi), Mac OSX (Leopard)</title><description>To enable the syntax highlight feature of Vim on a Mac OSX (Leopard) system, edit the /usr/share/vim/vimrc file and add the "syntax on" config.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To do this from Terminal.app...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;sudo vi /usr/share/vim/vimrc&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;...add a new config, "syntax on" and then save and close the file.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-5646963281385008314?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2009/01/enable-syntax-highlighting-in-vim-vi.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-320271426619633317</guid><pubDate>Mon, 12 Jan 2009 20:35:00 +0000</pubDate><atom:updated>2009-01-12T15:35:37.121-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Geek</category><category domain='http://www.blogger.com/atom/ns#'>Windows</category><title>Remotely Reboot Windows XP</title><description>&lt;p style="clear: both"&gt;Using a remote desktop client to connect to a Windows XP box will not provide you with the option to reboot or restart the remote machine. To do this from the command line, open a command prompt (Start-&gt;Run-&gt;Cmd.exe) and use the command:&lt;/p&gt;&lt;blockquote style="clear: both"&gt;&lt;p&gt;shutdown -r -t 0&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="clear: both"&gt;...to open a gui interface to manage the reboot:&lt;/p&gt;&lt;blockquote style="clear: both"&gt;&lt;p&gt;shutdown -i&lt;/p&gt;&lt;/blockquote&gt;&lt;br class='final-break' style='clear: both' /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-320271426619633317?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2009/01/remotely-reboot-windows-xp.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-5295581178708255989</guid><pubDate>Sun, 28 Dec 2008 22:17:00 +0000</pubDate><atom:updated>2008-12-28T17:28:43.010-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Web</category><category domain='http://www.blogger.com/atom/ns#'>Geek</category><title>Web Based Design Tools</title><description>Some great online tools for a web designer or content creator.  I frequently use the &lt;a href="http://tools.dynamicdrive.com/imageoptimizer/"&gt;Image Optimizer&lt;/a&gt; to cheat some load time off my site's images.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://tools.dynamicdrive.com/"&gt;http://tools.dynamicdrive.com&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-5295581178708255989?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2008/12/web-based-design-tools.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-6815759318679842124</guid><pubDate>Sat, 27 Dec 2008 22:45:00 +0000</pubDate><atom:updated>2008-12-28T11:34:00.884-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Mac</category><title>Mac Keyboard Shortcuts For Symbols</title><description>Mac OSX keyboard shortcut combinations for many common symbols.&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;™ (trademark) = Option + 2&lt;/div&gt;&lt;div&gt;£ (pound) = Option + 3&lt;/div&gt;&lt;div&gt;¢ (cent) = Option + 4&lt;/div&gt;&lt;div&gt;∞ (infinity) = Option + 5&lt;/div&gt;&lt;div&gt;§ (section) = Option + 6&lt;/div&gt;&lt;div&gt;¶ (paragraph) = Option + 7&lt;/div&gt;&lt;div&gt;• (dot) = Option + 8&lt;/div&gt;&lt;div&gt;€ (euro) = Shift + Option + 2&lt;/div&gt;&lt;div&gt;° (degree) = Shift + Option + 8&lt;/div&gt;&lt;div&gt;¥ (yen) = Option + y&lt;/div&gt;&lt;div&gt;÷ (division) = Option + /&lt;/div&gt;&lt;div&gt;± (plus/minus) = Option + =&lt;/div&gt;&lt;div&gt;≥ (greater than or equal to) = Option + &gt;&lt;/div&gt;&lt;div&gt;≤ (less than or equal to) = Option + &lt;&lt;/div&gt;&lt;div&gt;√ (square root) = Option + v&lt;/div&gt;&lt;div&gt;π (pi) = Option + p&lt;/div&gt;&lt;div&gt;≈ (approx.) = Option + x&lt;/div&gt;&lt;div&gt;∆ (delta) = Option + j&lt;/div&gt;&lt;div&gt;∑ (sum) = Option + w&lt;/div&gt;&lt;div&gt;Ω (ohm) = Option + z&lt;/div&gt;&lt;div&gt;µ (micro) = Option + m&lt;/div&gt;&lt;div&gt;© (copyright) = Option + g&lt;/div&gt;&lt;div&gt;® (registered) = Option + r&lt;/div&gt;&lt;div&gt;† (dagger) = Option + t&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-6815759318679842124?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2008/12/mac-keyboard-shortcuts-for-symbols.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-2987816053335901690</guid><pubDate>Tue, 23 Dec 2008 17:24:00 +0000</pubDate><atom:updated>2008-12-28T17:28:42.211-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Geek</category><category domain='http://www.blogger.com/atom/ns#'>Mac</category><category domain='http://www.blogger.com/atom/ns#'>Linux</category><title>Convert PFX to Separate Key/Cert Files</title><description>Using openssl to extract key and certificate files from a .pfx&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To extract the private key...&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;openssl pkcs12 -in [name.pfx] &lt;filename.pfx&gt;-nocerts -out [private.key]&lt;private.key&gt;&lt;/private.key&gt;&lt;/filename.pfx&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To extract the certificate...&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;openssl pkcs12 -in [name.pfx]&lt;filename.pfx&gt; -clcerts -nokeys -out [certificate.crt]&lt;certificate.crt&gt;&lt;/certificate.crt&gt;&lt;/filename.pfx&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To decrypt the private key...&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;openssl rsa -in [private.key]&lt;private.key&gt; -out [decrypted.key]&lt;/private.key&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-2987816053335901690?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2008/12/convert-pfx-to-separate-keycert-files.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-1721321650153668385</guid><pubDate>Thu, 04 Dec 2008 18:46:00 +0000</pubDate><atom:updated>2008-12-28T17:28:42.212-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Mac</category><category domain='http://www.blogger.com/atom/ns#'>Linux</category><category domain='http://www.blogger.com/atom/ns#'>Shell</category><title>Strip Leading Zeros In Shell</title><description>Nice trick to strip leading zeros from an IP address at the command line.&lt;div&gt;(ie turn 002.203.017.001 to 2.203.17.1)&lt;div&gt;&lt;blockquote&gt;echo 002.203.017.001 | awk -F"." '{print int($1)"."int($2)"."int($3)"."int($4)}'&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-1721321650153668385?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2008/12/strip-leading-zeros-in-shell.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-7633439620823530573</guid><pubDate>Mon, 10 Nov 2008 15:00:00 +0000</pubDate><atom:updated>2008-12-28T17:28:42.214-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Geek</category><category domain='http://www.blogger.com/atom/ns#'>Mac</category><category domain='http://www.blogger.com/atom/ns#'>Linux</category><title>HTTPS PUT w/Basic Authentication Via Curl</title><description>Need to use a secure HTTP PUT over SSL using Basic Auth?&lt;br /&gt;&lt;div&gt;&lt;blockquote&gt;curl -T test.txt -u &lt;username&gt; https://[hostname]&lt;host&gt;/[uri]&lt;uri&gt;&lt;br /&gt;&lt;/uri&gt;&lt;/host&gt;&lt;/username&gt;&lt;/blockquote&gt;Add a -v to see that connection with verbose output.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-7633439620823530573?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2008/11/https-put-wbasic-authentication-via.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-8652910536625290534</guid><pubDate>Fri, 19 Sep 2008 14:45:00 +0000</pubDate><atom:updated>2008-09-19T10:49:09.290-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Mac</category><title>Flush DNS Cache, Mac OSX (Leopard)</title><description>As a DNS admin, I frequently need to flush my local DNS cache in order to confirm that a change I made on a DNS server worked.  To do this on a Mac OSX (Leopard), open your Terminal.app and run the following command...&lt;blockquote&gt;dscacheutil -flushcache&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-8652910536625290534?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2008/09/flush-dns-cache-mac-osx-leopard.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-9157249684807204582</guid><pubDate>Tue, 02 Sep 2008 17:22:00 +0000</pubDate><atom:updated>2009-09-10T14:20:07.876-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Mac</category><title>Home &amp; End Keys, Mac OSX (Leopard)</title><description>Using Terminal.app on Mac OSX (Leopard) to connect to an Linux system and work in &lt;a href="http://www.vim.org/"&gt;Vim&lt;/a&gt; is a bit of hassle when it comes to the Home and End keys.  To remap these such that the 'End' key will take you to the end of the current line and 'Home' the beginning, remap the keys in Terminal-&gt;Preferences-&gt;Settings-&gt;Keyboard to the following...&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;End: ctrl + [, [, 4, ~&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;it should look like this \033[1~&lt;/div&gt;&lt;div&gt;Home: ctrl + [, [, 1, ~&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;it should look like this \033[4~&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This tip and others were found &lt;a href="http://tech.inhelsinki.nl/gnu_developement_under_mac_os_x/"&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-9157249684807204582?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2008/09/home-end-keys-mac-osx-leopard.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-6653578433381055922</guid><pubDate>Tue, 15 Jan 2008 15:04:00 +0000</pubDate><atom:updated>2008-12-28T17:28:42.215-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Web</category><category domain='http://www.blogger.com/atom/ns#'>Geek</category><title>Web Based Color Scheme Generator</title><description>Whenever I'm building a web based tool, the aesthetic design part is usually what slows me down the most as it takes me a while to find the "look" I'm going for.  I was therefore happy to find a very simple web based color scheme generator that created color schemes that I liked ... &lt;a href="http://www.hypergurl.com/colormatch.php"&gt;http://www.hypergurl.com/colormatch.php&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-6653578433381055922?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2008/01/web-based-color-scheme-generator.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-22299226.post-114019334057730197</guid><pubDate>Fri, 17 Feb 2006 16:20:00 +0000</pubDate><atom:updated>2008-12-28T11:40:10.224-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Perl</category><title>URL Snippet (Perl)</title><description>Perl snippet of code to URL encode or decode a string.&lt;br /&gt;&lt;br /&gt;URL Encode:&lt;br /&gt;$str =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;&lt;br /&gt;&lt;br /&gt;URL Decode:&lt;br /&gt;$str =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22299226-114019334057730197?l=digital-penguin.com'/&gt;&lt;/div&gt;</description><link>http://digital-penguin.com/2006/02/url-snippet-perl.html</link><author>noreply@blogger.com (Don)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item></channel></rss>