summaryrefslogtreecommitdiff
path: root/nocompile/bin
diff options
context:
space:
mode:
authorepochqwert <epoch@53flpnlls43fcguy.onion>2015-02-06 02:32:04 -0600
committerepochqwert <epoch@53flpnlls43fcguy.onion>2015-02-06 02:32:04 -0600
commit3c2d290d17b739f14774dfcdf48581c1fb212286 (patch)
tree4b3bcf021e9994c21030aad99f84831ad31dbe02 /nocompile/bin
parentabe09a4717370f331b050ad39da3a7e9a478f02d (diff)
downloadmisc-3c2d290d17b739f14774dfcdf48581c1fb212286.tar.gz
misc-3c2d290d17b739f14774dfcdf48581c1fb212286.zip
some new tools. clump is useful. httpd got some better logging. cuturl got some bugfixes I think. todo is just a version of segfault's !todo but for shell. don't remember what I did to telnet-gateway.sh
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/\&gt;/>/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