Archive for the 'cli' Category

tar backup stupidity and limited space

Wednesday, June 11th, 2008

So, pretend you have:

a new Mac laptop with a fast hard drive, but one that is smaller than all the data you need to backup
A backup hard drive you’ve used on Windows and Linux, but is formatted NTFS, and is much larger than your new laptop’s HD
You have files named on your system that needs [...]

erlang

Tuesday, November 27th, 2007

For some reason, the Gentoo install of erlang put the man pages into man sections that ended in “erl”. For example, instead a directory named man3 for the 3rd man page section, it’s man3erl.
I wrote a quick alias erlman that only searches these erlang man page sections.
~/.bashrc

 

alias erlman="man -S 1erl:3erl:4erl:6erl"

 

Creating stream-able video

Tuesday, June 19th, 2007

I spent much to much time trying to figure out the right combination of video/audio encodings that would would from an RTSP streaming server (went with a RealServer demo, for now) to a variety of clients (QuickTime Player, VLC, various phones, etceteras.)
First, VLC is a champ. Every time I tried a new streaming server, [...]

spamassassin: make it work!

Friday, June 16th, 2006

I emerged spamassassin, which installed the spamd server, and the spamc client, with which to talk to the server.
However, the logs were complaing TELL commands have not been enabled. It seems that SPAMD_OPTS in /etc/conf.d/spamd is missing the -l (–allow-tell) option.
Adding the above -l to SPAMD_OPTS allowed spamc to talk to spamd and make [...]

mutt: sending via multiple accounts with esmtp

Thursday, June 15th, 2006

I found it much easier to set up multiple smtp accounts for mutt using esmtp than anything else. It’s actually completely straightforward — just make esmtp do all the work …

install esmtp
create your ~/.esmtprc file

man esmtprc — seriously, it’s easy

add the following to your ~/.muttrc

set sendmail=”/usr/bin/esmtp”
set use_envelope_from

rxvt-unicode: options I use

Tuesday, May 2nd, 2006

These are the most common options I use as a default terminal.

option
purpose

-rv
Reverse video — black->white, white->black;
changes the behavior of progams that care about dark and light terminals

-fade 75
When the terminal window looses focus, this setting fades to the paramenter’s percentage of brightness

-ls
Start the shell as a login shell

+sb
Turn off the scrollbar

-bc
Blink the cursor

-ip (or -tr)
Turn [...]

rxtv-unicode: daemonize and use client for faster loads

Tuesday, May 2nd, 2006

“rxvt-unicode” is a really nice terminal. You can increase loading speed and memory using, if you tend to use multiple terminals, by using the urxvtd daemon and the urxvtc client.
First, you need to launch urxvtd. This is as easy as adding a line like the following to your ~/.xinitrc:
urxvtd &
Once the daemon is [...]

Topic – Command Line Apps

Tuesday, May 2nd, 2006

I’m going to try to keep things I’ve learned about different command line apps here.  I tend to move between more heavy desktop environments and lighter (and more interesting) window managers like ion3 or wmii.
This time, I’m going to actually keep notes of the different programs I use.  This will include programs like rxvt-unicode, my [...]

notes about computers and lifestyle