*scratch*

It is not a diary the most people have rather a *scratch* Emacs buffer. It keeps notes about everything related to Linux, Open Source, UNIX, MacOSX and software engineering.

Saturday, January 29, 2005

 

dmalloc

Introduce a shell function first (KSH/BASH/ZSH):

dmalloc () {
eval `command dmalloc -b $*`
}

Link application with -ldmallocthc++ (C++ with threads) or -ldmalloc (for C only) at the end of the list of libraries.

Activate your shell environment:

dmalloc -l dmalloc.log -i 100 debug|verbose|none|run|low|med|high|all

dmalloc installs a shell variable to the current environment:

DMALLOC_OPTIONS=debug=0x26f07c01,inter=100,log=dmalloc.log


 

GnuPG mini howto

Encrypt a file:
gpg --armor --encrypt --recipient  --yes "my_file_name" 

Decrypt a file:
gpg --armor --decrypt "my_file_name"

What works for GnuPG with --keyserver-options honor-http-proxy.
export http_proxy=http://proxy.mycompany.com:8080/

Search for keys on a server:
gpg --keyserver pgp.mit.edu --keyserver-options honor-http-proxy   --search-keys "my@mail.com"

Import my public key:
gpg --keyserver pgp.mit.edu --keyserver-options honor-http-proxy   --send-key "my@mail.com"


Archives

December 2004   January 2005   February 2005   March 2005   May 2005   July 2005   October 2005   January 2006   March 2006   May 2006   July 2006   December 2006   January 2007   February 2007   May 2007   July 2007   November 2007   January 2008   February 2008   July 2008   August 2008   September 2008   November 2008   April 2009  

This page is powered by Blogger. Isn't yours?