<?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>Cain Manor &#187; UNIX</title> <atom:link href="http://cainmanor.com/tag/unix/feed/" rel="self" type="application/rss+xml" /><link>http://cainmanor.com</link> <description>Your Guide To All Things Cain™</description> <lastBuildDate>Thu, 17 May 2012 19:43:34 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Great sed Resource</title><link>http://cainmanor.com/tech/great-sed-resource/</link> <comments>http://cainmanor.com/tech/great-sed-resource/#comments</comments> <pubDate>Wed, 06 May 2009 04:11:08 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[Tech]]></category> <category><![CDATA[UNIX]]></category><guid
isPermaLink="false">http://cainmanor.com/tech/great-sed-resource</guid> <description><![CDATA[sed Info]]></description> <content:encoded><![CDATA[<p><a
href="http://www.grymoire.com/Unix/Sed.html">sed</a> Info</p> ]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/great-sed-resource/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>My .conkyrc setup</title><link>http://cainmanor.com/personal/my-conkyrc-setup/</link> <comments>http://cainmanor.com/personal/my-conkyrc-setup/#comments</comments> <pubDate>Thu, 16 Apr 2009 02:31:29 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[Personal]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[conky]]></category><guid
isPermaLink="false">http://cainmanor.com/personal/my-conkyrc-setup</guid> <description><![CDATA[I had a very hard time getting conky to stay on my desktop.  If I clicked on the desktop, the program would disappear.  It seems that own_window yes needed to be own_window no My full ~/.conkyrc after the jump # set to yes if you want Conky to be forked in the background background yes [...]]]></description> <content:encoded><![CDATA[<p>I had a very hard time getting conky to stay on my desktop.  If I clicked on the desktop, the program would disappear.  It seems that</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">own_window <span style="color: #c20cb9; font-weight: bold;">yes</span></pre></div></div><p>needed to be</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">own_window no</pre></div></div><p>My full ~/.conkyrc after the jump<br
/> <span
id="more-551"></span></p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># set to yes if you want Conky to be forked in the background</span>
background <span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Use Xft?</span>
use_xft <span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Xft font when Xft is enabled</span>
<span style="color: #666666; font-style: italic;">#xftfont Trebuchet MS:size=10</span>
xftfont Sans:<span style="color: #007800;">size</span>=<span style="color: #000000;">8</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Text alpha when using Xft</span>
xftalpha <span style="color: #000000;">1</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Update interval in seconds</span>
update_interval <span style="color: #000000;">1.0</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># This is the number of times Conky will update before quitting.</span>
<span style="color: #666666; font-style: italic;"># Set to zero to run forever.</span>
total_run_times <span style="color: #000000;">0</span>
&nbsp;
own_window no
own_window_transparent <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #666666; font-style: italic;">#own_window_type override</span>
own_window_type desktop
<span style="color: #666666; font-style: italic;">#own_window_type normal #use this if you want a nice shadow to appear around conky</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># If own_window is yes, these window manager hints may be used</span>
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
&nbsp;
<span style="color: #666666; font-style: italic;"># Use double buffering (reduces flicker, may not work for everyone)</span>
double_buffer <span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Minimum size of text area</span>
minimum_size <span style="color: #000000;">200</span> <span style="color: #000000;">200</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Maximum width</span>
maximum_width <span style="color: #000000;">240</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Draw shades?</span>
draw_shades <span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Draw outlines?</span>
draw_outline no
&nbsp;
<span style="color: #666666; font-style: italic;"># Draw borders around text</span>
draw_borders no
&nbsp;
<span style="color: #666666; font-style: italic;"># Draw borders around graphs</span>
draw_graph_borders no
&nbsp;
<span style="color: #666666; font-style: italic;"># Stippled borders?</span>
<span style="color: #666666; font-style: italic;"># stippled_borders 8</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># border margins</span>
<span style="color: #666666; font-style: italic;"># border_margin 2</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># border width</span>
<span style="color: #666666; font-style: italic;"># border_width 1</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Default colors and also border colors</span>
default_color white
default_shade_color black
default_outline_color white
&nbsp;
<span style="color: #666666; font-style: italic;"># Text alignment, other possible values are commented</span>
<span style="color: #666666; font-style: italic;">#alignment top_left</span>
alignment top_right
<span style="color: #666666; font-style: italic;">#alignment bottom_left</span>
<span style="color: #666666; font-style: italic;">#alignment bottom_right</span>
<span style="color: #666666; font-style: italic;">#alignment none</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Gap between borders of screen and text</span>
<span style="color: #666666; font-style: italic;"># same thing as passing -x at command line</span>
gap_x <span style="color: #000000;">12</span>
<span style="color: #666666; font-style: italic;"># Originally gap_y 12</span>
gap_y <span style="color: #000000;">35</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Subtract file system buffers from used memory?</span>
no_buffers <span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># set to yes if you want all text to be in uppercase</span>
uppercase no
&nbsp;
<span style="color: #666666; font-style: italic;"># number of cpu samples to average</span>
<span style="color: #666666; font-style: italic;"># set to 1 to disable averaging</span>
cpu_avg_samples <span style="color: #000000;">2</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Force UTF8? note that UTF8 support required XFT</span>
override_utf8_locale no
&nbsp;
<span style="color: #666666; font-style: italic;">##############################################</span>
<span style="color: #666666; font-style: italic;">##############################################</span>
&nbsp;
TEXT
SYSTEM INFO:
<span style="color: #800000;">${hr}</span>
Host<span style="color: #007800;">$alignr</span><span style="color: #007800;">$nodename</span>
IP<span style="color: #007800;">$alignr</span><span style="color: #800000;">${addr eth1}</span>
Uptime<span style="color: #007800;">$alignr</span><span style="color: #007800;">$uptime</span>
RAM<span style="color: #007800;">$alignr</span><span style="color: #007800;">$mem</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$memmax</span>
Swap usage<span style="color: #007800;">$alignr</span><span style="color: #007800;">$swap</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$swapmax</span>
Disk usage<span style="color: #007800;">$alignr</span><span style="color: #800000;">${fs_used /}</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #800000;">${fs_size /}</span>
Processor<span style="color: #007800;">$alignr</span><span style="color: #800000;">${cpu cpu1}</span><span style="color: #000000; font-weight: bold;">%</span>
<span style="color: #800000;">${hr}</span>
<span style="color: #007800;">$color</span> Inbound: <span style="color: #800000;">${tcp_portmon 1 32767 count}</span>  Outbound: <span style="color: #800000;">${tcp_portmon 32768 61000 count}</span><span style="color: #800000;">${alignr}</span>ALL: <span style="color: #800000;">${tcp_portmon 1 65535 count}</span>
<span style="color: #800000;">${color #ddaa00}</span>Inbound Connection <span style="color: #800000;">${alignr}</span> Local Service<span style="color: #000000; font-weight: bold;">/</span>Port<span style="color: #007800;">$color</span>
 <span style="color: #800000;">${tcp_portmon 1 32767 rhost 0}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 1 32767 lservice 0}</span>
 <span style="color: #800000;">${tcp_portmon 1 32767 rhost 1}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 1 32767 lservice 1}</span>
 <span style="color: #800000;">${tcp_portmon 1 32767 rhost 2}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 1 32767 lservice 2}</span>
 <span style="color: #800000;">${tcp_portmon 1 32767 rhost 3}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 1 32767 lservice 3}</span>
 <span style="color: #800000;">${tcp_portmon 1 32767 rhost 4}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 1 32767 lservice 4}</span>
 <span style="color: #800000;">${tcp_portmon 1 32767 rhost 5}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 1 32767 lservice 5}</span>
