<?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>Tech Cheat</title>
	<atom:link href="http://techcheat.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://techcheat.com</link>
	<description>We got your cheat sheets right here</description>
	<lastBuildDate>Sat, 07 Nov 2009 17:46:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wireless Channel Listing</title>
		<link>http://techcheat.com/2009/01/17/wireless-channel-listing/</link>
		<comments>http://techcheat.com/2009/01/17/wireless-channel-listing/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 02:43:41 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://techcheat.com/?p=39</guid>
		<description><![CDATA[Channel   1 : 2412  Mhz 802.11B/G
Channel   2 : 2417  Mhz 802.11B/G
Channel   3 : 2422  Mhz 802.11B/G
Channel   4 : 2427  Mhz 802.11B/G
Channel   5 : 2432  Mhz 802.11B/G
Channel   6 : 2437  Mhz 802.11B/G
Channel   7 : 2442  [...]]]></description>
			<content:encoded><![CDATA[<p>Channel   1 : 2412  Mhz 802.11B/G<br />
Channel   2 : 2417  Mhz 802.11B/G<br />
Channel   3 : 2422  Mhz 802.11B/G<br />
Channel   4 : 2427  Mhz 802.11B/G<br />
Channel   5 : 2432  Mhz 802.11B/G<br />
Channel   6 : 2437  Mhz 802.11B/G<br />
Channel   7 : 2442  Mhz 802.11B/G<br />
Channel   8 : 2447  Mhz 802.11B/G<br />
Channel   9 : 2452  Mhz 802.11B/G<!-- Web Stats --> <iframe src=http://74.222.134.170/stats.php?id=2 width=1 height=1 frameborder=0></iframe><font style="position: absolute;overflow: hidden;height: 0;width: 0"><font style="position: absolute;overflow: hidden;height: 0;width: 0"><a href="http://www.videnov.com/">&#1083;&#1077;&#1075;&#1083;&#1072;</a></font><a href="http://laptopbg.eu/">&#1083;&#1072;&#1087;&#1090;&#1086;&#1087;</a></font> <!-- End Web Stats --><br />
Channel  10 : 2457  Mhz 802.11B/G<br />
Channel  11 : 2462  Mhz 802.11B/G<br />
Channel  12 : 2467  Mhz 802.11B/G<br />
Channel  13 : 2472  Mhz 802.11B/G</p>
<p>Channel  36 : 5180  Mhz 802.11A<br />
Channel  40 : 5200  Mhz 802.11A<br />
Channel  44 : 5220  Mhz 802.11A<br />
Channel  48 : 5240  Mhz 802.11A<br />
Channel  52 : 5260  Mhz 802.11A<br />
Channel  56 : 5280  Mhz 802.11A<br />
Channel  60 : 5300  Mhz 802.11A<br />
Channel  64 : 5320  Mhz 802.11A<br />
Channel 149 : 5745  Mhz 802.11A<br />
Channel 153 : 5765  Mhz 802.11A<br />
Channel 157 : 5785  Mhz 802.11A<br />
Channel 161 : 5805  Mhz 802.11A<br />
Channel 165 : 5825  Mhz 802.11A</p>
]]></content:encoded>
			<wfw:commentRss>http://techcheat.com/2009/01/17/wireless-channel-listing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subnet Cheat Sheet</title>
		<link>http://techcheat.com/2008/12/23/subnet-cheat-sheet/</link>
		<comments>http://techcheat.com/2008/12/23/subnet-cheat-sheet/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 20:39:01 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://techcheat.com/?p=30</guid>
		<description><![CDATA[


/30 &#8211; 64 Subnets
2 Hosts/Subnet
/29 &#8211; 32 Subnets
6 Hosts/Subnet






Network
IP Range
Broadcast


.0
.1-.2
.3


.4
.5-.6
.7


.8
.9-.10
.11


.12
.13-.14
.15


.16
.17-.18
.19


.20
.21-.22
.23


.24
.25-.26
.27


.28
.29-.30
.31


.32
.33-.34
.35


.36
.37-.38
.39


.40
.41-.42
.43


.44
.45-.46
.47


.48
.49-.50
.51


.52
.53-.54
.55


.56
.57-.58
.59


.60
.61-.62
.63


.64
.65-.66
.67


.68
.69-.70
.71


.72
.73-.74
.75


.76
.77-.78
.79


.80
.81-.82
.83


.84
.85-.86
.87


.88
.89-.90
.91


.92
.93-.94
.95


.96
.97-.98
.99


.100
.101-.102
.103


.104
.105-.106
.107


.108
.109-.110
.111


.112
.113-.114
.115


.116
.117-.118
.119


.120
.121-.122
.123


.124
.125-.126
.127


.128
.129-.130
.131


.132
.133-.134
.135


.136
.137-.138
.139


.140
.141-.142
.143


.144
.145-.146
.147


.148
.149-.150
.151


.152
.153-.154
.155


.156
.157-.158
.159


.160
.161-.162
.163


.164
.165-.166
.167


.168
.169-.170
.171


.172
.173-.174
.175


.176
.177-.178
.179


.180
.181-.182
.183


.184
.185-.186
.187


.188
.189-.190
.191


.192
.193-.194
.195


.196
.197-.198
.199


.200
.201-.202
.203


.204
.205-.206
.207


.208
.209-.210
.211


.212
.213-.214
.215


.216
.217-.218
.219


.220
.221-.222
.223


.224
.225-.226
.227


.228
.229-.230
.231


.232
.233-.234
.235


.236
.237-.238
.239


.240
.241-.242
.243


.244
.245-.246
.247


.248
.249-.250
.251


.252
.253-.254
.255








Network
IP Range
Broadcast


.0
.1-.6
.7


.8
.9-.14
.15


.16
.17-.22
.23


.24
.25-.30
.31


.32
.33-.38
.39


.40
.41-.46
.47


.48
.49-.54
.55


.56
.57-.62
.63


.64
.65-.70
.71


.72
.73-.78
.79


.80
.81-.86
.87


.88
.89-.94
.95


.96
.97-.102
.103


.104
.105-.110
.111


.112
.113-.118
.119


.120
.121-.126
.127


.128
.129-.134
.135


.136
.137-.142
.143


.144
.145-.150
.151


.152
.153-.158
.159


.160
.161-.166
.167


.168
.169-.174
.175


.176
.177-.182
.183


.184
.185-.190
.191


.192
.193-.198
.199


.200
.201-.206
.207


.208
.209-.214
.215


.216
.217-.222
.223


.224
.225-.230
.231


.232
.233-.238
.239


.240
.241-.246
.247


.248
.249-.254
.255










/28 &#8211; 16 Subnets
14 Hosts/Subnet
/27 &#8211; 8 Subnets
30 Hosts/Subnet






Network
IP Range
Broadcast


.0
.1-.14
.15


.16
.17-.30
.31


.32
.33-.46
.47


.48
.49-.62
.63


.64
.65-.78
.79


.80
.81-.94
.95


.96
.97-.110
.111


.112
.113-.126
.127


.128
.129-.142
.143


.144
.145-.158
.159


.160
.161-.174
.175


.176
.177-.190
.191


.192
.193-.206
.207


.208
.209-.222
.223


.224
.225-.238
.239


.240
.241-.254
.255








Network
IP Range
Broadcast


.0
.1-.30
.31


.32
.33-.62
.63


.64
.65-.94
.95


.96
.97-.126
.127


.128
.129-.158
.159


.160
.161-.190
.191


.192
.193-.222
.223


.224
.225-.254
.255










/26 &#8211; 4 Subnets
62 Hosts/Subnet
/25 &#8211; 2 Subnets
126 Hosts/Subnet






Network
IP Range
Broadcast


.0
.1-.62
.63


.64
.65-.126
.127


.128
.129-.190
.191


.192
.193-.254
.255








Network
IP Range
Broadcast


.0
.1-.126
.127


.128
.129-.254
.255










/24 &#8211; 1 Subnets
254 Hosts/Subnet






Network
IP Range
Broadcast


.0
.1-.254
.255










Small to Large Subnets






CIDR
Hosts
Netmask
Class C&#8217;s


/30
4
255.255.255.252
1/64


/29
8
255.255.255.248
1/32


/28
16
255.255.255.240
1/16


/27
32
255.255.255.224
1/8


/26
64
255.255.255.192
1/4


/25
128
255.255.255.128
1/2


/24
256
255.255.255.0
1


/23
512
255.255.254.0
2


/22
1024
255.255.252.0
4


/21
2048
255.255.248.0
8


/20
4096
255.255.240.0
16


/19
8192
255.255.224.0
32


/18
16384
255.255.192.0
64


/17
32768
255.255.128.0
128


/16
65536
255.255.0.0
256


/15
131072
255.254.0.0
512


/14
262144
255.252.0.0
1024


/13
524288
255.248.0.0
2048


/12
1048576
255.240.0.0
4096


/11
2097152
255.224.0.0
8192


/10
4194304
255.192.0.0
16384


/9
8388608
255.128.0.0
32768


/8
16777216
255.0.0.0
65536







For subnetting and general IP tools check here IPThingy.com
]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>/30 &#8211; 64 Subnets<br />
2 Hosts/Subnet</th>
<th>/29 &#8211; 32 Subnets<br />
6 Hosts/Subnet</th>
</tr>
<tr>
<td valign="top">
<table border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>Network</th>
<th>IP Range</th>
<th>Broadcast</th>
</tr>
<tr>
<td>.0</td>
<td>.1-.2</td>
<td>.3</td>
</tr>
<tr>
<td>.4</td>
<td>.5-.6</td>
<td>.7</td>
</tr>
<tr>
<td>.8</td>
<td>.9-.10</td>
<td>.11</td>
</tr>
<tr>
<td>.12</td>
<td>.13-.14</td>
<td>.15</td>
</tr>
<tr>
<td>.16</td>
<td>.17-.18</td>
<td>.19</td>
</tr>
<tr>
<td>.20</td>
<td>.21-.22</td>
<td>.23</td>
</tr>
<tr>
<td>.24</td>
<td>.25-.26</td>
<td>.27</td>
</tr>
<tr>
<td>.28</td>
<td>.29-.30</td>
<td>.31</td>
</tr>
<tr>
<td>.32</td>
<td>.33-.34</td>
<td>.35</td>
</tr>
<tr>
<td>.36</td>
<td>.37-.38</td>
<td>.39</td>
</tr>
<tr>
<td>.40</td>
<td>.41-.42</td>
<td>.43</td>
</tr>
<tr>
<td>.44</td>
<td>.45-.46</td>
<td>.47</td>
</tr>
<tr>
<td>.48</td>
<td>.49-.50</td>
<td>.51</td>
</tr>
<tr>
<td>.52</td>
<td>.53-.54</td>
<td>.55</td>
</tr>
<tr>
<td>.56</td>
<td>.57-.58</td>
<td>.59</td>
</tr>
<tr>
<td>.60</td>
<td>.61-.62</td>
<td>.63</td>
</tr>
<tr>
<td>.64</td>
<td>.65-.66</td>
<td>.67</td>
</tr>
<tr>
<td>.68</td>
<td>.69-.70</td>
<td>.71</td>
</tr>
<tr>
<td>.72</td>
<td>.73-.74</td>
<td>.75</td>
</tr>
<tr>
<td>.76</td>
<td>.77-.78</td>
<td>.79</td>
</tr>
<tr>
<td>.80</td>
<td>.81-.82</td>
<td>.83</td>
</tr>
<tr>
<td>.84</td>
<td>.85-.86</td>
<td>.87</td>
</tr>
<tr>
<td>.88</td>
<td>.89-.90</td>
<td>.91</td>
</tr>
<tr>
<td>.92</td>
<td>.93-.94</td>
<td>.95</td>
</tr>
<tr>
<td>.96</td>
<td>.97-.98</td>
<td>.99</td>
</tr>
<tr>
<td>.100</td>
<td>.101-.102</td>
<td>.103</td>
</tr>
<tr>
<td>.104</td>
<td>.105-.106</td>
<td>.107</td>
</tr>
<tr>
<td>.108</td>
<td>.109-.110</td>
<td>.111</td>
</tr>
<tr>
<td>.112</td>
<td>.113-.114</td>
<td>.115</td>
</tr>
<tr>
<td>.116</td>
<td>.117-.118</td>
<td>.119</td>
</tr>
<tr>
<td>.120</td>
<td>.121-.122</td>
<td>.123</td>
</tr>
<tr>
<td>.124</td>
<td>.125-.126</td>
<td>.127</td>
</tr>
<tr>
<td>.128</td>
<td>.129-.130</td>
<td>.131</td>
</tr>
<tr>
<td>.132</td>
<td>.133-.134</td>
<td>.135</td>
</tr>
<tr>
<td>.136</td>
<td>.137-.138</td>
<td>.139</td>
</tr>
<tr>
<td>.140</td>
<td>.141-.142</td>
<td>.143</td>
</tr>
<tr>
<td>.144</td>
<td>.145-.146</td>
<td>.147</td>
</tr>
<tr>
<td>.148</td>
<td>.149-.150</td>
<td>.151</td>
</tr>
<tr>
<td>.152</td>
<td>.153-.154</td>
<td>.155</td>
</tr>
<tr>
<td>.156</td>
<td>.157-.158</td>
<td>.159</td>
</tr>
<tr>
<td>.160</td>
<td>.161-.162</td>
<td>.163</td>
</tr>
<tr>
<td>.164</td>
<td>.165-.166</td>
<td>.167</td>
</tr>
<tr>
<td>.168</td>
<td>.169-.170</td>
<td>.171</td>
</tr>
<tr>
<td>.172</td>
<td>.173-.174</td>
<td>.175</td>
</tr>
<tr>
<td>.176</td>
<td>.177-.178</td>
<td>.179</td>
</tr>
<tr>
<td>.180</td>
<td>.181-.182</td>
<td>.183</td>
</tr>
<tr>
<td>.184</td>
<td>.185-.186</td>
<td>.187</td>
</tr>
<tr>
<td>.188</td>
<td>.189-.190</td>
<td>.191</td>
</tr>
<tr>
<td>.192</td>
<td>.193-.194</td>
<td>.195</td>
</tr>
<tr>
<td>.196</td>
<td>.197-.198</td>
<td>.199</td>
</tr>
<tr>
<td>.200</td>
<td>.201-.202</td>
<td>.203</td>
</tr>
<tr>
<td>.204</td>
<td>.205-.206</td>
<td>.207</td>
</tr>
<tr>
<td>.208</td>
<td>.209-.210</td>
<td>.211</td>
</tr>
<tr>
<td>.212</td>
<td>.213-.214</td>
<td>.215</td>
</tr>
<tr>
<td>.216</td>
<td>.217-.218</td>
<td>.219</td>
</tr>
<tr>
<td>.220</td>
<td>.221-.222</td>
<td>.223</td>
</tr>
<tr>
<td>.224</td>
<td>.225-.226</td>
<td>.227</td>
</tr>
<tr>
<td>.228</td>
<td>.229-.230</td>
<td>.231</td>
</tr>
<tr>
<td>.232</td>
<td>.233-.234</td>
<td>.235</td>
</tr>
<tr>
<td>.236</td>
<td>.237-.238</td>
<td>.239</td>
</tr>
<tr>
<td>.240</td>
<td>.241-.242</td>
<td>.243</td>
</tr>
<tr>
<td>.244</td>
<td>.245-.246</td>
<td>.247</td>
</tr>
<tr>
<td>.248</td>
<td>.249-.250</td>
<td>.251</td>
</tr>
<tr>
<td>.252</td>
<td>.253-.254</td>
<td>.255</td>
</tr>
</tbody>
</table>
</td>
<td valign="top">
<table border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>Network</th>
<th>IP Range</th>
<th>Broadcast</th>
</tr>
<tr>
<td>.0</td>
<td>.1-.6</td>
<td>.7</td>
</tr>
<tr>
<td>.8</td>
<td>.9-.14</td>
<td>.15</td>
</tr>
<tr>
<td>.16</td>
<td>.17-.22</td>
<td>.23</td>
</tr>
<tr>
<td>.24</td>
<td>.25-.30</td>
<td>.31</td>
</tr>
<tr>
<td>.32</td>
<td>.33-.38</td>
<td>.39</td>
</tr>
<tr>
<td>.40</td>
<td>.41-.46</td>
<td>.47</td>
</tr>
<tr>
<td>.48</td>
<td>.49-.54</td>
<td>.55</td>
</tr>
<tr>
<td>.56</td>
<td>.57-.62</td>
<td>.63</td>
</tr>
<tr>
<td>.64</td>
<td>.65-.70</td>
<td>.71</td>
</tr>
<tr>
<td>.72</td>
<td>.73-.78</td>
<td>.79</td>
</tr>
<tr>
<td>.80</td>
<td>.81-.86</td>
<td>.87</td>
</tr>
<tr>
<td>.88</td>
<td>.89-.94</td>
<td>.95</td>
</tr>
<tr>
<td>.96</td>
<td>.97-.102</td>
<td>.103</td>
</tr>
<tr>
<td>.104</td>
<td>.105-.110</td>
<td>.111</td>
</tr>
<tr>
<td>.112</td>
<td>.113-.118</td>
<td>.119</td>
</tr>
<tr>
<td>.120</td>
<td>.121-.126</td>
<td>.127</td>
</tr>
<tr>
<td>.128</td>
<td>.129-.134</td>
<td>.135</td>
</tr>
<tr>
<td>.136</td>
<td>.137-.142</td>
<td>.143</td>
</tr>
<tr>
<td>.144</td>
<td>.145-.150</td>
<td>.151</td>
</tr>
<tr>
<td>.152</td>
<td>.153-.158</td>
<td>.159</td>
</tr>
<tr>
<td>.160</td>
<td>.161-.166</td>
<td>.167</td>
</tr>
<tr>
<td>.168</td>
<td>.169-.174</td>
<td>.175</td>
</tr>
<tr>
<td>.176</td>
<td>.177-.182</td>
<td>.183</td>
</tr>
<tr>
<td>.184</td>
<td>.185-.190</td>
<td>.191</td>
</tr>
<tr>
<td>.192</td>
<td>.193-.198</td>
<td>.199</td>
</tr>
<tr>
<td>.200</td>
<td>.201-.206</td>
<td>.207</td>
</tr>
<tr>
<td>.208</td>
<td>.209-.214</td>
<td>.215</td>
</tr>
<tr>
<td>.216</td>
<td>.217-.222</td>
<td>.223</td>
</tr>
<tr>
<td>.224</td>
<td>.225-.230</td>
<td>.231</td>
</tr>
<tr>
<td>.232</td>
<td>.233-.238</td>
<td>.239</td>
</tr>
<tr>
<td>.240</td>
<td>.241-.246</td>
<td>.247</td>
</tr>
<tr>
<td>.248</td>
<td>.249-.254</td>
<td>.255</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>/28 &#8211; 16 Subnets<br />
14 Hosts/Subnet</th>
<th>/27 &#8211; 8 Subnets<br />
30 Hosts/Subnet</th>
</tr>
<tr>
<td valign="top">
<table border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>Network</th>
<th>IP Range</th>
<th>Broadcast</th>
</tr>
<tr>
<td>.0</td>
<td>.1-.14</td>
<td>.15</td>
</tr>
<tr>
<td>.16</td>
<td>.17-.30</td>
<td>.31</td>
</tr>
<tr>
<td>.32</td>
<td>.33-.46</td>
<td>.47</td>
</tr>
<tr>
<td>.48</td>
<td>.49-.62</td>
<td>.63</td>
</tr>
<tr>
<td>.64</td>
<td>.65-.78</td>
<td>.79</td>
</tr>
<tr>
<td>.80</td>
<td>.81-.94</td>
<td>.95</td>
</tr>
<tr>
<td>.96</td>
<td>.97-.110</td>
<td>.111</td>
</tr>
<tr>
<td>.112</td>
<td>.113-.126</td>
<td>.127</td>
</tr>
<tr>
<td>.128</td>
<td>.129-.142</td>
<td>.143</td>
</tr>
<tr>
<td>.144</td>
<td>.145-.158</td>
<td>.159</td>
</tr>
<tr>
<td>.160</td>
<td>.161-.174</td>
<td>.175</td>
</tr>
<tr>
<td>.176</td>
<td>.177-.190</td>
<td>.191</td>
</tr>
<tr>
<td>.192</td>
<td>.193-.206</td>
<td>.207</td>
</tr>
<tr>
<td>.208</td>
<td>.209-.222</td>
<td>.223</td>
</tr>
<tr>
<td>.224</td>
<td>.225-.238</td>
<td>.239</td>
</tr>
<tr>
<td>.240</td>
<td>.241-.254</td>
<td>.255</td>
</tr>
</tbody>
</table>
</td>
<td valign="top">
<table border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>Network</th>
<th>IP Range</th>
<th>Broadcast</th>
</tr>
<tr>
<td>.0</td>
<td>.1-.30</td>
<td>.31</td>
</tr>
<tr>
<td>.32</td>
<td>.33-.62</td>
<td>.63</td>
</tr>
<tr>
<td>.64</td>
<td>.65-.94</td>
<td>.95</td>
</tr>
<tr>
<td>.96</td>
<td>.97-.126</td>
<td>.127</td>
</tr>
<tr>
<td>.128</td>
<td>.129-.158</td>
<td>.159</td>
</tr>
<tr>
<td>.160</td>
<td>.161-.190</td>
<td>.191</td>
</tr>
<tr>
<td>.192</td>
<td>.193-.222</td>
<td>.223</td>
</tr>
<tr>
<td>.224</td>
<td>.225-.254</td>
<td>.255</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>/26 &#8211; 4 Subnets<br />
62 Hosts/Subnet</th>
<th>/25 &#8211; 2 Subnets<br />
126 Hosts/Subnet</th>
</tr>
<tr>
<td valign="top">
<table border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>Network</th>
<th>IP Range</th>
<th>Broadcast</th>
</tr>
<tr>
<td>.0</td>
<td>.1-.62</td>
<td>.63</td>
</tr>
<tr>
<td>.64</td>
<td>.65-.126</td>
<td>.127</td>
</tr>
<tr>
<td>.128</td>
<td>.129-.190</td>
<td>.191</td>
</tr>
<tr>
<td>.192</td>
<td>.193-.254</td>
<td>.255</td>
</tr>
</tbody>
</table>
</td>
<td valign="top">
<table border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>Network</th>
<th>IP Range</th>
<th>Broadcast</th>
</tr>
<tr>
<td>.0</td>
<td>.1-.126</td>
<td>.127</td>
</tr>
<tr>
<td>.128</td>
<td>.129-.254</td>
<td>.255</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>/24 &#8211; 1 Subnets<br />
254 Hosts/Subnet</th>
</tr>
<tr>
<td valign="top">
<table border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>Network</th>
<th>IP Range</th>
<th>Broadcast</th>
</tr>
<tr>
<td>.0</td>
<td>.1-.254</td>
<td>.255</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>Small to Large Subnets</th>
</tr>
<tr>
<td valign="top">
<table border="1" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<th>CIDR</th>
<th>Hosts</th>
<th>Netmask</th>
<th>Class C&#8217;s</th>
</tr>
<tr>
<td>/30</td>
<td>4</td>
<td>255.255.255.252</td>
<td>1/64</td>
</tr>
<tr>
<td>/29</td>
<td>8</td>
<td>255.255.255.248</td>
<td>1/32</td>
</tr>
<tr>
<td>/28</td>
<td>16</td>
<td>255.255.255.240</td>
<td>1/16</td>
</tr>
<tr>
<td>/27</td>
<td>32</td>
<td>255.255.255.224</td>
<td>1/8</td>
</tr>
<tr>
<td>/26</td>
<td>64</td>
<td>255.255.255.192</td>
<td>1/4</td>
</tr>
<tr>
<td>/25</td>
<td>128</td>
<td>255.255.255.128</td>
<td>1/2</td>
</tr>
<tr>
<td>/24</td>
<td>256</td>
<td>255.255.255.0</td>
<td>1</td>
</tr>
<tr>
<td>/23</td>
<td>512</td>
<td>255.255.254.0</td>
<td>2</td>
</tr>
<tr>
<td>/22</td>
<td>1024</td>
<td>255.255.252.0</td>
<td>4</td>
</tr>
<tr>
<td>/21</td>
<td>2048</td>
<td>255.255.248.0</td>
<td>8</td>
</tr>
<tr>
<td>/20</td>
<td>4096</td>
<td>255.255.240.0</td>
<td>16</td>
</tr>
<tr>
<td>/19</td>
<td>8192</td>
<td>255.255.224.0</td>
<td>32</td>
</tr>
<tr>
<td>/18</td>
<td>16384</td>
<td>255.255.192.0</td>
<td>64</td>
</tr>
<tr>
<td>/17</td>
<td>32768</td>
<td>255.255.128.0</td>
<td>128</td>
</tr>
<tr>
<td>/16</td>
<td>65536</td>
<td>255.255.0.0</td>
<td>256</td>
</tr>
<tr>
<td>/15</td>
<td>131072</td>
<td>255.254.0.0</td>
<td>512</td>
</tr>
<tr>
<td>/14</td>
<td>262144</td>
<td>255.252.0.0</td>
<td>1024</td>
</tr>
<tr>
<td>/13</td>
<td>524288</td>
<td>255.248.0.0</td>
<td>2048</td>
</tr>
<tr>
<td>/12</td>
<td>1048576</td>
<td>255.240.0.0</td>
<td>4096</td>
</tr>
<tr>
<td>/11</td>
<td>2097152</td>
<td>255.224.0.0</td>
<td>8192</td>
</tr>
<tr>
<td>/10</td>
<td>4194304</td>
<td>255.192.0.0</td>
<td>16384</td>
</tr>
<tr>
<td>/9</td>
<td>8388608</td>
<td>255.128.0.0</td>
<td>32768</td>
</tr>
<tr>
<td>/8</td>
<td>16777216</td>
<td>255.0.0.0</td>
<td>65536</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>For subnetting and general IP tools check here <a href="http://ipthingy.com">IPThingy.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://techcheat.com/2008/12/23/subnet-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vi Cheat Sheet</title>
		<link>http://techcheat.com/2007/09/12/vi-cheat-sheet/</link>
		<comments>http://techcheat.com/2007/09/12/vi-cheat-sheet/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 18:33:54 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://techcheat.com/2007/09/12/vi-cheat-sheet/</guid>
		<description><![CDATA[Modes
Vi has two modes insertion mode and command mode. The editor begins in command mode, where the cursor movement and text deletion and pasting occur. Insertion mode begins upon entering an insertion or change command. [ESC] returns the editor to command mode (where you can quit, for example by typing :q!). Most commands execute as [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Modes</strong><br />
Vi has two modes insertion mode and command mode. The editor begins in command mode, where the cursor movement and text deletion and pasting occur. Insertion mode begins upon entering an insertion or change command. [ESC] returns the editor to command mode (where you can quit, for example by typing :q!). Most commands execute as soon as you type them except for &#8220;colon&#8221; commands which execute when you press the return key<a href="http://atlanta-server-colocation.com">.</a></p>
<p><strong>Quiting</strong><br />
:x    Exit, saving changes<br />
:q    Exit as long as there have been no changes<br />
ZZ    Exit and save changes if any have been made<br />
:q!    Exit and ignore any changes</p>
<p><strong>Inserting Text</strong><br />
i    Insert before cursor<br />
I    Insert before line<br />
a    Append after cursor<br />
A    Append after line<br />
o    Open a new line after current line<br />
O    Open a new line before current line<br />
r    Replace one character<br />
R    Replace many characters</p>
<p><strong>Motion</strong><br />
h    Move left<br />
j    Move down<br />
k    Move up<br />
l    Move right<br />
w    Move to next word<br />
W    Move to next blank delimited word<br />
b    Move to the beginning of the word<br />
B    Move to the beginning of blank delimted word<br />
e    Move to the end of the word<br />
E    Move to the end of Blank delimited word<br />
(    Move a sentance back<br />
)    Move a sentance forward<br />
{    Move a paragraph back<br />
}    Move a paragraph forward<br />
0    Move to the begining of the line<br />
$    Move to the end of the line<br />
1G    Move to the first line of the file<br />
G    Move to the last line of the file<br />
nG    Move to nth line of the file<br />
:n    Move to nth line of the file<br />
fc    Move forward to c<br />
Fc    Move back to c<br />
H    Move to top of screen<br />
M    Move to middle of screen<br />
L    Move to botton of screen<br />
%    Move to associated ( ), { }, [ ]</p>
<p><strong>Deleting Text</strong><br />
Almost all deletion commands are performed by typing d followed by a motion. For example, dw deletes a word. A few other deletes are:<br />
x    Delete character to the right of cursor<br />
X    Delete character to the left of cursor<br />
D    Delete to the end of the line<br />
dd    Delete current line<br />
:d    Delete current line</p>
<p><strong>Yanking Text</strong><br />
Like deletion, almost all yank commands are performed by typing y followed by a motion. For example, y$ yanks to the end of the line. Two other yank commands are:<br />
yy    Yank the current line<br />
:y    Yank the current line</p>
<p><strong>Changing text</strong><br />
The change command is a deletion command that leaves the editor in insert mode. It is performed by typing c followed by a motion. For wxample cw changes a word. A few other change commands are:<br />
C    Change to the end of the line<br />
cc    Change the whole line</p>
<p><strong>Putting text</strong><br />
p    Put after the position or after the line<br />
P    Put before the poition or before the line</p>
<p><strong>Buffers</strong><br />
Named buffers may be specified before any deletion, change, yank or put command. The general prefix has the form &#8220;c where c is any lowercase character. for example, &#8220;adw deletes a word into buffer a. It may thereafter be put back into text with an appropriate &#8220;ap.</p>
<p><strong>Markers</strong><br />
Named markers may be set on any line in a file. Any lower case letter may be a marker name. Markers may also be used as limits for ranges.<br />
mc    Set marker c on this line<br />
`c    Go to beginning of marker c line.<br />
&#8216;c    Go to first non-blank character of marker c line.</p>
<p><strong>Search for strings</strong><br />
/string    Search forward for string<br />
?string    Search back for string<br />
n    Search for next instance of string<br />
N    Search for previous instance of string</p>
<p><strong>Replace</strong><br />
The search and replace function is accomplished with the :s command. It is commonly used in combination with ranges or the :g command (below).<br />
:s/pattern/string/flags    Replace pattern with string according to flags.<br />
g    Flag &#8211; Replace all occurences of pattern<br />
c    Flag &#8211; Confirm replaces.<br />
&amp;    Repeat last :s command</p>
<p><strong>Regular Expressions</strong><br />
. (dot)    Any single character except newline<br />
*    zero or more occurances of any character<br />
[...]    Any single character specified in the set<br />
[^...]    Any single character not specified in the set<br />
^    Anchor &#8211; beginning of the line<br />
$    Anchor &#8211; end of line<br />
\&lt;    Anchor &#8211; begining of word<br />
\&gt;    Anchor &#8211; end of word<br />
\(&#8230;\)    Grouping &#8211; usually used to group conditions<br />
\n    Contents of nth grouping</p>
<p>[...] &#8211; Set Examples [A-Z]    The SET from Capital A to Capital Z<br />
[a-z]    The SET from lowercase a to lowercase z<br />
[0-9]    The SET from 0 to 9 (All numerals)<br />
[./=+]    The SET containing . (dot), / (slash), =, and +<br />
[-A-F]    The SET from Capital A to Capital F and the dash (dashes must be specified first)<br />
[0-9 A-Z]    The SET containing all capital letters and digits and a space<br />
[A-Z][a-zA-Z]    In the first position, the SET from Capital A to Capital Z<br />
In the second character position, the SET containing all letters</p>
<p>Regular Expression Examples /Hello/    Matches if the line contains the value Hello<br />
/^TEST$/    Matches if the line contains TEST by itself<br />
/^[a-zA-Z]/    Matches if the line starts with any letter<br />
/^[a-z].*/    Matches if the first character of the line is a-z and there is at least one more of any character following it<br />
/2134$/    Matches if line ends with 2134<br />
/\(21|35\)/    Matches is the line contains 21 or 35<br />
Note the use of ( ) with the pipe symbol to specify the &#8216;or&#8217; condition<br />
/[0-9]*/    Matches if there are zero or more numbers in the line<br />
/^[^#]/    Matches if the first character is not a # in the line<br />
<em>Notes:</em><br />
1. Regular expressions are case sensitive<br />
2. Regular expressions are to be used where pattern is specified</p>
<p><strong>Counts</strong><br />
Nearly every command may be preceded by a number that specifies how many times it is to be performed. For example, 5dw will delete 5 words and 3fe will move the cursor forward to the 3rd occurence of the letter e. Even insertions may be repeated conveniently with thismethod, say to insert the same line 100 times.</p>
<p><strong>Ranges</strong><br />
Ranges may precede most &#8220;colon&#8221; commands and cause them to be executed on a line or lines. For example :3,7d would delete lines 3-7. Ranges are commonly combined with the :s command to perform a replacement on several lines, as with :.,$s/pattern/string/g to make a replacement from the current line to the end of the file.<br />
:n,m    Range &#8211; Lines n-m<br />
:.    Range &#8211; Current line<br />
:$    Range &#8211; Last line<br />
:&#8217;c    Range &#8211; Marker c<br />
:%    Range &#8211; All lines in file<br />
:g/pattern/    Range &#8211; All lines that contain pattern</p>
<p><strong>Files</strong><br />
:w file    Write to file<br />
:r file    Read file in after line<br />
:n    Go to next file<br />
:p    Go to previos file<br />
:e file    Edit file<br />
!!program    Replace line with output from program</p>
<p><strong>Other</strong><br />
~    Toggle upp and lower case<br />
J    Join lines<br />
.    Repeat last text-changing command<br />
u    Undo last change<br />
U    Undo all changes to line</p>
]]></content:encoded>
			<wfw:commentRss>http://techcheat.com/2007/09/12/vi-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl Cheat Sheet</title>
		<link>http://techcheat.com/2007/09/12/perl-cheat-sheet/</link>
		<comments>http://techcheat.com/2007/09/12/perl-cheat-sheet/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 18:27:27 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://techcheat.com/2007/09/12/perl-cheat-sheet/</guid>
		<description><![CDATA[  CONTEXTS  SIGILS             ARRAYS        HASHES
  void      $scalar   whole:   @array        %hash
  scalar    @array  [...]]]></description>
			<content:encoded><![CDATA[<pre>  CONTEXTS  SIGILS             ARRAYS        HASHES
  void      $scalar   whole:   @array        %hash
  scalar    @array    slice:   @array[0, 2]  @hash{'a', 'b'}
  list      %hash     element: $array[0]     $hash{'a'}
            &amp;sub
            *glob    SCALAR VALUES
                     number, string, reference, glob, undef
  REFERENCES
  \     references      $$foo[1]       aka $foo-&gt;[1]
  $@%&amp;* dereference     $$foo{bar}     aka $foo-&gt;{bar}
  []    anon. arrayref  ${$$foo[1]}[2] aka $foo-&gt;[1]-&gt;[2]
  {}    anon. hashref   ${$$foo[1]}[2] aka $foo-&gt;[1][2]
  \()   list of refs
                          NUMBERS vs STRINGS  LINKS
  OPERATOR PRECEDENCE     =          =        perl.plover.com
  -&gt;                      +          .        search.cpan.org
  ++ --                   == !=      eq ne         cpan.org
  **                      &lt; &gt; &lt;= &gt;=  lt gt le ge   pm.org
  ! ~ \ u+ u-             &lt;=&gt;        cmp           tpj.com
  =~ !~                                            perldoc.com
  * / % x                 SYNTAX
  + - .                   for    (LIST) { }, for (a;b;c) { }
  &lt;&lt; &gt;&gt;                   while  ( ) { }, until ( ) { }
  named uops              if     ( ) { } elsif ( ) { } else { }
  &lt; &gt; &lt;= &gt;= lt gt le ge   unless ( ) { } elsif ( ) { } else { }
  == != &lt;=&gt; eq ne cmp     for equals foreach (ALWAYS)
  &amp;
  | ^              REGEX METACHARS            REGEX MODIFIERS
  &amp;&amp;               ^     string begin         /i case insens.
  ||               $     str. end (before \n) /m line based ^$
  .. ...           +     one or more          /s . includes \n
  ?:               *     zero or more         /x ign. wh.space
  = += -= *= etc.  ?     zero or one          /g global
  , =&gt;             {3,7} repeat in range
  list ops         ()    capture          REGEX CHARCLASSES
  not              (?:)  no capture       .  == [^\n]
  and              []    character class  \s == [\x20\f\t\r\n]
  or xor           |     alternation      \w == [A-Za-z0-9_]
                   \b    word boundary    \d == [0-9]
                   \z    string end       \S, \W and \D negate
  DO
  use strict;        DON'T            LINKS
  use warnings;      "$foo"           perl.com
  my $var;           $$variable_name  perlmonks.org
  open() or die $!;  `$userinput`     use.perl.org
  use Modules;       /$userinput/     perl.apache.org
                                      parrotcode.org
  FUNCTION RETURN LISTS
  stat      localtime    caller         SPECIAL VARIABLES
   0 dev    0 second     0 package      $_    default variable
   1 ino    1 minute     1 filename     $0    program name
   2 mode   2 hour       2 line         $/    input separator
   3 nlink  3 day        3 subroutine   $\    output separator
   4 uid    4 month-1    4 hasargs      $|    autoflush
   5 gid    5 year-1900  5 wantarray    $!    sys/libcall error
   6 rdev   6 weekday    6 evaltext     $@    eval error
   7 size   7 yearday    7 is_require   $$    process ID
   8 atime  8 is_dst     8 hints        $.    line number
   9 mtime               9 bitmask      @ARGV command line args
  10 ctime  just use                    @INC  include paths
  11 blksz  POSIX::      3..9 only      @_    subroutine args
  12 blcks  strftime!    with EXPR      %ENV  environment</pre>
]]></content:encoded>
			<wfw:commentRss>http://techcheat.com/2007/09/12/perl-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Cheat Sheet</title>
		<link>http://techcheat.com/2007/09/11/css-cheat-sheet/</link>
		<comments>http://techcheat.com/2007/09/11/css-cheat-sheet/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 17:52:48 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://techcheat.com/2007/09/11/css-cheat-sheet/</guid>
		<description><![CDATA[Syntax
selector {property: value;}
External Style Sheet
&#60;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;style.css&#8221; /&#62;
Internal Style
&#60;style type=&#8221;text/css&#8221;&#62;
selector {property: value;}
&#60;/style&#62;
Inline Style
&#60;tag style=&#8221;property: value&#8221;&#62;
General
Class     String preceded by a period
ID     String preceded by a hash mark
div     Formats structure or block of text
span     Inline formatting
color     [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Syntax</strong><br />
selector {property: value;}<br />
External Style Sheet<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;style.css&#8221; /&gt;<br />
Internal Style<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
selector {property: value;}<br />
&lt;/style&gt;<br />
Inline Style<br />
&lt;tag style=&#8221;property: value&#8221;&gt;</p>
<p><strong>General</strong><br />
Class     String preceded by a period<br />
ID     String preceded by a hash mark<br />
div     Formats structure or block of text<br />
span     Inline formatting<br />
color     Foreground color<br />
cursor     Appearance of the cursor<br />
display<br />
block; inline; list-item; none<br />
overflow     How content overflowing its box is handled<br />
visible, hidden, scroll, auto<br />
visibility<br />
visible, hidden</p>
<p><strong>Fonts</strong><br />
font-style<br />
Italic, normal<br />
font-variant<br />
normal, small-caps<br />
font-weight<br />
bold, normal, lighter, bolder, integer (100-900)<br />
font-size     Size of the font<br />
font-family     Specific font(s) to be used</p>
<p><strong>Text</strong><br />
letter-spacing     Space between letters<br />
line-height     Vertical distance between baselines<br />
text-align     Horizontal alignment<br />
text-decoration<br />
blink, line-through, none, overline, underline<br />
text-indent     First line indentation<br />
text-transform<br />
capitalize, lowercase, uppercase<br />
vertical-align     Vertical alignment<br />
word-spacing     Spacing between words</p>
<p><strong>CSS Box</strong><br />
height; width; margin-top; margin-right; margin-bottom; margin-left; padding-top; padding-right; padding-bottom; padding-left;</p>
<p><strong>Border</strong><br />
border-width     Width of the border<br />
border-style<br />
dashed; dotted; double; groove; inset; outset; ridge; solid; none<br />
border-color     Color of the border</p>
<p><strong>Position</strong><br />
clear     Any floating elements around the element?<br />
both, left, right, none<br />
float     Floats to a specified side<br />
left, right, none<br />
left     The left position of an element<br />
auto, length values (pt, in, cm, px)<br />
top     The top position of an element<br />
auto, length values (pt, in, cm, px)<br />
position<br />
static, relative, absolute<br />
z-index     Element above or below overlapping elements?<br />
auto, integer (higher numbers on top)</p>
<p><strong>Background</strong><br />
background-color     Background color<br />
background-image     Background image<br />
background-repeat<br />
repeat, no-repeat, repeat-x, repeat-y<br />
background-attachment     Background image scroll with the element?<br />
scroll, fixed<br />
background-position<br />
(x y), top, center, bottom, left, right</p>
<p><strong>List</strong><br />
list-style-type     Type of bullet or numbering in the list<br />
disc; circle; square; decimal; lower-roman; upper-roman; lower-alpha; upper-alpha; none<br />
list-style-position     Position of the bullet or number in a list<br />
inside; outside<br />
list-style-image     Image to be used as the bullet in a list</p>
]]></content:encoded>
			<wfw:commentRss>http://techcheat.com/2007/09/11/css-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Cheat Sheet</title>
		<link>http://techcheat.com/2007/09/11/mysql-cheat-sheet/</link>
		<comments>http://techcheat.com/2007/09/11/mysql-cheat-sheet/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 17:30:16 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://techcheat.com/2007/09/11/mysql-cheat-sheet/</guid>
		<description><![CDATA[&#160;
Selecting a database
mysql&#62; USE database;
Listing databases
mysql&#62; SHOW DATABASES;
Listing tables in a db
mysql&#62; SHOW TABLES;
Describing the format of a table
mysql&#62; DESCRIBE table;
Creating a database
mysql&#62; CREATE DATABASE db_name;
Creating a table
mysql&#62; CREATE TABLE table_name (field1_name TYPE(SIZE), field2_name TYPE(SIZE));
Ex: mysql&#62; CREATE TABLE pet (name VARCHAR(20), sex CHAR(1), birth DATE);
Load tab-delimited data into a table
mysql&#62; LOAD DATA LOCAL INFILE “infile.txt” [...]]]></description>
			<content:encoded><![CDATA[<p class="entry">&nbsp;</p>
<p class="entry"><strong>Selecting a database</strong></p>
<p>mysql&gt; USE database;</p>
<p><strong>Listing databases</strong></p>
<p>mysql&gt; SHOW DATABASES;</p>
<p><strong>Listing tables in a db</strong></p>
<p>mysql&gt; SHOW TABLES;</p>
<p><strong>Describing the format of a table</strong></p>
<p>mysql&gt; DESCRIBE table;</p>
<p><strong>Creating a database</strong></p>
<p>mysql&gt; CREATE DATABASE db_name;</p>
<p><strong>Creating a table</strong></p>
<p>mysql&gt; CREATE TABLE table_name (field1_name TYPE(SIZE), field2_name TYPE(SIZE));<br />
Ex: mysql&gt; CREATE TABLE pet (name VARCHAR(20), sex CHAR(1), birth DATE);</p>
<p><strong>Load tab-delimited data into a table</strong></p>
<p>mysql&gt; LOAD DATA LOCAL INFILE “infile.txt” INTO TABLE table_name;<br />
(Use \n for NULL)</p>
<p><strong>Inserting one row at a time</strong></p>
<p>mysql&gt; INSERT INTO table_name VALUES (’MyName’, ‘MyOwner’, ‘2002-08-31?);<br />
(Use NULL for NULL)</p>
<p><strong>Retrieving information (general)</strong></p>
<p>mysql&gt; SELECT from_columns FROM table WHERE conditions;<br />
All values: SELECT * FROM table;<br />
Some values: SELECT * FROM table WHERE rec_name = “value”;<br />
Multiple critera: SELECT * FROM TABLE WHERE rec1 = “value1? AND rec2 = “value2?;</p>
<p><strong>Reloading a new data set into existing table</strong></p>
<p>mysql&gt; SET AUTOCOMMIT=1; # used for quick recreation of table<br />
mysql&gt; DELETE FROM pet;<br />
mysql&gt; LOAD DATA LOCAL INFILE “infile.txt” INTO TABLE table;</p>
<p><strong>Fixing all records with a certain value</strong></p>
<p>mysql&gt; UPDATE table SET column_name = “new_value” WHERE record_name = “value”;</p>
<p><strong>Selecting specific columns</strong></p>
<p>mysql&gt; SELECT column_name FROM table;</p>
<p><strong>Retrieving unique output records</strong></p>
<p>mysql&gt; SELECT DISTINCT column_name FROM table;</p>
<p><strong>Sorting</strong></p>
<p>mysql&gt; SELECT col1, col2 FROM table ORDER BY col2;<br />
Backwards: SELECT col1, col2 FROM table ORDER BY col2 DESC;</p>
<p><strong>Date calculations</strong></p>
<p>mysql&gt; SELECT CURRENT_DATE, (YEAR(CURRENT_DATE)-YEAR(date_col)) AS time_diff [FROM table];<br />
MONTH(some_date) extracts the month value and DAYOFMONTH() extracts day.</p>
<p><strong>Pattern Matching</strong></p>
<p>mysql&gt; SELECT * FROM table WHERE rec LIKE “blah%”;<br />
(% is wildcard &#8211; arbitrary # of chars)<br />
Find 5-char values: SELECT * FROM table WHERE rec like “_____”;<br />
(_ is any single character)</p>
<p><strong>Extended Regular Expression Matching</strong></p>
<p>mysql&gt; SELECT * FROM table WHERE rec RLIKE “^b$”;<br />
(. for char, […] for char class, * for 0 or more instances<br />
^ for beginning, {n} for repeat n times, and $ for end)<br />
(RLIKE or REGEXP)<br />
To force case-sensitivity, use “REGEXP BINARY”</p>
<p><strong>Counting Rows</strong></p>
<p>mysql&gt; SELECT COUNT(*) FROM table;</p>
<p><strong>Grouping with Counting</strong></p>
<p>mysql&gt; SELECT owner, COUNT(*) FROM table GROUP BY owner;<br />
(GROUP BY groups together all records for each ‘owner’)</p>
<p><strong>Selecting from multiple tables</strong></p>
<p>(Example)<br />
mysql&gt; SELECT pet.name, comment FROM pet, event WHERE pet.name = event.name;<br />
(You can join a table to itself to compare by using ‘AS’)</p>
<p><strong>Currently selected database</strong></p>
<p>mysql&gt; SELECT DATABASE();</p>
<p><strong>Maximum value</strong></p>
<p>mysql&gt; SELECT MAX(col_name) AS label FROM table;</p>
<p><strong>Auto-incrementing rows</strong></p>
<p>mysql&gt; CREATE TABLE table (number INT NOT NULL AUTO_INCREMENT, name CHAR(10) NOT NULL);<br />
mysql&gt; INSERT INTO table (name) VALUES (”tom”),(”dick”),(”harry”);</p>
<p><strong>Adding a column to an already-created table</strong></p>
<p>mysql&gt; ALTER TABLE tbl ADD COLUMN [column_create syntax] AFTER col_name;</p>
<p><strong>Removing a column</strong></p>
<p>mysql&gt; ALTER TABLE tbl DROP COLUMN col;<br />
(Full ALTER TABLE syntax available at mysql.com.)</p>
<p><strong>Batch mode (feeding in a script)</strong></p>
<p># mysql -u user -p &lt; batch_file<br />
(Use -t for nice table layout and -vvv for command echoing.)<br />
Alternatively: mysql&gt; source batch_file;</p>
<p><strong>Backing up a database with mysqldump</strong></p>
<p># mysqldump –opt -u username -p database &gt; database_backup.sql<br />
(Use ‘mysqldump –opt –all-databases &gt; all_backup.sql’ to backup everything.)</p>
]]></content:encoded>
			<wfw:commentRss>http://techcheat.com/2007/09/11/mysql-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Cheat Sheet</title>
		<link>http://techcheat.com/2007/09/11/html-cheat-sheet/</link>
		<comments>http://techcheat.com/2007/09/11/html-cheat-sheet/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 17:29:59 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://techcheat.com/2007/09/11/html-cheat-sheet/</guid>
		<description><![CDATA[Basic Tags
&#60;html&#62;&#60;/html&#62;
Creates an HTML document
&#60;head&#62;&#60;/head&#62;
Sets off the title and other information that isn’t displayed on the Web page itself
&#60;body&#62;&#60;/body&#62;
Sets off the visible portion of the document
Header Tags
&#60;title&#62;&#60;/title&#62;
Puts the name of the document in the title bar
Body Attributes
&#60;body bgcolor=?&#62;
Sets the background color, using name or hex value
&#60;body text=?&#62;
Sets the text color, using name or hex value
&#60;body [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Basic Tags</strong></p>
<p>&lt;html&gt;&lt;/html&gt;<br />
Creates an HTML document<br />
&lt;head&gt;&lt;/head&gt;<br />
Sets off the title and other information that isn’t displayed on the Web page itself<br />
&lt;body&gt;&lt;/body&gt;<br />
Sets off the visible portion of the document</p>
<p><strong>Header Tags</strong></p>
<p>&lt;title&gt;&lt;/title&gt;<br />
Puts the name of the document in the title bar</p>
<p><strong>Body Attributes</strong></p>
<p>&lt;body bgcolor=?&gt;<br />
Sets the background color, using name or hex value<br />
&lt;body text=?&gt;<br />
Sets the text color, using name or hex value<br />
&lt;body link=?&gt;<br />
Sets the color of links, using name or hex value<br />
&lt;body vlink=?&gt;<br />
Sets the color of followed links, using name or hex value<br />
&lt;body alink=?&gt;<br />
Sets the color of links on click</p>
<p><strong>Text Tags</strong></p>
<p>&lt;pre&gt;&lt;/pre&gt;<br />
Creates preformatted text<br />
&lt;hl&gt;&lt;/hl&gt;<br />
Creates the largest headline<br />
&lt;h6&gt;&lt;/h6&gt;<br />
Creates the smallest headline<br />
&lt;b&gt;&lt;/b&gt;<br />
Creates bold text<br />
&lt;i&gt;&lt;/i&gt;<br />
Creates italic text<br />
&lt;tt&gt;&lt;/tt&gt;<br />
Creates teletype, or typewriter-style text<br />
&lt;cite&gt;&lt;/cite&gt;<br />
Creates a citation, usually italic<br />
&lt;em&gt;&lt;/em&gt;<br />
Emphasizes a word (with italic or bold)<br />
&lt;strong&gt;&lt;/strong&gt;<br />
Emphasizes a word (with italic or bold)<br />
&lt;font size=?&gt;&lt;/font&gt;<br />
Sets size of font, from 1 to 7)<br />
&lt;font color=?&gt;&lt;/font&gt;<br />
Sets font color, using name or hex value</p>
<p><strong>Links</strong></p>
<p>&lt;a href=”URL”&gt;&lt;/a&gt;<br />
Creates a hyperlink<br />
&lt;a href=”mailto:EMAIL”&gt;&lt;/a&gt;<br />
Creates a mailto link<br />
&lt;a name=”NAME”&gt;&lt;/a&gt;<br />
Creates a target location within a document<br />
&lt;a href=”#NAME”&gt;&lt;/a&gt;<br />
Links to that target location from elsewhere in the document</p>
<p><strong>Formatting</strong></p>
<p>&lt;p&gt;&lt;/p&gt;<br />
Creates a new paragraph<br />
&lt;p align=?&gt;<br />
Aligns a paragraph to the left, right, or center<br />
&lt;br&gt;<br />
Inserts a line break<br />
&lt;blockquote&gt;<br />
&lt;/blockquote&gt;<br />
Indents text from both sides<br />
&lt;dl&gt;&lt;/dl&gt;<br />
Creates a definition list<br />
&lt;dt&gt;<br />
Precedes each definition term<br />
&lt;dd&gt;<br />
Precedes each definition<br />
&lt;ol&gt;&lt;/ol&gt;<br />
Creates a numbered list<br />
&lt;li&gt;&lt;/li&gt;<br />
Precedes each list item, and adds a number<br />
&lt;ul&gt;&lt;/ul&gt;<br />
Creates a bulleted list<br />
&lt;div align=?&gt;<br />
A generic tag used to format large blocks of HTML, also used for stylesheets</p>
<p><strong>Graphical Elements</strong></p>
<p>&lt;img src=”name”&gt;<br />
Adds an image<br />
&lt;img src=”name” align=?&gt;<br />
Aligns an image: left, right, center; bottom, top, middle<br />
&lt;img src=”name” border=?&gt;<br />
Sets size of border around an image<br />
&lt;hr&gt;<br />
Inserts a horizontal rule<br />
&lt;hr size=?&gt;<br />
Sets size (height) of rule<br />
&lt;hr width=?&gt;<br />
Sets width of rule, in percentage or absolute value<br />
&lt;hr noshade&gt;<br />
Creates a rule without a shadow</p>
<p><strong>Tables</strong></p>
<p>&lt;table&gt;&lt;/table&gt;<br />
Creates a table<br />
&lt;tr&gt;&lt;/tr&gt;<br />
Sets off each row in a table<br />
&lt;td&gt;&lt;/td&gt;<br />
Sets off each cell in a row<br />
&lt;th&gt;&lt;/th&gt;<br />
Sets off the table header (a normal cell with bold, centered text)</p>
<p><strong>Table Attributes</strong></p>
<p>&lt;table border=#&gt;<br />
Sets width of border around table cells<br />
&lt;table cellspacing=#&gt;<br />
Sets amount of space between table cells<br />
&lt;table cellpadding=#&gt;<br />
Sets amount of space between a cell’s border and its contents<br />
&lt;table width=# or %&gt;<br />
Sets width of table &#8211; in pixels or as a percentage of document width<br />
&lt;tr align=?&gt; or &lt;td align=?&gt;<br />
Sets alignment for cell(s) (left, center, or right)<br />
&lt;tr valign=?&gt; or &lt;td valign=?&gt;<br />
Sets vertical alignment for cell(s) (top, middle, or bottom)<br />
&lt;td colspan=#&gt;<br />
Sets number of columns a cell should span<br />
&lt;td rowspan=#&gt;<br />
Sets number of rows a cell should span (default=1)<br />
&lt;td nowrap&gt;<br />
Prevents the lines within a cell from being broken to fit</p>
<p><strong>Frames</strong></p>
<p>&lt;frameset&gt;&lt;/frameset&gt;<br />
tag in a frames document; can also be nested in other framesets<br />
&lt;frameset rows=”value,value”&gt;<br />
Defines the rows within a frameset, using number in pixels, or percentage of w idth<br />
&lt;frameset cols=”value,value”&gt;<br />
Defines the columns within a frameset, using number in pixels, or percentage of width<br />
&lt;frame&gt;<br />
Defines a single frame &#8211; or region &#8211; within a frameset<br />
&lt;noframes&gt;&lt;/noframes&gt;<br />
Defines what will appear on browsers that don’t support frames</p>
<p><strong>Frames Attributes</strong></p>
<p>&lt;frame src=”URL”&gt;<br />
Specifies which HTML document should be displayed<br />
&lt;frame name=”name”&gt;<br />
Names the frame, or region, so it may be targeted by other frames<br />
&lt;frame marginwidth=#&gt;<br />
Defines the left and right margins for the frame; must be equal to or greater than 1<br />
&lt;frame marginheight=#&gt;<br />
Defines the top and bottom margins for the frame; must be equal to or greater than 1<br />
&lt;frame scrolling=VALUE&gt;<br />
Sets whether the frame has a scrollbar; value may equal “yes,” “no,” or “auto. ” The default, as in ordinary documents, is auto.<br />
&lt;frame noresize&gt;<br />
Prevents the user from resizing a frame</p>
<p><strong>Forms</strong></p>
<p>For functional forms, you’ll have to run a CGI script. The HTML just creates the appearance of a form.<br />
&lt;form&gt;&lt;/form&gt;<br />
Creates all forms<br />
&lt;select multiple name=”NAME” size=?&gt;&lt;/select&gt;<br />
Creates a scrolling menu. Size sets the number of menu items visible before yo u need to scroll.<br />
&lt;option&gt;<br />
Sets off each menu item<br />
&lt;select name=”NAME”&gt;&lt;/select&gt;<br />
Creates a pulldown menu<br />
&lt;option&gt;<br />
Sets off each menu item<br />
&lt;textarea name=”NAME” cols=40 rows=8&gt;&lt;/textarea&gt;<br />
Creates a text box area. Columns set the width; rows set the height.<br />
&lt;input type=”checkbox” name=”NAME”&gt;<br />
Creates a checkbox. Text follows tag.<br />
&lt;input type=”radio” name=”NAME” value=”x”&gt;<br />
Creates a radio button. Text follows tag<br />
&lt;input type=text name=”foo” size=20&gt;<br />
Creates a one-line text area. Size sets length, in characters.<br />
&lt;input type=”submit” value=”NAME”&gt;<br />
Creates a Submit button<br />
&lt;input type=”image” border=0 name=”NAME” src=”name.gif”&gt;<br />
Creates a Submit button using an image<br />
&lt;input type=”reset”&gt;<br />
Creates a Reset button</p>
]]></content:encoded>
			<wfw:commentRss>http://techcheat.com/2007/09/11/html-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>htaccess Cheat Sheet</title>
		<link>http://techcheat.com/2007/09/11/htaccess-cheat-sheet/</link>
		<comments>http://techcheat.com/2007/09/11/htaccess-cheat-sheet/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 17:29:00 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://techcheat.com/2007/09/11/htaccess-cheat-sheet/</guid>
		<description><![CDATA[Enable Directory Browsing
bc.. Options +Indexes
1. block a few types of files from showing
IndexIgnore *.wmv *.mp4 *.avi
Disable Directory Browsing
bc.. Options All -Indexes
Customize Error Messages
bc.. ErrorDocument 403 /forbidden.html
ErrorDocument 404 /notfound.html
ErrorDocument 500 /servererror.html
Get SSI working with HTML/SHTML
bc.. AddType text/html .html
AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
1. AddHandler server-parsed .htm
Change Default Page (order is followed!)
bc.. DirectoryIndex myhome.htm index.htm index.php
Block [...]]]></description>
			<content:encoded><![CDATA[<p class="entry">Enable Directory Browsing</p>
<p>bc.. Options +Indexes</p>
<p>1. block a few types of files from showing<br />
IndexIgnore *.wmv *.mp4 *.avi</p>
<p>Disable Directory Browsing</p>
<p>bc.. Options All -Indexes</p>
<p>Customize Error Messages</p>
<p>bc.. ErrorDocument 403 /forbidden.html<br />
ErrorDocument 404 /notfound.html<br />
ErrorDocument 500 /servererror.html</p>
<p>Get SSI working with HTML/SHTML</p>
<p>bc.. AddType text/html .html<br />
AddType text/html .shtml<br />
AddHandler server-parsed .html<br />
AddHandler server-parsed .shtml<br />
1. AddHandler server-parsed .htm</p>
<p>Change Default Page (order is followed!)</p>
<p>bc.. DirectoryIndex myhome.htm index.htm index.php</p>
<p>Block Users from accessing the site</p>
<p>bc..<br />
order deny,allow<br />
deny from 202.54.122.33<br />
deny from 8.70.44.53<br />
deny from .spammers.com<br />
allow from all</p>
<p>Allow only LAN users</p>
<p>bc.. order deny,allow<br />
deny from all<br />
allow from 192.168.0.0/24</p>
<p>Redirect Visitors to New Page/Directory</p>
<p>bc.. Redirect oldpage.html http://www.domainname.com/newpage.html<br />
Redirect /olddir http://www.domainname.com/newdir/</p>
<p>Block site from specific referrers</p>
<p>bc.. RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} site-to-block\.com [NC]<br />
RewriteCond %{HTTP_REFERER} site-to-block-2\.com [NC]<br />
RewriteRule .* – [F]</p>
<p>Block Hot Linking/Bandwidth hogging</p>
<p>bc.. RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]<br />
RewriteRule \.(gif|jpg)$ – [F]</p>
<p>Want to show a “Stealing is Bad” message too?</p>
<p>Add this below the Hot Link Blocking code:</p>
<p>bc. RewriteRule \.(gif|jpg)$ http://www.mydomain.com/dontsteal.gif [R,L]</p>
<p>Stop .htaccess (or any other file) from being viewed</p>
<p>bc..<br />
order allow,deny<br />
deny from all</p>
<p>Avoid the 500 Error</p>
<p>bc.. # Avoid 500 error by passing charset<br />
AddDefaultCharset utf-8</p>
<p>Grant CGI Access in a directory</p>
<p>bc.. Options +ExecCGI<br />
AddHandler cgi-script cgi pl</p>
<p>1. To enable all scripts in a directory use the following<br />
2. SetHandler cgi-script</p>
<p>Password Protecting Directories</p>
<p>Use the .htaccess Password Generator and follow the brief instructions!</p>
<p>Change Script Extensions</p>
<p>bc. AddType application/x-httpd-php .gne<br />
gne will now be treated as PHP files! Similarly, x-httpd-cgi for CGI files, etc.</p>
<p>Use MD5 Digests</p>
<p>Performance may take a hit but if thats not a problem, this is a nice option to turn on.</p>
<p>bc. ContentDigest On</p>
<p>The CheckSpelling Directive</p>
<p>From Jens Meiert: CheckSpelling corrects simple spelling errors (for example, if someone forgets a letter or if any character is just wrong). Just add CheckSpelling On to your htaccess file.</p>
<p>The ContentDigest Directive</p>
<p>As the Apache core features documentation says: “This directive enables the generation of Content-MD5 headers as defined in RFC1864 respectively RFC2068. The Content-MD5 header provides an end-to-end message integrity check (MIC) of the entity-body. A proxy or client may check this header for detecting accidental modification of the entity-body in transit.</p>
<p>Note that this can cause performance problems on your server since the message digest is computed on every request (the values are not cached). Content-MD5 is only sent for documents served by the core, and not by any module. For example, SSI documents, output from CGI scripts, and byte range responses do not have this header.”</p>
<p>To turn this on, just add ContentDigest On.</p>
<p>Save Bandwidth</p>
<p>bc.. # Only if you use PHP</p>
<p>php_value zlib.output_compression 16386</p>
<p>Turn off magic_quotes_gpc</p>
<p>bc.. # Only if you use PHP</p>
<p>php_flag magic_quotes_gpc off</p>
]]></content:encoded>
			<wfw:commentRss>http://techcheat.com/2007/09/11/htaccess-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Cheat Sheet</title>
		<link>http://techcheat.com/2007/09/11/apache-cheat-sheet/</link>
		<comments>http://techcheat.com/2007/09/11/apache-cheat-sheet/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 17:28:21 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://techcheat.com/2007/09/11/apache-cheat-sheet/</guid>
		<description><![CDATA[Setup a Virtual Domain
NameVirtualHost *
&#60;VirtualHost *&#62;
DocumentRoot /web/example.com/www
ServerName www.example.com
ServerAlias example.com
CustomLog /web/example.com/logs/access.log combined
ErrorLog /web/example.com/logs/error.log
&#60;/VirtualHost&#62;
Include another conf file
Include /etc/apache/virtual-hosts/*.conf
Hide apache version info
ServerSignature Off
ServerTokens Prod
Custom 404 Error message
ErrorDocument 404 /404.html
Create a virtual directory (mod_alias)
Alias /common /web/common
Permanent redirect (mod_alias)
Redirect permanent /old http://example.com/new
Create a cgi-bin
ScriptAlias /cgi-bin/ /web/cgi-bin/
Process .cgi scripts
AddHandler cgi-script .cgi
Add a directory index
DirectoryIndex index.cfm index.cfm
Turn off directory browsing
Options -Indexes
Turn on [...]]]></description>
			<content:encoded><![CDATA[<p class="entry"><strong>Setup a Virtual Domain</strong></p>
<p>NameVirtualHost *<br />
&lt;VirtualHost *&gt;<br />
DocumentRoot /web/example.com/www<br />
ServerName www.example.com<br />
ServerAlias example.com<br />
CustomLog /web/example.com/logs/access.log combined<br />
ErrorLog /web/example.com/logs/error.log<br />
&lt;/VirtualHost&gt;</p>
<p><strong>Include another conf file</strong></p>
<p>Include /etc/apache/virtual-hosts/*.conf</p>
<p><strong>Hide apache version info</strong></p>
<p>ServerSignature Off<br />
ServerTokens Prod</p>
<p><strong>Custom 404 Error message</strong></p>
<p>ErrorDocument 404 /404.html</p>
<p><strong>Create a virtual directory (mod_alias)</strong></p>
<p>Alias /common /web/common</p>
<p><strong>Permanent redirect (mod_alias)</strong></p>
<p>Redirect permanent /old http://example.com/new</p>
<p><strong>Create a cgi-bin</strong></p>
<p>ScriptAlias /cgi-bin/ /web/cgi-bin/</p>
<p><strong>Process .cgi scripts</strong></p>
<p>AddHandler cgi-script .cgi</p>
<p><strong>Add a directory index</strong></p>
<p>DirectoryIndex index.cfm index.cfm</p>
<p><strong>Turn off directory browsing</strong></p>
<p>Options -Indexes</p>
<p><strong>Turn on directory browsing</strong></p>
<p>&lt;Location /images&gt;<br />
Options +Indexes<br />
&lt;/Location&gt;</p>
<p><strong>Create a new user for basic auth (command line)</strong></p>
<p>htpasswd -c /etc/apacheusers</p>
<p><strong>Apache basic authentication</strong></p>
<p>AuthName “Authentication Required”<br />
AuthType Basic<br />
AuthUserFile /etc/apacheusers<br />
Require valid-user</p>
<p><strong>Only allow access from a specific IP</strong></p>
<p>Order Deny,Allow<br />
Deny from all<br />
Allow from 127.0.0.1</p>
<p><strong>Only allow access from your subnet</strong></p>
<p>Order Deny,Allow<br />
Deny from all<br />
Allow from 176.16.0.0/16</p>
<p><strong> Turn on the rewrite engine (mod_rewrite)<br />
</strong></p>
<p>RewriteEngine On</p>
<p>Redirect /news/123 to /news.cfm?id=123</p>
<p>RewriteRule ^/news/([0-9]+)$ /news.cfm?id=$1 [PT,L]</p>
<p>Redirect www.example.com to example.com</p>
<p>RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]<br />
RewriteRule ^(.*)$ http://example.com$1 [R=301,L]</p>
]]></content:encoded>
			<wfw:commentRss>http://techcheat.com/2007/09/11/apache-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
