<?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>D90 Tools &#38; Techniques &#187; Windows</title>
	<atom:link href="http://www.d90.us/toolbox/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.d90.us/toolbox</link>
	<description>So I can remember how I did stuff in the future...</description>
	<lastBuildDate>Fri, 26 Nov 2010 20:08:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Embedding Fonts in Word</title>
		<link>http://www.d90.us/toolbox/2010/11/26/embedding-fonts-in-word/</link>
		<comments>http://www.d90.us/toolbox/2010/11/26/embedding-fonts-in-word/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 19:45:30 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.d90.us/toolbox/?p=215</guid>
		<description><![CDATA[http://word.tips.net/Pages/T001611_Embedding_Fonts_In_a_Document.html http://www.howtogeek.com/howto/microsoft-office/embed-true-type-fonts-in-word-and-powerpoint-2007-documents/]]></description>
			<content:encoded><![CDATA[<p>http://word.tips.net/Pages/T001611_Embedding_Fonts_In_a_Document.html</p>
<p>http://www.howtogeek.com/howto/microsoft-office/embed-true-type-fonts-in-word-and-powerpoint-2007-documents/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.d90.us/toolbox/2010/11/26/embedding-fonts-in-word/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rootkit Hunters</title>
		<link>http://www.d90.us/toolbox/2010/02/10/rootkit-hunters/</link>
		<comments>http://www.d90.us/toolbox/2010/02/10/rootkit-hunters/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 18:53:23 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[General Security]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysadmin Tools]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.d90.us/toolbox/?p=182</guid>
		<description><![CDATA[A few resources for finding rootkits: Linux: Rootkit Hunter Chkrootkit Windows: RootkitRevealer]]></description>
			<content:encoded><![CDATA[<p>A few resources for finding rootkits:</p>
<p>Linux:<br />
<a href="www.rootkit.nl" target="_blank">Rootkit Hunter</a><br />
<a href="http://www.chkrootkit.org/" target="_self">Chkrootkit</a></p>
<p>Windows:<br />
<a href="http://technet.microsoft.com/en-us/sysinternals/bb897445.aspx" target="_blank">RootkitRevealer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.d90.us/toolbox/2010/02/10/rootkit-hunters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Favorite Commands&#8230;</title>
		<link>http://www.d90.us/toolbox/2007/10/05/my-favorite-commands/</link>
		<comments>http://www.d90.us/toolbox/2007/10/05/my-favorite-commands/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 21:58:00 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysadmin Tools]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.d90.us/toolbox/2007/10/05/my-favorite-commands/</guid>
		<description><![CDATA[Some of the command constructs I love but don&#8217;t always remember off the top of my head: Recursively search for a text string, and provide the file path and name. sudo find ./  -exec grep &#8220;http://litmus.mozilla.org&#8221; {} \ ls -l {} \; 2&#62; /dev/null Recursively add files to svn: svn status &#124; grep "\?" &#124; awk '{print [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Some of the command constructs I love but don&#8217;t always remember off the top of my head:</p></blockquote>
<p>Recursively search for a text string, and provide the file path and name.</p>
<blockquote><p>sudo find ./  -exec grep &#8220;<a href="http://litmus.mozilla.org/">http://litmus.mozilla.org</a>&#8221; {} \ ls -l {} \; 2&gt; /dev/null</p></blockquote>
<p>Recursively add files to svn:</p>
<blockquote><p><tt>svn status | grep "\?" | awk '{print $2}' | xargs svn add</tt></p></blockquote>
<p>Installing a Mac .dmg package from command line:</p>
<blockquote><p>hdiutil attach ./file.dmg</p>
<p>The output from hdiutil will include the mount point.  cd to that mount point and ls to find the mpkg name.  The run this command, substituting the file.mpkg as appropriate:</p>
<p>sudo installer -pkg ./file.mpkg -target /</p></blockquote>
<p>Flushing Swapfile without a reboot:<br />
You may need to stop services using memory (i.e. sudo /etc/init.d/httpd stop) to free up some memory if it&#8217;s completely maxed. Occassionally you still need to reboot, but if you want to try and just flush it:</p>
<blockquote><p>grep swap /etc/fstab<br />
(This will tell you the volume used for swap)<br />
sudo /sbin/swapoff /dev/[swapvol]<br />
sudo /sbin/swapon /dev/[swapvol]</p>
<p>This could take several minutes. It&#8217;s good if you have top open in another terminal &#8212; you can monitor the swap file decreasing in size!</p></blockquote>
<p>smbmount / cifsmount replacement:</p>
<p>Much more elegant&#8230;but I grew up with smbmount then cifsmount and thus keep forgetting the new syntax:</p>
<blockquote><p>mount -t cifs //192.168.218.1/shared /shared -o user=username</p></blockquote>
<p>Manually running logrotate:</p>
<blockquote><p>/usr/sbin/logrotate -f -s /var/lib/logrotate.status /etc/logrotate.d/[sitename.conf]</p></blockquote>
<p>MySQL:</p>
<blockquote><p>show processlist      &#8212; shows connections.<br />
show variables         &#8212; shows settings</p>
<p>MySQL stores it&#8217;s data in  /var/lib/mysql/  (your mileage may vary&#8230;)<br />
ibdata1 is the default data store for innodb databases.  If you need to shrink it, it&#8217;s a matter of backing up the databases, deleting ibdata1, and restoring the databases.</p>
<p>A good thing to do when dealing with large databases is to add innodb_file_per_table to my.cnf (under [mysqld]) which will create seperate data stores for each database.</p>
<p>Doing that, restarting mysqld, then running<br />
mysqloptimize –all-databases   (or mysqlcheck &#8211;optimize &#8211;all-databases -u [username] -p )<br />
will seperate the databases into seperate datastores (what MySQL calls &#8220;tablespaces&#8221; &#8212; these will be under the corresponding subdirectories in /var/lib/mysql ).</p></blockquote>
<p>Mount a DVD iso in Linux:</p>
<blockquote><p>sudo mount -o loop -t iso9660 ~/F-7-x86_64-DVD.iso /var/www/html/FC7</p></blockquote>
<p>Determining top ten largest files:</p>
<blockquote><p>du -sh * | sort -r -n | head -10</p></blockquote>
<p>Determing disk i/o activity:</p>
<blockquote>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: x-small; font-family: Arial;"><em>vmstat 1 360 </em>will poll every second for six minutes, and the “bi” will show blocks read in.<span> bo is blocks out.</span></span></p>
<p><span style="font-size: x-small; font-family: Arial;"> </span><span style="font-size: 8pt; font-family: 'Courier New';">procs &#8212;&#8212;&#8212;&#8211;memory&#8212;&#8212;&#8212;- &#8212;swap&#8211; &#8212;&#8211;io&#8212;- &#8211;system&#8211; &#8212;-cpu&#8212;-</span><span style="font-size: 8pt; font-family: 'Courier New';"><span> </span>r<span> </span>b<span> </span>swpd<span> </span>free<span> </span>buff <span> </span>cache<span> </span>si<span> </span>so<span> </span>bi<span> </span>bo<span> </span>in<span> </span>cs us sy id wa</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;"><span style="font-size: 8pt; font-family: 'Courier New';"><span> </span>1<span> </span>0<span> </span>69384 110944 209456 2458208<span> </span>0<span> </span>0<span> </span>0<span> </span>0<span> </span>179<span> </span>1235<span> </span>1<span> </span>0 99<span> </span>0<br />
</span><span style="font-size: 8pt; font-family: 'Courier New';"><span> </span>0<span> </span>0<span> </span>69384 110448 209456 2458208<span> </span>0<span> </span>0<span> </span>0<span> </span>16<span> </span>185<span> </span>406<span> </span>2<span> </span>0 98<span> </span>0</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;">
</blockquote>
<p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in;">
<p><span style="font-size: 8pt; font-family: 'Courier New';">Check if SSL is running:  openssl s_client -host (host) -port (port)<br />
If SSL is running, it will return the ssl certificate.  If not, it will return a handshake failure message.</span></p>
<p>Linux Last user logon:  lastlog</p>
<p>Failed logon attempts:  faillog  (needs settings enabled in /etc/pam.d/system-auth)</p>
<p>What ports are in use?</p>
<p style="padding-left: 30px;">netstat -tunap</p>
<p>SCP with inline find:<br />
This command uses find in a directory to locate the files changed in the past month:</p>
<p style="padding-left: 30px;">scp $(find /var/lib/awstats/* -mtime -1) <a href="mailto:mkivela@pcf5">host</a>:.<br />
or<br />
find /var/lib/awstats/* -ctime -1 | xargs -I{} scp {} host:.</p>
<p>OS X updates:  softwareupdate is the equivelant to yum or apt-get.</p>
<p>What modules are loaded?<br />
lsmod<br />
Remove a module<br />
rmmod<br />
Add a module<br />
modprobe</p>
<p>Sweet!</p>
<p>To view the tail end of a file interactively:</p>
<p>tail -f /path/to/filename</p>
<p><span style="font-size: 8pt; font-family: 'Courier New';">Placeholder</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.d90.us/toolbox/2007/10/05/my-favorite-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