<span style="color: #800000;">${color #ddaa00}</span>Outbound Connection <span style="color: #800000;">${alignr}</span> Remote Service<span style="color: #000000; font-weight: bold;">/</span>Port<span style="color: #007800;">$color</span>
 <span style="color: #800000;">${tcp_portmon 32768 61000 rhost 0}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 32768 61000 rservice 0}</span>
 <span style="color: #800000;">${tcp_portmon 32768 61000 rhost 1}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 32768 61000 rservice 1}</span>
 <span style="color: #800000;">${tcp_portmon 32768 61000 rhost 2}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 32768 61000 rservice 2}</span>
 <span style="color: #800000;">${tcp_portmon 32768 61000 rhost 3}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 32768 61000 rservice 3}</span>
 <span style="color: #800000;">${tcp_portmon 32768 61000 rhost 4}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 32768 61000 rservice 4}</span>
 <span style="color: #800000;">${tcp_portmon 32768 61000 rhost 5}</span> <span style="color: #800000;">${alignr}</span> <span style="color: #800000;">${tcp_portmon 32768 61000 rservice 5}</span></pre></div></div>]]></content:encoded> <wfw:commentRss>http://cainmanor.com/personal/my-conkyrc-setup/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Expand a range of numbers</title><link>http://cainmanor.com/tech/unix/expand-a-range-of-numbers/</link> <comments>http://cainmanor.com/tech/unix/expand-a-range-of-numbers/#comments</comments> <pubDate>Fri, 10 Apr 2009 23:01:07 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[OS-X]]></category> <category><![CDATA[UNIX]]></category><guid
