Sunday, February 21, 2010
Battery Internal Resistance
Monday, February 8, 2010
Microsoft remote desktop connection tips
Ctrl + Alt + End
Send Ctrl + Alt + Delete to remote session; Brings up the Windows Security dialog box.
Ctrl + Alt + Break
Switches the client between a window and full screen.
--- LESS USEFUL
Alt + Page Up
Switches between programs from left to right.
Alt + Page Down
Switches between programs from right to left.
Alt + Insert
Cycles through the programs in the order they were started.
Alt + Home
Displays the Start menu.
Ctrl + Alt + Pause
Toggles between full screen and windowed mode
(note that this does not set the client desktop to the correct size)
Alt + Del
Displays the Windows menu
Ctrl + Alt + Num -
Places a snapshot of the client’s active window on the clipboard
Ctrl + Alt + Num +
Places a snapshot of the client’s entire desktop area on the clipboard
Ctrl+Alt+Shift+Home
To invoke task manager for nested terminal services sessions (two levels deep)
http://www.online-tech-tips.com/windows-xp/ctrl-alt-del-remote-desktop/
Friday, February 5, 2010
Bash script- Kill a process if it runs too long
#!/bin/bash
# Can hang (google actually doesn't respond to ab useragent)
ab -c20 -n100 http://www.google.com
# get pid from previous command
pid=$!
# Wait for 10 seconds then send an interrupt
# apachebench will produce output if ctrl-c (or kill -2)
sleep 10 && kill -2 $pid > /dev/null 2>&1&
wait $pid
Thursday, February 4, 2010
Bash scripting reference card
Sunday, January 31, 2010
Rxvt is a better terminal for cygwin
http://c2.com/cgi/wiki?BetterCygwinTerminal
@echo off
C:
chdir C:\cygwin\bin
set EDITOR=vi
set VISUAL=vi
set CYGWIN=codepage:oem tty binmode title
rxvt -sr -sl 10000 -fg white -bg black -fn fixedsys -fb fixedsys -tn cygwin -e bash --login -i
Saturday, January 30, 2010
Mounting an ISO in Windows 7
Alternatives
- Virtual CD-ROM (Microsoft) – This utility does not work in Windows Vista
- MagicDisk – This is a nice, free utility with more features, but it's not quite as simple to use.
- Alcohol 52% – Free version of Alcohol 120, but it bundles a browser toolbar that they claim isn't spyware. It's unacceptable.
- Daemon Tools – Well known tool, but the latest version installs spyware on your computer, and the old version doesn't work in Vista or 7.
File Synchronization
rsync -auz hostB:/dest/foo /src
The first command pushes all the files that are newer on hostA to hostB. The second command will pull all the files that are newer on hostB to hostA. The critical options are:
- when copying, you must preserve file modification times. "-a" does this and other things; if you want to preserve just the modification times, use "-t" instead.
- you must skip any files that are newer on the destination: "-u" does this.