<?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 little stupid blog &#187; tips-n-tricks</title>
	<atom:link href="http://alittlestupid.com/category/tips-n-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://alittlestupid.com</link>
	<description>join the revolution... be a little stupid</description>
	<lastBuildDate>Thu, 14 Jul 2011 14:27:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Google plus profile</title>
		<link>http://alittlestupid.com/2011/07/14/google-plus-profile/</link>
		<comments>http://alittlestupid.com/2011/07/14/google-plus-profile/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 14:27:17 +0000</pubDate>
		<dc:creator>Juan Martinez</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[tips-n-tricks]]></category>

		<guid isPermaLink="false">http://alittlestupid.com/?p=538</guid>
		<description><![CDATA[After reading this blog post from Joerg Moellenkamp&#8217;s blog, I decided to &#8220;emulate&#8221; the way he linked to his Google+ Profile. I&#8217;m not sure how he did it but here is how I was able to accomplish the same thing using Apache&#8217;s .htaccess file and PHP. Like always, there are many ways to skin a [...]]]></description>
			<content:encoded><![CDATA[<p>After reading <a href="http://www.c0t0d0s0.org/archives/7380-My-Google-plus-profile.html">this blog post</a> from Joerg Moellenkamp&#8217;s <a href="http://www.c0t0d0s0.org">blog</a>, I decided to &#8220;emulate&#8221; the way he linked to his <a href="https://plus.google.com/">Google+</a> Profile.  I&#8217;m not sure how he did it but here is how I was able to accomplish the same thing using Apache&#8217;s .htaccess file and PHP.  Like always, there are many ways to skin a cat so your mileage may vary.</p>
<li>Since I already use <a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html">mod_rewrite</a>, I updated my $DOCUMENT_ROOT/<a href="http://httpd.apache.org/docs/current/howto/htaccess.html">.htaccess</a> file with the following code: </li>
<pre class="brush: plain; title: ; notranslate">
        RewriteRule ^(\+)(/.*)?$    $1.php
</pre>
<li>Then, I created a PHP script called <em>+.php</em> and placed it in my website&#8217;s $DOCUMENT_ROOT path with the following code:</li>
<pre class="brush: php; title: ; notranslate">
&lt; ?php
   header( 'Location: https://plus.google.com/101324321036313305633' ) ;
?&gt;
</pre>
<p>All you need to do is replace the URL in the PHP code with your own Google+ Profile page.  Since my website URL is alittlestupid.com, I would use <a href="http://alittlestupid.com/+">http://alittlestupid.com/+</a> and it will redirect you to my Google+ Profile page.  You would obviously have to use your own website&#8217;s URL plus the &#8220;+&#8221; sign.</p>
]]></content:encoded>
			<wfw:commentRss>http://alittlestupid.com/2011/07/14/google-plus-profile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find files and calculate total disk space usage</title>
		<link>http://alittlestupid.com/2009/04/01/find-files-and-calculate-total-disk-space-usage/</link>
		<comments>http://alittlestupid.com/2009/04/01/find-files-and-calculate-total-disk-space-usage/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 19:40:09 +0000</pubDate>
		<dc:creator>Juan Martinez</dc:creator>
				<category><![CDATA[how-to's]]></category>
		<category><![CDATA[tips-n-tricks]]></category>

		<guid isPermaLink="false">http://alittlestupid.com/?p=439</guid>
		<description><![CDATA[At work, I have a Solaris SVM Disk Suite device which houses many end user files. Over the past year, this file system has grown by over 75%. Initially, I was growing the file system as it reached capacity but one thing I noticed over the years as a sysadmin is that users will always [...]]]></description>
			<content:encoded><![CDATA[<p>At work, I have a Solaris SVM Disk Suite device which houses many end user files.  Over the past year, this file system has grown by over 75%.  Initially, I was growing the file system as it reached capacity but one thing I noticed over the years as a sysadmin is that users will always use the disk space if its there.  Business reasons restrict applying quotas to the file system so I decided to do some upfront grunt work instead.</p>
<p>A few du/find combinations later, I noticed that 80% of the disk space was being consumed by compressed pdf files in gzip format.  Furthermore, most of the pdf files were over a year old.  These files are certainly candidates for deletion but I will let the business decide that one.  </p>
<p>Here is how you can find all gzip&#8217;ed files in the current working directory which have not been modified in over a year and calculate the total disk space consumed.</p>
<blockquote><p>
[user@host ~] # uname -a<br />
SunOS host 5.10 Generic_127111-03 sun4u sparc SUNW,Sun-Fire-V890<br />
[user@host ~] # cd /some_filesystem/<br />
[user@host ~] # find . -name &#8216;*.pdf.gz&#8217; -type f -mtime +365 -ls | awk &#8216;{ sum += $7 } END { kb = sum / 1024; mb = kb / 1024; gb = mb / 1024; printf &#8220;%.0f MB (%.2fGB) disk space used\n&#8221;, mb, gb}&#8217;
</p></blockquote>
<p>Once you&#8217;ve discovered how much disk space those files are consuming, the next step is up to you but if you had too, you could just as easily remove those offending files.  I wont go into preaching about having properly backed up host.</p>
<p>Modify the find command to remove the files:</p>
<blockquote><p>
[user@host ~] # find . -name &#8216;*.pdf.gz&#8217; -type f -mtime +365 -exec rm -rf {} \;
</p></blockquote>
<p>Argument list too long?  Pipe stdout to xargs.</p>
<blockquote><p>
[user@host ~] # find . -name &#8216;*.pdf.gz&#8217; -type f -mtime +365 -print | xargs rm -rf
</p></blockquote>
<p>Like always, your mileage will vary.    </p>
]]></content:encoded>
			<wfw:commentRss>http://alittlestupid.com/2009/04/01/find-files-and-calculate-total-disk-space-usage/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to identify a Solaris non-global zone</title>
		<link>http://alittlestupid.com/2009/03/30/how-to-identify-a-solaris-non-global-zone/</link>
		<comments>http://alittlestupid.com/2009/03/30/how-to-identify-a-solaris-non-global-zone/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 20:22:06 +0000</pubDate>
		<dc:creator>Juan Martinez</dc:creator>
				<category><![CDATA[tips-n-tricks]]></category>

		<guid isPermaLink="false">http://alittlestupid.com/?p=411</guid>
		<description><![CDATA[It wouldn&#8217;t take much for an experienced Solaris Admin to figure out the server they have logged into is a Solaris Container aka Non-Global Zone, or &#8220;zone&#8221; for short. For those of us who don&#8217;t have years of experience and expertise in Solaris Administration under our belts, here is a list of things I have [...]]]></description>
			<content:encoded><![CDATA[<p>It wouldn&#8217;t take much for an experienced Solaris Admin to figure out the server they have logged into is a Solaris Container aka Non-Global Zone, or &#8220;zone&#8221; for short.  </p>
<p>For those of us who don&#8217;t have years of experience and expertise in Solaris Administration under our belts, here is a list of things I have come across which would help you identify if the server you are logging into is a container.  Like always, not all of these will apply to your situation or server configuration so, your mileage will vary.</p>
<p>The zonename command shows the hostname instead of printing &#8220;global&#8221;</p>
<blockquote><p>
non-global-zone# zonename<br />
non-global-zone
</p></blockquote>
<p>You can no longer use SVM commands</p>
<blockquote><p>
non-global-zone# metastat -p<br />
metastat: zonename: Volume administration unavailable within non-global zones
</p></blockquote>
<p>Show other non-global zones if you are not using IPMP</p>
<blockquote><p>
non-global-zone# arp -a | grep SPLA<br />
ce0    non-global-zone              255.255.255.255 SPLA     00:xx:xx:xx:xx:xx<br />
ce0    other-non-global-zone.fqdn 255.255.255.255 SPLA     00:xx:xx:xx:xx:xx<br />
ce0    theglobalzone.fqdn 255.255.255.255 SPLA     00:xx:xx:xx:xx:xx
</p></blockquote>
<p>If only using lofs devices, format returns nothing</p>
<blockquote><p>
non-global-zone# format<br />
Searching for disks&#8230;done<br />
No disks found!
</p></blockquote>
<p>lsof no longer works, see lsof <a href="http://www.mirrorservice.org/sites/vic.cc.purdue.edu/pub/tools/unix/lsof/FAQ">FAQ</a></p>
<blockquote><p>
non-global-zone# lsof<br />
lsof: can&#8217;t stat(/devices): No such file or directory
</p></blockquote>
<p>Sparse root zone does not have CLUSTER info</p>
<blockquote><p>
non-global-zone# ls -la /var/sadm/system/admin/CLUSTER<br />
/var/sadm/system/admin/CLUSTER: No such file or directory
</p></blockquote>
<p>A Solaris zone has a zsched process as apposed to a &#8220;sched&#8221;</p>
<blockquote><p>
non-global-zone# ps -ef | grep zsched
</p></blockquote>
<p>A Solaris zone will not show any global processes when running a ps with a &#8220;-Z&#8221; option</p>
<blockquote><p>
non-global-zone# ps -ef -Z | grep global<br />
non-global-zone    root 25463 29042   0 03:53:04 pts/60      0:00 grep global
</p></blockquote>
<p>Loopback file systems are displayed instead of actual devices under the &#8220;Filesystem&#8221; column.  Compare df output with /etc/vfstab entries.  Chances are they will not match if you are using lofs devices.</p>
<blockquote><p>
non-global-zone# df -h
</p></blockquote>
<p>ifconfig shows a virtual loopback and nic interface</p>
<blockquote><p>
non-global-zone# ifconfig -a<br />
lo0:2: flags=2001000849<up ,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1<br />
        inet 127.0.0.1 netmask ff000000<br />
ce0:2: flags=1000843</up><up ,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2<br />
        inet xxx.xxx.xxx.xxx netmask ffffff00 broadcast xxx.xxx.xxx.xxx<br />
</up></p></blockquote>
<p>mknod no longer works because it cant write to /dev/</p>
<blockquote><p>
non-global-zone# mknod /dev/testing c 4 64<br />
mknod: Not owner
</p></blockquote>
<p>zonecfg can only be run from the global zone</p>
<blockquote><p>
non-global-zone# zonecfg -z test<br />
zonecfg can only be run from the global zone.
</p></blockquote>
<p>zoneadm will only print you the non-global zone</p>
<blockquote><p>
non-global-zone# zoneadm list<br />
pivishk
</p></blockquote>
<p>zlogin can only be run from the global zone</p>
<blockquote><p>
non-global-zone# zlogin other-non-global-zone<br />
zlogin: &#8216;zlogin&#8217; may only be used from the global zone
</p></blockquote>
<p>prstat does not show you &#8220;global&#8221; zone usage, just hostname when using &#8220;-Z&#8221; option</p>
<blockquote><p>
non-global-zone# prstat -Z
</p></blockquote>
<p>Missing /etc/ethers</p>
<blockquote><p>
non-global-zone# ls -la /etc/ethers<br />
/etc/ethers: No such file or directory
</p></blockquote>
<p>dispadmin does not work</p>
<blockquote><p>
non-global-zone# dispadmin -d<br />
dispadmin: Operation not supported in non-global zones
</p></blockquote>
<blockquote><p>
non-global-zone# prtdiag<br />
prtdiag can only be run in the global zone
</p></blockquote>
<p>dumpadm no longer works</p>
<blockquote><p>
non-global-zone# dumpadm<br />
dumpadm: failed to open /dev/dump: No such file or directory
</p></blockquote>
<p>Again, this is not a complete list nor an end all be all list of things that do not work in a Solaris non-global zone.  However, what this list does do is aid in identification of a Solaris 10 zone.    </p>
<p>If you&#8217;ve discovered other things that do not work in a Solaris 10 zone but do in a global zone, please add a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://alittlestupid.com/2009/03/30/how-to-identify-a-solaris-non-global-zone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>&#8220;cd&#8221; My Way In Linux Using Bash Function</title>
		<link>http://alittlestupid.com/2007/04/19/cd-my-way-in-linux-using-bash-function/</link>
		<comments>http://alittlestupid.com/2007/04/19/cd-my-way-in-linux-using-bash-function/#comments</comments>
		<pubDate>Thu, 19 Apr 2007 08:37:26 +0000</pubDate>
		<dc:creator>Juan Martinez</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[tips-n-tricks]]></category>

		<guid isPermaLink="false">http://alittlestupid.com/stupid/2007/04/19/cd-my-way-in-linux-using-bash-function/</guid>
		<description><![CDATA[The &#8220;cd&#8221; binary that comes with most Linux based distros is good and all but this being Linux, I thought I would enhance its features a bit. I decided to create a simple bash function called &#8220;cd&#8221; which is sourced at startup by my .bashrc file so that every time I run the Linux command [...]]]></description>
			<content:encoded><![CDATA[<p>The <em>&#8220;cd&#8221;</em> binary that comes with most Linux based distros is good and all but this being Linux, I thought I would enhance its features a bit.  I decided to create a simple bash function called <em>&#8220;cd&#8221;</em> which is sourced at startup by my .bashrc file so that every time I run the Linux command <em>&#8220;cd&#8221;</em>, the present working directory, or <em>&#8220;pwd&#8221;</em> is printed as well.</p>
<p>&#8220;Why would I want such a dumb feature since I should already know where I am going if I am using the <em>&#8220;cd&#8221;</em> command&#8221;, you ask?  Glad you asked so I will tell you young grasshoppa&#8217;.  Currently on my system, when you change directories using the <em>&#8220;cd&#8221;</em> command, the present working directory is not printed to give you a nice hand holding feeling.  So, for example, when you run commands like <em>&#8220;cd ..&#8221;</em>, <em>&#8220;cd -&#8221;</em>, or <em>&#8220;cd ../../../&#8221;</em>, you are kinda left to guess where you might be.  In comes my <em>&#8220;cd&#8221;</em> function.</p>
<p><strong>NOTE:</strong> Its important the the function be named <em>&#8220;cd&#8221;</em> so if you intend to use it, copy and paste everything below to your $HOME/.bashrc file and source it.  How to do that is beyond the scope of this article.</p>
<p><code></p>
<pre lang="bash">
# $PWD is printed when $USER changes dirs
# just the way I like it -> jtnez
cd ()
{
     if [ "$1" = "-" ]; then
        builtin cd $1;
     elif [ $# = 0 ]; then
          builtin cd $HOME
          echo $PWD
     else
         builtin cd $1;
         echo $PWD
     fi
}
</pre>
<p></code></p>
<p>Thats it.  Now every time you use the <em>&#8220;cd&#8221;</em> command, you will be shown the present working directory.  If for some reason you want to use <em>&#8220;cd&#8221;</em> in a script and don&#8217;t want anything printed to screen, in your scripts, use:</p>
<pre>
\\cd /path/to/directory/here/
</pre>
<p>In bash, starting a command with a &#8220;\&#8221; (<em>backwards slash</em>) will remove any previous alias and use the systems binary without any of the whiz bang options we added above.  Its a small tip but hey, try it out!</p>
<p>Ok, but how do I install it?  No installation necessary, just append the contents of the above code to your $HOME/.bashrc file, log out of your shell then re-login.  Thats it!</p>
]]></content:encoded>
			<wfw:commentRss>http://alittlestupid.com/2007/04/19/cd-my-way-in-linux-using-bash-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Prevent Wifi Bandwith Moochers</title>
		<link>http://alittlestupid.com/2006/02/03/prevent-wifi-bandwith-moochers/</link>
		<comments>http://alittlestupid.com/2006/02/03/prevent-wifi-bandwith-moochers/#comments</comments>
		<pubDate>Fri, 03 Feb 2006 11:43:50 +0000</pubDate>
		<dc:creator>Juan Martinez</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[tips-n-tricks]]></category>

		<guid isPermaLink="false">http://alittlestupid.com/stupid/2006/02/03/prevent-wifi-bandwith-moochers/</guid>
		<description><![CDATA[If you have a Wifi network, chances are that an experienced individual can see your network from well beyond the range of your wireless router. You cant do much from preventing said determined individual from &#8220;seeing&#8221; your network but you can stop 99.9% of the population (the .1% being the NSA, hehe) from gaining access [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a Wifi network, chances are that an experienced individual can see your network from well beyond the range of your wireless router.  You cant do much from preventing said determined individual from <em>&#8220;seeing&#8221;</em> your network but you can stop 99.9% of the population <em>(the .1% being the <strong>NSA</strong>, hehe)</em> from gaining access to your wifi network and hogging up all your bandwidth.  For you poor souls out there that are still rocking the <a href="http://en.wikipedia.org/wiki/WEP" title="WEP">&#8216;WEP&#8217;</a> encryption, <a href="http://video.google.com/videoplay?docid=-1021256519470427962&#038;q=hacking" title="hack WEP in 10 minutes">here is a movie for you</a>&#8230;  It shows how an &#8220;experienced individual&#8221; can gain access to your WEP protected network in roughly 10 minutes!</p>
<p>If you don&#8217;t want these individuals hogging your bandwidth (to say the least), here are some general things you can do to bring some basic security measures to your shinny new wifi router/access point.</p>
<p><em><strong>DISCLAIMER:</strong>  I am by no means, a Wifi security expert.  These tips are those collected from my own trial and error and the experience gained while attempting to secure friends and families&#8217; home wireless networks.  Some of the things I list below might not be an option with your wifi router and/or hardware.  Like always, your mileage may vary.</em></p>
<p>Basic preventative measures you can take to stop <strong>&#8220;free loading bandwidth moochers&#8221;</strong> from abusing your wireless network.</p>
<ul>
<li>change your factory default admin password</li>
<li>turn off SSID broadcasting</li>
<li>change the default SSID name</li>
<li>turn on <a href="http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access" title="WPA">WPA</a> or at the very least enable WEP</li>
</ul>
<p><span id="more-78"></span></p>
<p>For the more paranoid out there, you can also:</p>
<ul>
<li>further filter access via MAC addresses</li>
<li>turn off DHCP and assign static IP&#8217;s</li>
<li>authenticate wireless users with <a href="http://www.freeradius.org/" title="http://www.FreeRADIUS.org">FreeRADIUS</a> (WPA Enterprise)</li>
<li>determine the correct placement of your wifi router for minimal outside leakage</li>
<li>turn wifi or hard wired network OFF during long periods of no activity</li>
<li>put a firewall between your LAN and access point</li>
</ul>
<p>Well, there you have it.  At the very least, know that its possible for a determined individual to gain unauthorized access to your wifi network when all you have protecting said network is WEP.  Hey, hope all they want to do is check their email&#8230; <img src='http://alittlestupid.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://alittlestupid.com/2006/02/03/prevent-wifi-bandwith-moochers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>nLite: Windows Installation Customizer</title>
		<link>http://alittlestupid.com/2006/01/10/nlite-windows-installation-customizer/</link>
		<comments>http://alittlestupid.com/2006/01/10/nlite-windows-installation-customizer/#comments</comments>
		<pubDate>Tue, 10 Jan 2006 08:46:26 +0000</pubDate>
		<dc:creator>Juan Martinez</dc:creator>
				<category><![CDATA[tips-n-tricks]]></category>

		<guid isPermaLink="false">http://alittlestupid.com/stupid/2006/01/10/nlite-windows-installation-customizer/</guid>
		<description><![CDATA[Normally I post tips and tricks about Linux but once in a while I make that leap into the MS Windows world. OK, without further ado, here is a tip for you Windows users out there. Have you ever wanted to create a custom Windows CD that had your name, product key, timezone and regional [...]]]></description>
			<content:encoded><![CDATA[<p>Normally I post tips and tricks about Linux but once in a while I make that leap into the MS Windows world.  OK, without further ado, here is a tip for you Windows users out there.</p>
<p>Have you ever wanted to create a custom Windows CD that had your name, product key, timezone and regional settings &#8220;<a title="Definition: automagically" style="cursor: url('chrome://targetalert/content/skin/external.png')" href="http://catb.org/~esr/jargon/html/A/automagically.html">automagically</a>&#8221; set during the installation? Wouldn&#8217;t it be nice to have the latest service packs automatically <a title="Wikipedia Definiton: slipstream" style="cursor: url('chrome://targetalert/content/skin/external.png')" href="http://en.wikipedia.org/wiki/Slipstream_%28computing%29">slipstreamed</a> as well as have all the updated drivers for your system, registry tweaks, and even have a patched <a title="UXTheme.dll" style="cursor: url('chrome://targetalert/content/skin/external.png')" href="http://www.neowin.net/forum/index.php?showtopic=140707">UXTheme.dll</a> without doing a thing?</p>
<p>Do you waste countless hours tweaking the default Windows configuration after you do a clean OS install?  If so, then nLite (http://www.nliteos.com/index.html) is what you are looking for.  (<em><strong>NOTE:</strong> I apologize for sounding like an AD.  Hey, at the very least, using this tool can and will save you some time.  jtnez</em>)</p>
<p>I have personally used this tool to customize a Windows XP installation that included everything mentioned above plus removing some built in software like MSN Messenger, MS Paint and other un-used games and themes.  You can even add small apps that you would normally install anyway after a re-installation of windows.  The number and size of the apps will obviously depend on how much space you have on your CD-R.</p>
<p><span id="more-77"></span></p>
<p>Generally, I include things like a notepad replacement tool (<a title="Notepad++" style="cursor: url('chrome://targetalert/content/skin/external.png')" href="http://notepad-plus.sourceforge.net/">Notepad++</a>), a image viewing tool (<a title="Irfanview" href="http://alittlestupid.com/stupid/wp-admin/www.irfanview.com/">Irfanview</a>), my IM app (<a title="Trillian" style="cursor: url('chrome://targetalert/content/skin/external.png')" href="http://trillian.cc">Trillian</a>), my firewall/AV (<a title="ZoneAlarm Suite" style="cursor: url('chrome://targetalert/content/skin/external.png')" href="http://www.zonelabs.com">ZoneAlarm Suite</a>), and my archiving tools (<a title="WinRAR" style="cursor: url('chrome://targetalert/content/skin/external.png')" href="http://www.rarlab.com/">WinRAR</a>).  Its nice to have all these apps stored in your Windows OS CD as apposed to having to load several CD&#8217;s.  Keep in mind that the additional apps that I add are not integrated into the OS installation like they would if you were to slipstream a service pack or hotfix.  They are simply the setup/installation files I would normally run after the default Windows install anyway.  Again, its just  another time saver.</p>
<p>Keep in mind that if you lose said CD, it will have your Windows CD key built right in if you choose that option during the creation of the custom Windows CD.  Meaning, anyone can then install Windows with your license since they will never be prompt to enter the key.  Keep that in mind.</p>
<p>Give it a shot, its a sweet tool for all you Windows phreaks out there.  <img src='http://alittlestupid.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://alittlestupid.com/2006/01/10/nlite-windows-installation-customizer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IVR Cheat Sheet</title>
		<link>http://alittlestupid.com/2005/11/29/ivr-cheat-sheet/</link>
		<comments>http://alittlestupid.com/2005/11/29/ivr-cheat-sheet/#comments</comments>
		<pubDate>Tue, 29 Nov 2005 05:57:24 +0000</pubDate>
		<dc:creator>Juan Martinez</dc:creator>
				<category><![CDATA[how-to's]]></category>
		<category><![CDATA[tips-n-tricks]]></category>

		<guid isPermaLink="false">http://alittlestupid.com/stupid/wordpress/?p=73</guid>
		<description><![CDATA[Is it just me or do you hate it when you call the phone company, cable provider, or a big wig service shop and get a dumb computer answering the phone? With older systems, entering a simple &#8220;0&#8243; would of immediately transfered you to a human. Not so with most modern automated answering systems. Instead, [...]]]></description>
			<content:encoded><![CDATA[<p>Is it just me or do you hate it when you call the phone company, cable provider, or a big wig service shop and get a dumb computer answering the phone?  With older systems, entering a simple &#8220;0&#8243; would of immediately transfered you to a human.  Not so with most modern automated answering systems.  Instead, you are greeted with a sometimes annoying computer attempting to sound like a human.  Well,  Paul English over at <a href="http://paulenglish.com/" title="http://paulenglish.com/">http://paulenglish.com/</a> has a nice little &#8220;cheat sheet&#8221; that lists all sorts of methods which enable you to speak to a live person, outsourced or not&#8230; <img src='http://alittlestupid.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p> Whats an &#8220;IVR&#8221;?  According to Paul English:</p>
<blockquote><p><code>
<p>
The term IVR stands for "Interactive Voice Response", the fancy name for annoying computers who answer most phones these days.
</p>
<p></code></p></blockquote>
<p>Go to the <a href="http://paulenglish.com/ivr/" title="IVR Cheat Sheet">&#8220;IVR Cheat Sheet&#8221;</a> and stick it to the man!</p>
]]></content:encoded>
			<wfw:commentRss>http://alittlestupid.com/2005/11/29/ivr-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>View SSL cert from terminal</title>
		<link>http://alittlestupid.com/2005/11/23/view-ssl-cert-from-terminal/</link>
		<comments>http://alittlestupid.com/2005/11/23/view-ssl-cert-from-terminal/#comments</comments>
		<pubDate>Wed, 23 Nov 2005 18:53:32 +0000</pubDate>
		<dc:creator>Juan Martinez</dc:creator>
				<category><![CDATA[tips-n-tricks]]></category>

		<guid isPermaLink="false">http://alittlestupid.com/stupid/wordpress/?p=35</guid>
		<description><![CDATA[Does your job or your natural curiosity require you to see a sites&#8217; SSL certificate or other web server TLS info? Here a couple nifty ways to view the secure cert for a webserver and POP3 server from the Linux command line. Again, I am assuming that you are familiar with Linux and have the [...]]]></description>
			<content:encoded><![CDATA[<p>Does your job or your natural curiosity require you to see a sites&#8217; <a href="http://en.wikipedia.org/wiki/Secure_Sockets_Layer" title="Wikipedia's definition of SSL">SSL</a> certificate or other web server TLS info?  Here a couple nifty ways to view the secure cert for a webserver and POP3 server from the Linux command line.  Again, I am assuming that you are familiar with Linux and have the openssl binary installed on your system.  Please read the openssl(1) manpage for futher options.</p>
<ul>
<li>
<p>Web server certificate information on port 443 for www.sourceforge.net:</p>
<blockquote><p><code>
<pre>
]$ openssl s_client -connect www.sourceforge.net:443
</pre>
<p></code></p></blockquote>
<p><span id="more-35"></span><br />
Subsitute <em>www.sourceforge.net</em> with any domain of your choice.  While you are at it, script it:<br />
<viewcode src="bash/get-cert.txt" link="yes" /></p>
<p>Run it:</p>
<blockquote><p><code>
<pre>
]$ ./get-cert.sh www.sourceforge.net
</pre>
<p></code></p></blockquote>
<p>Sample output:</p>
<blockquote><p><code>
<pre>
-----BEGIN CERTIFICATE-----
MIIDdDCCAt2gAwIBAgIDATMOMA0GCSqGSIb3DQEBBAUAMFoxCzAJBgNVBAYTAlVT
MRwwGgYDVQQKExNFcXVpZmF4IFNlY3VyZSBJbmMuMS0wKwYDVQQDEyRFcXVpZmF4
IFNlY3VyZSBHbG9iYWwgZUJ1c2luZXNzIENBLTEwHhcNMDUwMzAzMDAwOTA0WhcN
MDYwNTAyMjMwOTA0WjCB4zELMAkGA1UEBhMCVVMxGDAWBgNVBAoTD3NvdXJjZWZv
cmdlLm5ldDE8MDoGA1UECxMzaHR0cHM6Ly9zZXJ2aWNlcy5jaG9pY2Vwb2ludC5u
ZXQvZ2V0LmpzcD8zNzU0NTA4MDU2MTEwLwYDVQQLEyhTZWUgd3d3Lmdlb3RydXN0
LmNvbS9yZXNvdXJjZXMvY3BzIChjKTA0MS8wLQYDVQQLEyZEb21haW4gQ29udHJv
bCBWYWxpZGF0ZWQgLSBRdWlja1NTTChSKTEYMBYGA1UEAxMPc291cmNlZm9yZ2Uu
bmV0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDaOEprZSkzvgVLV7O81A6w
wUH0w6ZwPO7K3zADrbELXXVWIU17WGTLcuhbCTohF45d+qopCULbE0UwY+Vk2mt+
2dXe97t1AgnCnO1OfYqD0qcBjAkjqyxIZwqCaKvpH/I6+hiyXrrMc/x/wNPL+OQv
v8Ycty+C2zO6gwkxvhbCowIDAQABo4G9MIG6MA4GA1UdDwEB/wQEAwIE8DAdBgNV
HQ4EFgQU5+MABGMoIzyCZFts+vmATbqv704wOwYDVR0fBDQwMjAwoC6gLIYqaHR0
cDovL2NybC5nZW90cnVzdC5jb20vY3Jscy9nbG9iYWxjYTEuY3JsMB8GA1UdIwQY
MBaAFL6ooHRyUGtEt8kj2Puo/7NXa2hsMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggr
BgEFBQcDAjAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEBBAUAA4GBAKvJjpcpbPML
HzUzv4aOYaOgo+tQiLlSgoJXNXJdVCugZ6OQF/a/YKMatVIwImVUib8AgRxxAl6L
UCvL5c+uCgVSV2XNcn9Dc2+0Lr2YYFt5V3+pPfqe2MfrqAmd23Lf2lz+O8uO6HKD
BZK/N1kkMOo0WQnoz8OMurkae0grEfHS
-----END CERTIFICATE-----
</pre>
<p></code></p></blockquote>
<p><strong>NOTE:</strong> Hit <em>&#8220;enter&#8221;</em> again after you run the script to disconect from the webserver.</p>
</li>
<li>
<p>POP3 server certificate information for mail.comcast.net on port 995: </p>
<blockquote><p><code>
<pre>
]$ openssl s_client -connect mail.comcast.net:995 -showcerts
</pre>
<p></code></p></blockquote>
<p><strong>Note:</strong> If you run the command above, you will be connected to the mail server.  To exit, type <em>&#8220;quit&#8221;</em>.</p>
</li>
</ul>
<p>Why do you even need to know the cert information?  Come on, you are asking me?  Make up a reason that satisfies you and live with it <img src='http://alittlestupid.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://alittlestupid.com/2005/11/23/view-ssl-cert-from-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unique Temporary Filename</title>
		<link>http://alittlestupid.com/2005/11/08/unique-temporary-filename/</link>
		<comments>http://alittlestupid.com/2005/11/08/unique-temporary-filename/#comments</comments>
		<pubDate>Tue, 08 Nov 2005 06:35:42 +0000</pubDate>
		<dc:creator>Juan Martinez</dc:creator>
				<category><![CDATA[tips-n-tricks]]></category>

		<guid isPermaLink="false">http://alittlestupid.com/stupid/wordpress/?p=68</guid>
		<description><![CDATA[If you are a Linux/Unix Systems Administrator you have had to create a shell script to do some mundane and repetitive task at one point in your career, for one reason or another. In my personal experience, I have had to create several such shell scripts to accomplish a wide variety of tasks. One thing [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a Linux/Unix Systems Administrator you have had to create a shell script to do some mundane and repetitive task at one point in your career, for one reason or another.  In my personal experience, I have had to create several such shell scripts to accomplish a wide variety of tasks.  One thing that I have found to be common among all my shell scripts is the need for unique, yet temporary filename that can be disposed of without a care in the world.  Creating a unique filename is very important since you run the risk of erasing and/or appending output to an existing file on your system.  Obviously this can have adverse affects and its not what you want to do.  </p>
<p>If you are you a <a href="http://www.tldp.org/LDP/abs/html/" title="Advanced Bash-Scripting Guide">shell scripter</a> and you need to create a random, yet unique temporary filename for one of your scripts, here is technique on how I create a random temporary file on my system.  Keep in mind that your results will vary since many of the techniques discussed here make use of system wide variables set at startup by your machine.  I assume that you have basic knowledge of Linux, shell scripts, and how to execute one.<br />On to the code:</p>
<blockquote><p><code>
<pre>

TEMP_FILE=$HOME/.$(basename $0).$$.$RANDOM
</pre>
<p></code></p></blockquote>
<p><span id="more-68"></span></p>
<p>A working shell script using the example code above:</p>
<p><viewcode src="bash/unique_file.txt" link="yes" /></p>
<p>A sample output would yield something similar, but not exactly, too:</p>
<blockquote><p><code>
<pre>

]# ./unique_file
/home/user/.unique_file.16090.16402

]# ./unique_file
/home/user/.unique_file.16172.24316

]# ./unique_file
/home/user/.unique_file.16287.26720

etc...
</pre>
<p></code></p></blockquote>
<p>Now lets examine the way we used to create the file.  Again, <a href="http://en.wikipedia.org/wiki/YMMV" title="Wikipedia definition of YMWV">YMWV</a> on your system <img src='http://alittlestupid.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />    </p>
<ul>
<li>Name the Bash shell variable:<br />
<blockquote><p><code>
<pre>
TEMP_FILE=
</pre>
<p></code></p></blockquote>
</li>
<li>Set the path to the location of the TEMP_FILE using our <em>$HOME</em> environment variable:<br />
<blockquote><p><code>
<pre>
$HOME/
</pre>
<p></code></p></blockquote>
<p>This will result in <em>/home/user/</em></li>
<li>Create a hidden file using the output of the name of the script<br />
<blockquote><p><code>
<pre>
.$(basename $0)
</pre>
<p></code></p></blockquote>
<p>This will result in <em>.unique_file</em></li>
<li>Use the shell&#8217;s current process ID using the $$ parameter<br />
<blockquote><p><code>
<pre>
.$$
</pre>
<p></code></p></blockquote>
<p>In my case, this will result in <em>.16287</em></li>
<li>Add a completely random number  in case your program needs more than one temporary file<br />
<blockquote><p><code>
<pre>
.$RANDOM
</pre>
<p></code></p></blockquote>
</li>
<p>Again, in my case, this will result in <em>.26720</em>
<li>
</li>
</ul>
<p>You can also use <em>date&#8217;s +</em> option to add even more randomness/uniqueness to the filename:</p>
<blockquote><p><code>
<pre>
TEMP_FILE=$HOME/.$(basename $0).$$.$RANDOM.$(date +%Y%m%d%H%M%S)
</pre>
<p></code></p></blockquote>
<p>Sample output using the above code:</p>
<blockquote><p><code>
<pre>
]# ./unique_file
/home/user/.unique_file.16357.2586.20001218010832
</pre>
<p></code></p></blockquote>
<p>Look at the man page for <em>date</em>.  I&#8217;m too lazy to explain that one <img src='http://alittlestupid.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>To some extent this might be overkill but I can guarantee a completely unique and random file name 99.99999~% of the time if you use my method above.  Happy shell scripting!</p>
]]></content:encoded>
			<wfw:commentRss>http://alittlestupid.com/2005/11/08/unique-temporary-filename/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>My Portable USB Programs</title>
		<link>http://alittlestupid.com/2005/10/13/my-portable-usb-programs/</link>
		<comments>http://alittlestupid.com/2005/10/13/my-portable-usb-programs/#comments</comments>
		<pubDate>Thu, 13 Oct 2005 06:31:48 +0000</pubDate>
		<dc:creator>Juan Martinez</dc:creator>
				<category><![CDATA[how-to's]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[tips-n-tricks]]></category>

		<guid isPermaLink="false">http://alittlestupid.com/stupid/wordpress/?p=65</guid>
		<description><![CDATA[This post was sorta inspired from a couple recent questions I was asked by my good buddy Stevie-D. Well, I guess I should say the his questions made me get off my &#8220;fourth point of contact&#8221; and finally create the post that I have been meaning to do all along. A post about all the [...]]]></description>
			<content:encoded><![CDATA[<p>This post was sorta inspired from a couple recent questions I was asked by my good buddy <a href="http://stephendurham.com" title="Stevie-D's site">Stevie-D</a>.  Well, I guess I should say the his questions made me get off my <a href="http://www.doubletongued.org/index.php/dictionary/fourth_point_of_contact/" title="Definition for 'fourth point of contact'">&#8220;fourth point of contact&#8221;</a> and finally create the post that I have been meaning to do all along.  A post about all the portable USB apps that I use on my own USB stick!</p>
<p>What does this do?  Well, it allows me to carry a fully customized computing environment to any PC running <a href="http://www.microsoft.com/" title="Microsoft Windows">M$ Windoze</a>.  Meaning, I can take my USB stick with me, slap it into an available USB port on the host PC, run all my apps, and have the same friendly and familiar desktop where ever I so choose.</p>
<p>With this post, I not only help my buddy Stevie-D but if I ever loose my USB drive, I can come back and use this post as a reference in an attempt to recreate what I once had.  Granted, I would be out a USB drive but&#8230;  Well, without further ado,  here is an ever growing list of all the portable USB apps that have come to call my &#8220;512Meg <a href="http://www.sandisk.com/retail/cruzer-mini.asp" title="Sandisk Cruzer Mini">Sandisk Cruzer Mini</a>&#8221; home.    </p>
<p>For me, these are the &#8220;must haves&#8230;&#8221;</p>
<ul>
<li>Web Browser: <a href="http://johnhaller.com/jh/mozilla/portable_firefox/" title="Portable Firefox">Portable Firefox</a></li>
<li>IM Client: <a href="http://www.ceruleanstudios.com/" title="Trillian">Trillian</a> with help from <a href="http://www.trilliananywhere.com/" title="Trillian Anywhere">Trillian Anywhere</a></li>
<li>Desktop Replacement: <a href="http://bb4win.sourceforge.net/bblean/" title="bbLean">bbLean</a></li>
<li>Clipboard Manager: <a href="http://www.nakka.com/soft/clcl/index_eng.html" title="CLCL">CLCL</a></li>
<li>File Management: <a href="http://zabkat.com/" title="xplorer2">xplorer2</a></li>
<li>SSH Client: <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" title="PuTTY">PuTTY</a></li>
<li>SCP Client: <a href="http://winscp.net/" title="WinSCP">WinSCP</a>
    </li>
<li>Application Launcher: <a href="http://www.pegtop.de/start/" title="PStart">PStart</a><br /><em>More on this jewel below.</em></li>
</ul>
<p><span id="more-65"></span></p>
<p>The &#8220;Nice to have&#8230;&#8221; list</p>
<ul>
<li>Sticky Notes Replacement: <a href="http://atnotes.free.fr/" title="ATnotes">ATnotes</a></li>
<li>Password Keeper: <a href="http://keepass.sourceforge.net/" title="KeePass">KeePass</a> </li>
<li>Office Suite: <a href="http://johnhaller.com/jh/useful_stuff/portable_openoffice/" title="Portable OpenOffice">Portable OpenOffice</a></li>
<li>Graphic Viewer: <a href="http://www.irfanview.com/">IrfanView</a></li>
<li>FTP Client: <a href="http://filezilla.sourceforge.net/" title="FileZilla">FileZilla</a> </li>
<li>Notepad Replacement: <a href="http://notepad-plus.sourceforge.net/" title="Notepad++">Notepad++</a></li>
<li>POP3 Client: <a href="http://www.nakka.com/soft/npop/index_eng.html" title="nPOP">nPOP</a></li>
<li>Port Monitor: <a href="http://www.sysinternals.com/Utilities/TcpView.html" title="TCPView">TCPView</a></li>
<li>Remote Desktop: <a href="http://www.tightvnc.com/" title="TightVNC">TightVNC</a></li>
<li>UNIX Tools: <a href="http://thinstall.com/help/?unixtooldemo.htm" title="UNIX Tools">UNIX Tools</a></li>
<li>Text Editor: <a href="http://www.winvi.de/en/" title="WinVi">WinVi</a></li>
<li>Audio Player: <a href="http://www.un4seen.com/xmplay.html" title="XMPlay">XMPlay</a></li>
<li>CD Ripper: <a href="http://cdexos.sourceforge.net" title="CDex">CDex</a></li>
<li>PDF Reader: <a href="http://www.foxitsoftware.com/" title="Foxit PDF Reader">Foxit PDF Reader</a></li>
<li>Start up monitor: <a href="http://mlin.net/StartupCPL.shtml" title="Startup Control Panel">Startup Control Panel</a></li>
</ul>
<p>All the apps listed above have their own installation procedure to get them installed on your portable media USB drive.  However, most come packaged as a <em>.zip</em> file where all you would have to do is extract the contents to a directory of your choice (prefferably on your USB drive <img src='http://alittlestupid.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) and you&#8217;re done!  When that is not the case, follow the instructions detailed in the respective apps&#8217; website or readme files.  I can personally attest that all the apps I have listed here run perfectly fine from my USB drive.</p>
<p>You might also want to consider some of these apps.  I don&#8217;t use them for one reason or another but you might think otherwise.</p>
<ul>
<li>PIMs/organizers: <a href="http://www.essentialpim.com/" title="EssentialPIM">EssentialPIM</a>, <a href="http://www.mozilla.org/projects/calendar/sunbird.html" title="Sunbird">Sunbird</a></li>
<li>Email: <a href="http://jbmail.pc-tools.net/"title="JBMail">JBMail</a> , <a href="http://johnhaller.com/jh/mozilla/portable_thunderbird/" title="Portable Thunderbird">Portable Thunderbird</a>, <a href="http://www.pocosystems.com" title="EmailVoyager">EmailVoyager</a>, <a href="http://www.pocosystems.com" title="PocoMail PE">PocoMail PE</a></li>
<li>Web Authoring: <a href="http://www.nvu.com/" title="NVU">NVU</a></li>
<li>Chat/IM: <a href="http://www.miranda-im.org/" title="MirandaIM">MirandaIM</a></li>
</ul>
<p>Here is a list of sites where you can get more software to run on your USB drive:</p>
<ul>
<li><a href="http://loosewire.typepad.com/blog/2005/03/a_directory_of_.html" title="loose wire blog">loose wire blog</a></li>
<li><a href="http://www.no-install.com/" title="no-install">no-install website</a></li>
<li><a href="http://www.portablefreeware.com/" title="Portable Freeware Collection">Portable Freeware Collection</a></li>
</ul>
<p>So when it comes to launching these portable apps, what do you do?  Use, what I believe, is an essential tool for &#8220;<em>happy USB portable app&#8217;ing</em> called <a href="http://www.pegtop.de/start/" title="PStart">PStart</a>.  When launched, it can be configured to launch any app from a USB drive and even apps installed on your local PC.  On my USB drive, I have all my apps in a root directory called &#8220;Portable Apps&#8221; with each <em>installed</em> app having its own sub-directory.  PStart unifies all these sub-directories and creates a one stop launch pad instead of having to tediously navigate into each sub-directory just to launch an app.  Anyway, once you use it, you wont go back!  </p>
<p>Thats it for now, enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://alittlestupid.com/2005/10/13/my-portable-usb-programs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.483 seconds -->