isPermaLink="false">http://cainmanor.com/tech/unix/expand-a-range-of-numbers</guid> <description><![CDATA[I always &#8211; always &#8211; forget the seq command seq 1 5 1 2 3 4 5 It&#8217;s not in OS-X. However, you can do the same thing using the built in bash for X in &#123;1..5&#125; &#62; do &#62; echo $X &#62; done 1 2 3 4 5 You also have the very odd [...]]]></description> <content:encoded><![CDATA[<p>I always &#8211; always &#8211; forget the seq command<br
/> <span
id="more-543"></span></p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #000000;">1</span> <span style="color: #000000;">5</span>
<span style="color: #000000;">1</span>
<span style="color: #000000;">2</span>
<span style="color: #000000;">3</span>
<span style="color: #000000;">4</span>
<span style="color: #000000;">5</span></pre></div></div><p>It&#8217;s not in OS-X.  However, you can do the same thing using the built in bash</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> X <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">1</span>..<span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$X</span>
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #000000;">1</span>
<span style="color: #000000;">2</span>
<span style="color: #000000;">3</span>
<span style="color: #000000;">4</span>
<span style="color: #000000;">5</span></pre></div></div><p>You also have the very odd command jot.  The 5 below is the number of times to do something (0 is infinity.)  The 1 is where to start.  The third parameter (not shown) is where you should end.  It&#8217;s a funky command.</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">jot <span style="color: #000000;">5</span> <span style="color: #000000;">1</span>
<span style="color: #000000;">1</span>
<span style="color: #000000;">2</span>
<span style="color: #000000;">3</span>
<span style="color: #000000;">4</span>
<span style="color: #000000;">5</span></pre></div></div>]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/unix/expand-a-range-of-numbers/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>NMAP tip</title><link>http://cainmanor.com/tech/nmap-tip/</link> <comments>http://cainmanor.com/tech/nmap-tip/#comments</comments> <pubDate>Wed, 08 Apr 2009 20:03:05 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[OS-X]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[nmap]]></category><guid
isPermaLink="false">http://cainmanor.com/tech/nmap-tip</guid> <description><![CDATA[To scan an entire subnet for OS fingerprints and output to a grep-able file nmap -oG XXX.txt -O 10.10.XXX.0/24]]></description> <content:encoded><![CDATA[<p>To scan an entire subnet for OS fingerprints and output to a grep-able file</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nmap</span> <span style="color: #660033;">-oG</span> XXX.txt <span style="color: #660033;">-O</span> <span style="color: #000000;">10.10</span>.XXX.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span></pre></div></div>]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/nmap-tip/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 3/7 queries in 0.003 seconds using disk: basic
Object Caching 359/365 objects using disk: basic

Served from: cainmanor.com @ 2012-05-21 20:06:00 -->
