xabbott.blg

Posts Tagged ‘bash

Configuration files

without comments

I just noticed I can’t post my .bashrc properly on here. It strips some chars out of the color codes. So I thought I’d put them on Pastebin but the site is melting. So I used Arch’s pastebin:.bashrc, .dir_colors, .Xdefaults.

If you want even more configuration file goodness check out Vico’s little Linux site and dotfiles.org.

Written by xabbott

February 9, 2007 at 7:26 pm

Posted in bash, config, linux

Tagged with , , ,

Quick Webserver

without comments

Saw this on LearnPydia. If you have Python you can type the following in any directory and make it accessible via http.
python -c 'import SimpleHTTPServer; SimpleHTTPServer.test()'

If you use it often enough you can make it a Bash alias too.
alias servethis="python -c 'import SimpleHTTPServer; SimpleHTTPServer.test()'"

Written by xabbott

February 9, 2007 at 4:59 pm

Posted in internet, linux, python

Tagged with , , , , ,