summaryrefslogtreecommitdiff
path: root/nocompile/bin
diff options
context:
space:
mode:
Diffstat (limited to 'nocompile/bin')
-rwxr-xr-xnocompile/bin/decode_html_entities4
-rwxr-xr-xnocompile/bin/encode_html_entities4
-rwxr-xr-xnocompile/bin/todo2
3 files changed, 10 insertions, 0 deletions
diff --git a/nocompile/bin/decode_html_entities b/nocompile/bin/decode_html_entities
new file mode 100755
index 0000000..08bd7c9
--- /dev/null
+++ b/nocompile/bin/decode_html_entities
@@ -0,0 +1,4 @@
+#!/bin/sh
+sed "s/\>/>/g" \
+ | sed "s/\&lt;/</g" \
+ | sed "s/\&amp;/\&/g"
diff --git a/nocompile/bin/encode_html_entities b/nocompile/bin/encode_html_entities
new file mode 100755
index 0000000..4cb1836
--- /dev/null
+++ b/nocompile/bin/encode_html_entities
@@ -0,0 +1,4 @@
+#!/bin/sh
+sed "s/&/\&amp;/g" \
+ | sed "s/</\&lt;/g" \
+ | sed "s/>/\&gt;/g"
diff --git a/nocompile/bin/todo b/nocompile/bin/todo
new file mode 100755
index 0000000..611a25b
--- /dev/null
+++ b/nocompile/bin/todo
@@ -0,0 +1,2 @@
+#!/bin/sh
+cat -n /var/todo/$USER.txt | shuffle -f-| head -n1