From ff822dd2295faa2e3fce3fe2bde391c5a1ad53e7 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Thu, 20 Aug 2015 00:33:13 -0500 Subject: fixed up useraliases to use %q. --- files/useraliases | 165 +++++++++++++++++++++++++----------------------------- 1 file changed, 77 insertions(+), 88 deletions(-) diff --git a/files/useraliases b/files/useraliases index a95df8b..beb5b6a 100644 --- a/files/useraliases +++ b/files/useraliases @@ -1,70 +1,65 @@ -!alias !savealias !leetappend %~/files/useraliases 10 !alias %%s +!alias !savealias !leetappend %~/files/useraliases 10 !alias %s !alias !reload !raw quit :reload -!alias !addlink !leetappend /var/www/sites/hacking/links.txt 10 %%s (~%%n) -!alias !drop !say %%n: Dropping shell right now, type exit when done. -!alias !dig !c dig %%s +!alias !addlink !leetappend /var/www/sites/hacking/links.txt 10 %s (~%n) !alias !more !tailunlock %~/files/cmd_out +!alias !shmore !tailunlock %~/files/sh_out !alias !ping !say pong -!alias !ec !eval %~/scripts/evalcommand %%s -!alias !lambda !ec echo -ne 'SegFault: alias !tmp %%s\n!tmp\n' -!alias !pymath !c python -c 'import math;print(%%s)' +!alias !ec !eval %~/scripts/evalcommand %s +!alias !lambda !ec echo -ne 'SegFault: alias !tmp %q\n!tmp\n' +!alias !pymath !c python -c 'import math;print(%q)' !alias !reset !kill 9 -1 !alias !up !c uptime -!alias !randip !c perl -le '$,=".";print map int rand 256,1..4;' %%s -!alias !jarg !c cat /service/gitd/jargon/jarg.txt | XuntilY "^:%%s" "^:." | tail -r | tail -n+2 | tail -r -!alias !jargcheck !c cat /service/gitd/jargon/jarg.txt | XuntilY "^:%%s" "^:." | tail -r | tail -n+2 | tail -r | wc -l -!alias !lambda !ec echo -ne '%%m: alias !tmp %%s\n!tmp\n' -!alias !topic !rc echo "TOPIC %%f :%%s (set by %%n at $(date -u "+%%%%b %%%%m %%%%R") UTC)" +!alias !randip !c perl -le '$,=".";print map int rand 256,1..4;' '%q' +!alias !jarg !c cat /service/gitd/jargon/jarg.txt | XuntilY '^:%q' '^:.' | tail -r | tail -n+2 | tail -r +!alias !jargcheck !c cat /service/gitd/jargon/jarg.txt | XuntilY '^:%q' "^:." | tail -r | tail -n+2 | tail -r | wc -l +!alias !topic !rc echo 'TOPIC %f :%q (set by %n at '"$(date -u "+%%b %%m %%R") UTC)" !alias !pty !sh python -c 'import pty;pty.spawn("/usr/pkg/bin/bash")' -!alias !you !rc if [ "%%s" = "there" ] || [ "%%s" = "there?" ]; then printf "PRIVMSG %%f :\x01ACTION is totally here\x01\n"; else echo "PRIVMSG %%f :no, you %%s" | tr '?' '!'; fi !alias !escape_sequences !c grep "//here" /root/services/segfault/segfault.c -!alias !irc !eval %~/scripts/ircrawcommand %%s -!alias !ic !eval %~/scripts/irccommand %%s +!alias !irc !eval %~/scripts/ircrawcommand %s +!alias !ic !eval %~/scripts/irccommand %s !alias !reeval !eval %~/files/useraliases ######### the todo shit ######### -!alias !addtodo !leetappend /var/todo/%%n.txt 10 "%%s" -!alias !todo.add !addtodo %%s - -!alias !todo !c cat -n /var/todo/%%n.txt | shuffle -f-| head -n1 -!alias !todo. !todo %%s - -!alias !diddo !c rmln %%s /var/todo/%%n.txt -!alias !todo.rm !diddo %%s -!alias !tododel !diddo %%s - -!alias !todos !c cat -n /var/todo/%%n.txt -!alias !todo.list !todos - -!alias !ntodo !c wc -l /var/todo/%%n.txt -!alias !todocount !ntodo -!alias !todo.length !ntodo - -!alias !greptodo !c cat -n /var/todo/%%n.txt | grep -i "%s" -!alias !todogrep !greptodo %%s -!alias !todo.grep !greptodo %%s - -!alias !todo.claim !c ln /var/todo/%%s.txt /var/todo/%%n.txt +!alias !todo !c cat -n '/var/todo/%n.txt' | shuffle -f-| head -n1 +!alias !todo.add !leetappend '/var/todo/%n.txt' 10 '%q' +!alias !todo.claim !c ln '/var/todo/%q.txt' '/var/todo/%n.txt' +!alias !todo.get !c head -n '%q' '/var/todo/%n.txt' | tail -n1 +!alias !todo.grep !c cat -n '/var/todo/%n.txt' | grep -i '%q' +!alias !todo.gopher !c echo "gopher://$(rdns "$(hop0 "%h")")/1/todo/"'%n'".txt" +!alias !todo.link !say http://hacking.allowed.org/todo/%n.txt +!alias !todo.list !c cat -n '/var/todo/%n.txt' +!alias !todo.length !c wc -l '/var/todo/%n.txt' + There's a real tab right.... v-- there. +!alias !todo.n !todo.grep ^ *%s +!alias !todo.rm !c rmln '%q' '/var/todo/%n.txt' +!alias !todo.who !c ls -i /var/todo | sort | clump ########## the end of that shit ######### -!alias !tmplink !c echo '' > /var/www/sites/hacking/tmplink.html -!alias !links !c if [ "%%s" ];then grep -i "%%s" /var/www/sites/hacking/links.txt;else echo http://$(rdns $(hop0 %%h))/cgi-bin/links.cgi;fi -!alias !rmuseralias !c rmln %%s %~/files/useraliases -!alias !useraliases !c cat -n %%~/files/useraliases %%s -!alias !duplicateuseraliases !c cut '-d ' -f2 %%~/files/useraliases | uniq -d -!alias !grepuseraliases !useraliases | grep %%s +########## the useraliases shit ######### +!alias !rmuseralias !c rmln '%q' %~/files/useraliases +!alias !useraliases !c cat -n %~/files/useraliases +!alias !duplicateuseraliases !c cut '-d ' -f2 %~/files/useraliases | uniq -d +!alias !grepuseraliases !c cat -n %~/files/useraliases | grep '%q' +!alias !useralias.rm !c rmln '%q' %~/files/useraliases +!alias !useralias.list !c cat -n %~/files/useraliases +!alias !useralias.dups !c cut '-d ' -f2 %~/files/useraliases | uniq -d +!alias !useralias.grep !c cat -n %~/files/useraliases | grep '%q' +########## the end of taht shit ######### + +!alias !tmplink !c echo '' > /var/www/sites/hacking/tmplink.html +!alias !links !c if [ '_%q' != '_' ];then grep -i '%q' /var/www/sites/hacking/links.txt;else echo http://"$(rdns "$(hop0 '%h')")"/cgi-bin/links.cgi;fi !alias !tits !say [ . | . ] -!alias !geo !c whob %%s | egrep "^Country:|^City" -!alias !dcc !rc p=$[45000 + ($RANDOM % 20000)];echo -e "privmsg %%n :\x01DCC SEND $(basename %%s) $(dcchelper $(gethostbyname %%h)) $p `wc -c "%%s"|tr -s ' '|cut '-d ' -f2`\x01";ncat -l -p $p < "%%s" -!alias !title !c wget --no-check-certificate -qO- "%%s" | tr '>' '\n' | XuntilY "' '\n' | XuntilY "