Wednesday 5 September 2012

MS Rdp on Mac - controls

Use Command+1 to fit to window Use Command+2 to enter/exit fullscreen mode. Use Command+',' to show preferences

Saturday 14 July 2012

Windows : mount error(12): Cannot allocate memory” on a Windows Share"

Need to have windows reconfigure itself for file serving * Set “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” to “1″. * Set “HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” to “3″. * Restart See http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/d8f2c741-3ad0-4839-9cb3-ff1f11e8ec1a

Friday 29 June 2012

linux : Fixing curl ca-cert warnings

Either # Permanent insecurity for current user ( cat END_CAT --insecure END_CAT ) > ~/.curlrc or # Update the ca certificate bundle for the machine cp /usr/share/ssl/certs/ca-bundle.crt /usr/share/ssl/certs/ca-bundle.crt.bkp curl http://curl.haxx.se/ca/cacert.pem -o /usr/share/ssl/certs/ca-bundle.crt

Monday 28 May 2012

Ruby : Pretty print an object

require 'ap' obj = someObject ap obj

Sunday 27 May 2012

Linux : Unpack an rpm

rpm2cpio chef-full-0.10.8-3.x86_64.rpm | cpio -idv

Tuesday 22 May 2012

Linux : Force Ntp update

/etc/init.d/ntpd stop ntpdate -u pool.ntp.org /etc/init.d/ntpd start

Monday 21 May 2012

Excel - Replace all commas with a newline character

Replace all commas with a newline character - what to put in the replace field? Hold down , and type 0010 using the numbers on the Num keypad, *not* the numbers under the function keys.

Wednesday 18 April 2012

Search ldap server under linux

This uses the default ldap repo set up in /etc/ldap.conf

ldapsearch -v -x -s sub uid=USERNAME

Friday 23 March 2012

Remove single revision of a file from CVS

To remove a version of a file from CVS (careful!), e.g., remove vsn 1.3, but keep 1.2
cvs admin -o1.3 myfile [where 'o' stands for 'outdates']

To TOTALLY remove a file from the current directory and CVS repository :

rm myfileisjunk
cvs remove myfileisjunk
cvs commit -m"no longer needed (IS)" myfileisjunk

Thursday 9 February 2012

Mercurial : Use Hooks to maintain list of binary files required but excluded

Use a precommit declared in the .hg/hgrc file of the local repository

Note - this is not retained in the repo and is individual to each mirror

[hooks]
precommit.001 = find `hg root`/bonecrushertest/src | egrep '\.tar\.gz$|\.rpm$|\.tgz' | tee `hg root`/bonecrushertest/src/manifest.txt

Wednesday 11 January 2012

Oracle : Identifying last SCN available that has been backed up

select next_change#-1 last_change, br.* from V$BACKUP_REDOLOG br order by first_change# desc