Finding files modified since a certain time

June 30, 2008

To find files in the current and its subdirectories that were modified since 1 day ago:

find . -mtime -1 -print

To find files in the current and its subdirectories that were modified since 1 week (7 days) ago:

find . -mtime -7 -print

References: http://www.mydigitallife.info/2006/01/19/find-files-that-are-modified-today-or-since-certain-time-ago-in-unix/


Tweaking browser appliance

August 2, 2007

Found a handy document on tweaking the browser virtual appliance: http://www.spywareinfo.com/articles/vmware/batweaks.php

Among other stuff, it covers:

  • Enabling FireFox updates
  • Discard changes after shutdown
  • Sharing files between appliance and host
  • etc…

Helix virtual appliance

August 1, 2007

Am trying out the Helix virtual appliance, which is a pre-installed Ubuntu Breezy (5.10) with SVN and Trac. Here’s a nice walkthrough: http://www.geocities.com/toepfer_c/helix


My _vimrc

July 11, 2007

set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin

set diffexpr=MyDiff()
function MyDiff()
let opt = ‘-a –binary ‘
if &diffopt =~ ‘icase’ | let opt = opt . ‘-i ‘ | endif
if &diffopt =~ ‘iwhite’ | let opt = opt . ‘-b ‘ | endif
let arg1 = v:fname_in
if arg1 =~ ‘ ‘ | let arg1 = ‘”‘ . arg1 . ‘”‘ | endif
let arg2 = v:fname_new
if arg2 =~ ‘ ‘ | let arg2 = ‘”‘ . arg2 . ‘”‘ | endif
let arg3 = v:fname_out
if arg3 =~ ‘ ‘ | let arg3 = ‘”‘ . arg3 . ‘”‘ | endif
let eq = ”
if $VIMRUNTIME =~ ‘ ‘
if &sh =~ ‘\<cmd’
let cmd = ‘”"‘ . $VIMRUNTIME . ‘\diff”‘
let eq = ‘”‘
else
let cmd = substitute($VIMRUNTIME, ‘ ‘, ‘” ‘, ”) . ‘\diff”‘
endif
else
let cmd = $VIMRUNTIME . ‘\diff’
endif
silent execute ‘!’ . cmd . ‘ ‘ . opt . arg1 . ‘ ‘ . arg2 . ‘ > ‘ . arg3 . eq
endfunction

set nobackup
set expandtab
set tabstop=4
set ai
set si
set shiftwidth=4
color peachpuff
set guifont=lucida_console:h8:cANSI
set co=80
set lines=44


LAMP Virtual Appliance

June 19, 2007

This is a LAMP VM that’s certified by VMWare: http://www.virtualappliances.net/products/lamp.php

Default username/password is root/root.


Installing Oracle XE on Debian and Ubuntu

April 3, 2007

Before installing, make sure you have configured the OS swap space to be at least 1GB! If not, do not fret… the installation guide also offers an alternative:

http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html