You are here

Graham's blog

Up to 4.5 miles

Ran 4.5 miles today in 45 minutes. Should find it easy to run the 3 miles scheduled for tomorrow. No muscle pain today but beginning to think that sports drinks may be a good idea as I seemed to be lacking energy towards the end of this run.

First 4 mile run

Ran my first 4 miles today at Bridgend Esporta. Getting easier to run the first 3 now. Lets see if I can run the same distance again tomorrow.

Great North Run - please sponsor me!

I'm going to be running the Great North Run this year on the 1st of October along with my 3 brothers. I'm running to raise money for Mencap so please sponsor me!

Please sponsor me, it's really easy - you can donate online by credit or debit card at the following address:

http://www.justgiving.com/grumpy

All donations are secure and sent electronically to Mencap. If you are a UK taxpayer, Justgiving will automatically reclaim 28% Gift Aid on your behalf, so your donation is worth even more.

cheers,

Graham

unix network file copy

using scp, if available
scp -C -o CompressionLevel=<compression> <file> <machine>:<location>

 

compressed whole directory:

tar cvf - . | gzip -c -1 | rsh remote_machine "cd dest_dir; gunzip -c | tar xvf -" 

 

be carfeul of tar throwing errors on files too big though

transfer individual files using

compressed:

dd if=filename bs=256k | gzip -c -1 | rsh remote_machine "gunzip -c | dd of=filename ibs=256k obs=256k"

or uncompressed:

truncated dump files

from http://developers.sun.com/prodtech/cc/articles/DebugLibraries/DebugLibraries_content.html

elfdump -p core | tail -5
     Program Header[13]:
         p_vaddr:      0xffbf8000      p_flags:    [ PF_X  PF_W  PF_R ]
         p_paddr:      0               p_type:     [ PT_LOAD ]
         p_filesz:     0x8000          p_memsz:    0x8000

Life After Sony Connect

an alternative to sonicstage as well?

URL: Life After Sony Connect

recursive grep using find

for those systems where grep -r just doesn't work!

 

find . -exec grep "find string" '{}' \; -print

fonts...for the web!

http://www.mikeindustries.com/sifr/

 

I hate flash though.  I really hate it.  Oh, wait a minute this looks like a good use for it.

oracle - sinner.sql

RAC - srvinst

java to get the name of the instance for a db on the local host
(uses shell script similar to the srvcheck solution)

import java.net.InetAddress;

import oracle.ops.mgmt.database.Instance;
import oracle.ops.mgmt.database.ParallelServerConfig;
import oracle.ops.mgmt.operation.GetConfigurationOperation;
import oracle.ops.mgmt.operation.GetConfigurationResult;

public class ClusterLocalInstance {
private static final String USAGE = "checks to see name of local instance for provided db name";

Pages

Subscribe to RSS - Graham's blog