.vimrc

” Los’ .vimrc ” http://www.carlos-m.net/

set tabstop=4 set shiftwidth=4 set shiftround set expandtab set autoindent set laststatus=4 set ruler hi Comment ctermfg=Cyan

:autocmd FileType mail :nmap :w:!aspell -e -c %:e

run_and_log

[code] #!/bin/sh

# # Runs a file and stores output (if any) to log files. Meant to be run # by cron jobs. # -Los # http://www.carlos-m.net/ #

unset PATH DATE=/bin/date SH=/bin/sh CAT=/bin/cat RM=/bin/rm ECHO=’/bin/echo’

TMPDIR=$HOME/tmp

TMPFILE=$TMPDIR/`$DATE +%Y%m%d%H%M%S`.$$ TMPLOG=$TMPFILE.log TMPERR=$TMPFILE.err

LOGDIR=$HOME/var/log LOGFILE=$LOGDIR/cron.log ERRFILE=$LOGDIR/cron.err

TORUN=$@

$SH $TORUN > $TMPLOG 2> $TMPERR # only run Bourne Shell […]

bugtraq.rc

[code] # # Sort mail from bugtraq mailing list # -Carlos Macasaet # http://www.carlos-m.net/ #

:0: bugtraq.lock * ^List-ID:.*bugtraq\.list-id\.securityfocus\.com | $RCVSTORE +bugtraq [/code]

spam.rc

[code] # spam.rc # -ifile: http://www.nongnu.org/ifile/ # in addition, I use Martin Macok’s scripts for using ifile with procmail # – http://xtrmntr.org/ORBman/ifile.procmail.html

# directories used BINDIR=$HOME/usr/bin

# programs used KSH=$BINDIR/ksh

# Insert ifile header info # if you don’t want to learn from new messages, use ifile.inject.header :0 fBw | $KSH $BINDIR/ifile.inject-learn.header

# and now […]

announcements.rc

[code] # announcements.rc # moves all mail from addresses in announcers.lst to the folder “announcements” # -Carlos Macasaet # http://www.carlos-m.net/

:0 * ? formail -x”From:” -x”From:” -x”Sender:”\ -x”Reply-To:” -x”Return-Path:”\ | egrep -is -f $PMDIR/announcers.lst { :0: announcements.lock | $RCVSTORE +announcements } [/code]

.zshrc

[code] # # Carlos Macasaet’s ZSH Configuration # http://www.carlos-m.net/ #

# some global options setopt KSH_GLOB setopt SH_GLOB setopt NO_BARE_GLOB_QUAL setopt GLOB_SUBST setopt NO_HUP setopt AUTO_CD setopt CD_ABLE_VARS

# set environment export EDITOR=/usr/bin/vim export VISUAL=$EDITOR export FCEDIT=$EDITOR export PAGER=/usr/bin/less

export TMPDIR=$HOME/tmp

umask 022

# set path and manpath path=( $HOME/bin $HOME/usr/bin /usr/local/bin /bin /usr/bin /usr/X11R6/bin […]

.procmailrc

[code] # # Carlos Macasaet’s .procmailrc # http://www.carlos-m.net/ #

# # Common Directories # HOME = /home/$USER MAILDIR = $HOME/Mail # MH… represent LOGDIR = $HOME/var/log PMDIR = $HOME/etc/procmail # recipes stored here NMHDIR = /usr/lib/nmh

# # Common Programs # RCVSTORE = $NMHDIR/rcvstore # stores MH messages RCVTTY = $NMHDIR/rcvtty # new mail notification

[…]

trinity.c

[code lang=”cpp”] /* trinity.c * Trinity, reverse-engineered by Carlos Macasaet * http://www.carlos-m.net/ */

#include #include #include #include

extern pid_t neo;

int wake_neo() { key_t neo; int msgflg; int msqid;

msqid = msgget( ftok( “/dev/null”, neo ), ( IPC_CREAT | 0240 ) ); kill( neo, SIGKISS ); } [/code]

neo.c

[code lang=”cpp”] /* neo.c * Neo, reverse engineered by Carlos Macasaet * http://www.carlos-m.net/ */

#include #include #include

/* enlightenment levels */ typedef int enlightenment_level; #define MR_ANDERSON -1 #define TOOK_RED_PILL 0 #define I_KNOW_KUNG_FU 1 #define MET_ORACLE 2 #define THERE_IS_NO_SPOON 3 #define RELOADED 4 /* I don’t have to dodge bullets */

enlightenment_level elevel;

void die(); […]

agent_smith.c

[code lang=”cpp”] /* agent_smith.c * Agent Smith, reverse engineered by Carlos Macasaet * http://www.carlos-m.net/ */

#include #include #include #include #include

typedef int agent;

extern pid_t neo; extern int errno;

agent smith() { pid_t clone; while( 1 ) { if( kill( neo, 0 ) == -1 && errno == ESRCH ) return( 0 );

[…]