diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/cowsay.lua | 61 | ||||
-rw-r--r-- | scripts/hardreset | 4 | ||||
-rw-r--r-- | scripts/lamba | 2 | ||||
-rw-r--r-- | scripts/savealias | 3 | ||||
-rw-r--r-- | scripts/shell | 3 | ||||
-rw-r--r-- | scripts/startup_crasher | 1 | ||||
-rwxr-xr-x | scripts/subseg | 1 | ||||
-rwxr-xr-x | scripts/subseg.sh | 35 |
8 files changed, 108 insertions, 2 deletions
diff --git a/scripts/cowsay.lua b/scripts/cowsay.lua new file mode 100644 index 0000000..6f0588e --- /dev/null +++ b/scripts/cowsay.lua @@ -0,0 +1,61 @@ + +-- my drawing +function ascii_nerd( name ) + local s = "" + s = s .. [[ + +\ | | / +| o o | + \ O / + | | +]] + local l = string.len(name) + for i=1,l+4 do s = s .. "+" end + s = s .. "\n| " .. name .. " |\n" + for i=1,l+4 do s = s .. "+" end + return s +end + +--from beej.us +function ascii_goat( text ) + local s = "" + s = s .. [[ )_) + ___|oo) ]] + s = s .. text .. "\n" + s = s .. [['| |\_| + |||| # + ````]] + return s +end + +--http://ascii.co.uk/art/shoot +function ascii_shoot( name ) + local s = "" + if name == nil then name = "" else + name = "("..name..")" end + s = s .. [[ + O + <\==- - - - - - - --- + ./ \ _/\_\O ]] .. name .. [[ +]] + return s +end + +function ascii_lurker( name ) +end + +function ascii_hunt( name ) +end + +function ascii_pc( pccmd ) +end + +for k,v in ipairs(arg) do + if v == "nerd" then + print( ascii_nerd( arg[k+1] ) ) + elseif v == "goat" then + print( ascii_goat( arg[k+1] ) ) + elseif v == "shoot" then + print( ascii_shoot( arg[k+1] ) ) + end +end diff --git a/scripts/hardreset b/scripts/hardreset new file mode 100644 index 0000000..735eb0c --- /dev/null +++ b/scripts/hardreset @@ -0,0 +1,4 @@ +!untail /home/segfault/files/cmd_out +!c cat /home/segfault/files/cmd_out > /dev/null +!leettail 56/home/segfault/files/cmd_out +!reset diff --git a/scripts/lamba b/scripts/lamba deleted file mode 100644 index 20a7b24..0000000 --- a/scripts/lamba +++ /dev/null @@ -1,2 +0,0 @@ -!lamba !alias !tmp %s -!tmp diff --git a/scripts/savealias b/scripts/savealias new file mode 100644 index 0000000..f41dd51 --- /dev/null +++ b/scripts/savealias @@ -0,0 +1,3 @@ + !unsavealias %s +!leetappend /home/segfault/files/useraliases 10 !alias %s +!say alias saved. diff --git a/scripts/shell b/scripts/shell new file mode 100644 index 0000000..28db4ee --- /dev/null +++ b/scripts/shell @@ -0,0 +1,3 @@ +!more +!changetail %~/files/sh_out %f 56 +!leetappend %~/files/sh_in 10 %s diff --git a/scripts/startup_crasher b/scripts/startup_crasher new file mode 100644 index 0000000..e52f30d --- /dev/null +++ b/scripts/startup_crasher @@ -0,0 +1 @@ +!leettail 01/services/segfault-link/files/rawlog diff --git a/scripts/subseg b/scripts/subseg new file mode 100755 index 0000000..c8c597b --- /dev/null +++ b/scripts/subseg @@ -0,0 +1 @@ +!ec ~/scripts/subseg.sh %s diff --git a/scripts/subseg.sh b/scripts/subseg.sh new file mode 100755 index 0000000..27ba0e1 --- /dev/null +++ b/scripts/subseg.sh @@ -0,0 +1,35 @@ +#!/bin/sh +if [ "_$1" == "_" ];then + echo '!say usage: !subseg server port' + echo '!say No SSL support yet. open an ssl tunnel yourself. :P' + exit 1 +else + export segserver=$1 +fi +if [ "_$2" == "_" ];then + export segport=6667 +else + export segport=$2 +fi +if [ "_$3" == "_" ];then + export 'segchan=#default' +else + export "segchan=$3" +fi +export seghome=/home/segfault/subseg/$$ +mkdir -p $seghome +mkdir $seghome/scripts +echo '!rawrecord 1' >> $seghome/scripts/prestartup +echo '!nick subseg' >> $seghome/scripts/prestartup +echo '!raw user ss ss ss :ss' >> $seghome/scripts/prestartup + +echo '!raw join '"$segchan" >> $seghome/scripts/startup +echo '!leettail 02'"$segchan"':'$seghome/files/eval_in >> $seghome/scripts/startup +mkdir -p $seghome/files +touch $seghome/files/eval_in +touch $seghome/files/rawlog +echo '!say check it. tailing in 5 seconds...'$$ +segfault 2>&1 >/dev/null & +sleep 5 +echo '!leettail 08#cmd:'$seghome/files/rawlog +echo '!alias !tellsub'$$' !leetappend '$seghome'/files/eval_in 10 %s' |