aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2019-06-09 18:29:08 +0200
committerjohannst <stoelp@eit.uni-kl.de>2019-06-09 18:29:08 +0200
commitb95ddc8faac6b638c3121b2d6cc9b32f6c62793f (patch)
tree7cf5b98afa2a641ebc43bb0d542d3e5de80e446e
parent2e97b8a7cc88b9fcdab606d2c94c376d31a47696 (diff)
downloadnotes-b95ddc8faac6b638c3121b2d6cc9b32f6c62793f.tar.gz
notes-b95ddc8faac6b638c3121b2d6cc9b32f6c62793f.zip
changed filtype to "help" when opened with vim; added toc; added vim helptags; unified quotes for string args
-rw-r--r--README.md10
-rw-r--r--binary.txt15
2 files changed, 19 insertions, 6 deletions
diff --git a/README.md b/README.md
index bfeccc1..388a65d 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,9 @@
-# notes \ No newline at end of file
+# notes
+
+Personal collection of notes.
+
+Vim `:helptags` can be generated by running:
+```
+vim +'helptags .' +q
+```
+
diff --git a/binary.txt b/binary.txt
index 908fff7..f1c012c 100644
--- a/binary.txt
+++ b/binary.txt
@@ -1,7 +1,12 @@
.:: Binary ::.
--------------------------------------------------------------------------------
-# od(1)
+# toc
+------
+ |od|
+ |xxd|
+
+# od(1) *od*
========
args:
-An don't print addr info
@@ -14,12 +19,12 @@
>> 41414141
>> 42424242
- echo -n "\x7fELF\n" | od -tx1 -ta -tc
+ echo -n '\x7fELF\n' | od -tx1 -ta -tc
>> 0000000 7f 45 4c 46 0a
>> del E L F nl
>> 177 E L F \n
-# xxd(1)
+# xxd(1) *xxd*
=========
args:
-p dump continuous hexdump
@@ -36,7 +41,7 @@
>> aabb
## ascii to binary
- echo -n "\x7fELF" | xxd -p | xxd -r -p | file -p -
+ echo -n '\x7fELF' | xxd -p | xxd -r -p | file -p -
>> ELF
## ascii to C array (hex encoded)
@@ -48,5 +53,5 @@
--------------------------------------------------------------------------------
-vim:sts=2:et:tw=80:cc=80:fo+=t
+vim:sts=2:et:tw=80:cc=80:fo+=t:ft=help