26 Apr 2011

AWK-ward Ruby

From AWK to Ruby

tomayko.com   10:16

29 Oct 2010

TMUX – The Terminal Multiplexer (Part 1)

Alternative to GNU Screen with some interesting features. Vertical splits look especially interesting:

I’m looking forward to Part 2.

blog.hawkhost.com   05:23

19 Jul 2010

3 shell scripts: Kill weasel words, avoid the passive, eliminate duplicates

I can’t think of anything I like better than the intersection of writing and shell hacking.

matt.might.net   10:59

27 Jan 2010

HANDY ONE-LINERS FOR RUBY

Nice list of Ruby one-liners when working at the shell. e.g., emulating nl(1):

# number each line of a file (left justified).
    $  ruby -ne 'printf("%-6s%s", $., $_)' < file.txt
# number each line of a file (right justified).
    $  ruby -ne 'printf("%6s%s", $., $_)' < file.txt
# number each line of a file, only print non-blank lines
    $  ruby -e 'while gets; end; puts $.' < file.txt

Unlike some other things, the -p and -e switches are something I’ve always been glad ruby adopted from perl.

fepus.net   10:08

09 Dec 2009

hub: git + hub = github

defunkt’s hub is a command line utility that adds GitHub knowledge to git. Sweet. It expands GitHub repository references so you can do stuff like: git clone defunkt/gist, git remote add bmizerany, etc.

github.com   09:19

09 Nov 2009

rtomayko's dotfiles

I recently started a repository for my dotfiles, shell environment, vim config, and utility scripts. As of right now, I’m about 25% through all of the stuff in my $HOME — it should all fill in shortly.

github.com   16:32

02 Nov 2009

dtach

Not sure how I never heard of this program before:

dtach is a tiny program that emulates the detach feature of screen, allowing you to run a program in an environment that is protected from the controlling terminal and attach to it later. dtach does not keep track of the contents of the screen, and thus works best with programs that know how to redraw themselves. dtach does not, however, have the other features of screen, such as its support of multiple terminals or its terminal emulation support. This makes dtach extremely tiny compared to screen, making it more easily audited for bugs and security holes, and also allows it to fit in environments where space is limited, such as on rescue disks.

GitHub has rake tasks that use dtach to manage redis and maybe some other things.

dtach.sourceforge.net   13:12

25 Oct 2009

goosh.org - the unofficial google shell

This is pretty rad. You can do web searches and whatnot without leaving a command line style interface but you can also do stuff like read news feeds. Check it:

goosh

I’d love to settle into this kind of workflow but these shell interfaces always have one thing or another wrong with them. Maybe this is The One. We’ll see.

goosh.org   09:11

25 May 2009

An easy way to run many tasks in parallel

Nice. The xargs(1) switch -P N will run up to N separate processes in parallel. Combine with the -n M switch for a quick and dirty process pool.

xaprb.com   08:41

05 Mar 2009

computerworld.com.au   15:38

23 Feb 2009

bash 4.0 NEWS file

Big list of new features in bash 4.0.

tiswww.case.edu   14:52

26 Jan 2009

A Well-Tempered Pipeline

A lost art, indeed.

spinellis.gr   18:53

20 Oct 2008

Screencast: "I use Vim for everything"

There’s so many great workflow hacks in here.

blip.tv   18:55

02 Aug 2008

git-sh(1) - A customized bash shell suitable for git work.

I threw this together a few weeks ago and now I’m not sure how I lived without it now. I know you people have cool bash/git hacks sitting in your ~/.bashrc — hand them over.

github.com   21:23

09 Apr 2008

Interactive Google App Engine Python Shell

The Python REPL running on Google’s infrastructure.

shell.appspot.com   19:10

16 Mar 2008

BashPitfalls

Most of these are relevant to POSIX sh(1). This one gets me every time: echo <<EOF :)

wooledge.org:8000   08:29

25 Feb 2008

Csh Programming Considered Harmful

Uggghhh. I just spent 30 minutes hunting some arcane tcsh bug caused by coreutils dircolors. This is my revenge. I don’t even know I had any csh code running on this machine. It turns out that MacOS X’s /usr/bin/which is implemented in csh. Dumb.

faqs.org   05:06

29 Jan 2008

pv(1) - Pipe Viewer

pv can be inserted into any normal pipeline between two processes to give a visual indication of how quickly data is passing through, how long it has taken, and an estimate of how long it will be until completion.

ivarch.com   06:44

16 Jan 2008

In Unix, what do some obscurely named commands stand for?

Dennis Ritchie: “There was a facility that would execute a bunch of commands stored in a file; it was called runcom for ‘run commands’, and the file began to be called ‘a runcom’. rc in Unix is a fossil from that usage.”

kb.iu.edu   23:21

21 Nov 2007

Bourne Shell Server Pages

“Installation is left as an exercise for the reader.”

hyperrealm.com   12:28

21 Oct 2007

Hotwire graphical terminal

Looks like they’re bringing the basic capabilities of readline up to the GUI level. Definitely interesting.

howtoubuntu.com   06:15