A bit about the stuff I've done


Thursday, 2 February 2012

Cheetsheet

This is my "cheetsheet" or reference card.
I'll update this post as and when but really its just a place to store the stuff I always forget how to do or the exact syntax involved.

Bash:


For:

for f in dir/file*  do    echo "Processing $f"    # do something on $f  done
for i in {0..10..2}    do echo "Welcome $i times"  done

Ascii dec/hex/binary table

Key:

decimal numbers (base 10) hexadecimal numbers (base 16) ascii character or control code binary digits (base 2). The top table has binary 0 as the first digit, the bottom table has binary 1
The binary numbers across the top are the next most significant digits
The binary numbers down the left side are the final 4 digits
so for example: 182 (B6) has a 1 for the first digit as its in the bottom table, Next look to the top of the column to get 011
and finally look at the row to get 0110
So the entire sequence is 10110110
 
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
000
000
101
202
303
404
505
606
707
808
909
100A
110B
120C
130D
140E
150F
001
1610
1711
1812
1913
2014
2115
2216
2317
2418
2519
261A
271B
281C
291D
301E
311F
010
3220
3321!
3422"
3523#
3624$
3725%
3826&
3927'
4028(
4129)
422A*
432B+
442C,
452D-
462E.
472F/
011
48300
49311
50322
51333
52344
53355
54366
55377
56388
57399
583A:
593B;
603C<
613D=
623E>
633F?
100
6440@
6541A
6642B
6743C
6844D
6945E
7046F
7147G
7248H
7349I
744AJ
754BK
764CL
774DM
784EN
794FO
101
8050P
8151Q
8252R
8353S
8454T
8555U
8656V
8757W
8858X
8959Y
905AZ
915B[
925C\
935D]
945E^
955F_
110
9660`
9761a
9862b
9963c
10064d
10165e
10266f
10367g
10468h
10569i
1066Aj
1076Bk
1086Cl
1096Dm
1106En
1116Fo
111
11270p
11371q
11472r
11573s
11674t
11775u
11876v
11977w
12078x
12179y
1227Az
1237B{
1247C|
1257D}
1267E~
1277F
 
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
12880
12981
13082
13183ƒ
13284
13385
13486
13587
13688ˆ
13789
1388AŠ
1398B
1408CŒ
1418D
1428EŽ
1438F
14490
14591
14692
14793
14894
14995
15096
15197
15298˜
15399
1549Aš
1559B
1569Cœ
1579D
1589Ež
1599FŸ
160A0 
161A1¡
162A2¢
163A3£
164A4¤
165A5¥
166A6¦
167A7§
168A8¨
169A9©
170AAª
171AB«
172AC¬
173AD­
174AE®
175AF¯
176B0°
177B1±
178B2²
179B3³
180B4´
181B5µ
182B6
183B7·
184B8¸
185B9¹
186BAº
187BB»
188BC¼
189BD½
190BE¾
191BF¿
192C0À
193C1Á
194C2Â
195C3Ã
196C4Ä
197C5Å
198C6Æ
199C7Ç
200C8È
201C9É
202CAÊ
203CBË
204CCÌ
205CDÍ
206CEÎ
207CFÏ
208D0Ð
209D1Ñ
210D2Ò
211D3Ó
212D4Ô
213D5Õ
214D6Ö
215D7×
216D8Ø
217D9Ù
218DAÚ
219DBÛ
220DCÜ
221DDÝ
222DEÞ
223DFß
224E0à
225E1á
226E2â
227E3ã
228E4ä
229E5å
230E6æ
231E7ç
232E8è
233E9é
234EAê
235EBë
236ECì
237EDí
238EEî
239EFï
240F0ð
241F1ñ
242F2ò
243F3ó
244F4ô
245F5õ
246F6ö
247F7÷
248F8ø
249F9ù
250FAú
251FBû
252FCü
253FDý
254FEþ
255FFÿ

For a more complete Ascii table, look here

No comments:

Post a Comment