Topic: Computers bash
(link)

10:07am, Tuesday 9 May 2006

While reading LWN/linux.com I discovered that bash can do tab-completion on a remote host:

scp foo.txt remotehost:somed<tab>
goes off and makes a batch-mode ssh connection to remotehost, finds the possible completions and returns them to the partial command line. That's just freaky.

Oh, and bind '"\t":menu-complete' gets cyclic-completion instead of partial-completion, which is strange at first but feels like it might be faster when I get used to it.

Topic: Computers And all because...
(link)

10:52pm, Tuesday 11 April 2006 (Updated 11:46pm, Tuesday 18 April 2006)

...I wanted pretty ping graphs like Russell's. So I had to sit down with the CLI manual for my ADSL router. Turns out the command syntax is sufficiently close to Linux iptables that I figured out

firewall rule create chain=sink index=4 prot=icmp icmptype=echo-request action=accept
firewall rule create chain=source index=4 prot=icmp icmptype=echo-reply action=accept
were the runes I required. Now I have pretty ping graphs too!

Update:

Argh, a new firmware version has changed the command syntax... This seems to work:

service system ifadd name=PING_RESPONDER group=wan
Topic: Computers Spam of the day
(link)

2:32pm, Wednesday 29 March 2006

Subject: uselessness onslaught

Just about sums it up, really...

Topic: Computers Unknown error 990
(link)

11:31am, Friday 17 February 2006

In a word: filesystem corruption. (OK, that was two words.) Fortunately xfs_repair does exactly what its name suggests, and "debsums -ca" and "apt-get install --reinstall" appear to have salvaged the worst of the damage.

Topic: Computers Compression
(link)

10:00am, Thursday 16 February 2006

I just found out about rzip and 7zip, new-ish file compression utilities. Being obsessive about performance and statistics and stuff, I ran a few tests: all these required the compressor to produce its "best" (most compressed) output.

compressorsize of compressed file (%)CPU time (s)
gzip48.91.38
bzip246.112.4
rzip45.217.2
7zip43.128.2

So gzip is far, far away the fastest (which explains its continued widespread use) but using one of the others could save significant amounts of space with very large files - if you have the time to spare.

<-
 Topic:    
->

Powered by Personal Weblog.

April 2024
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Mar   May

[RSS]

 


 


Dave Holland <dave@biff.org.uk>
$Id: index.php,v 1.75 2010-07-09 22:15:04 dave Exp $