Friday, 23 March 2012

Remove single revision of a file from CVS

To remove a version of a file from CVS (careful!), e.g., remove vsn 1.3, but keep 1.2
cvs admin -o1.3 myfile [where 'o' stands for 'outdates']

To TOTALLY remove a file from the current directory and CVS repository :

rm myfileisjunk
cvs remove myfileisjunk
cvs commit -m"no longer needed (IS)" myfileisjunk

Thursday, 9 February 2012

Mercurial : Use Hooks to maintain list of binary files required but excluded

Use a precommit declared in the .hg/hgrc file of the local repository

Note - this is not retained in the repo and is individual to each mirror

[hooks]
precommit.001 = find `hg root`/bonecrushertest/src | egrep '\.tar\.gz$|\.rpm$|\.tgz' | tee `hg root`/bonecrushertest/src/manifest.txt

Wednesday, 11 January 2012

Oracle : Identifying last SCN available that has been backed up

select next_change#-1 last_change, br.* from V$BACKUP_REDOLOG br order by first_change# desc

Monday, 28 November 2011

Freeware: Diff pdf

Very useful pdf comparision program

http://www.qtrac.eu/diffpdf.html

Wednesday, 23 November 2011

Windows : List users AD group

net user /domain ruwins

Monday, 21 November 2011

Linux : Clear bash history

alias histfix='history -c;rm -rf ~/.bash_history;'

Friday, 11 November 2011

Linux : zip without files names, list zip contents

zip -j - will Junk directories paths from files being added
unzip -l - will list files in z zip archive