Wednesday, April 21, 2010
tcpdump in OpenSolaris
tcpdump -s 0 -w file.pcap -i e1000g0 port 10689
Labels:
Capture packets,
Network,
OpenSolaris,
tcpdump
Bluetooth “Access Denied” issue and resolution
Today one of my co-workers have a problem activating her Bluetooth mouse. Here is the solution I found in this place:
- Open Services:
- To still type things out, start the on-screen keyboard by going to Start > Programs > Accessories > Accessibility > On-Screen Keyboard. From there, you can then doStart > Run and then type services.msc
- To directly access Services, do Start > Control Panel > Administrative Tools > Services
- Find & select the Bluetooth Support Service, right click and select Properties.
- Click the Stop button on the General tab.
- Select the Log On tab, and select the radio button next toLocal System account, then click Apply.
- Go back to the General tab and click the Start button.
- Click OK to close the Properties dialog.
- Restart computer to make sure the change takes and things work.
Tuesday, April 13, 2010
Last Sunday of the Month in UNIX shell
cal | grep '^[23]' | tail -1 | cut -d' ' -f1
Several months later I don't remember why the grep part?
cal | tail -1 | cut -d' ' -f1
AWK version:
#!/bin/bash
cal | awk '
{ last = $1 }
END { print last }'
##END##
Several months later I don't remember why the grep part?
cal | tail -1 | cut -d' ' -f1
AWK version:
#!/bin/bash
cal | awk '
{ last = $1 }
END { print last }'
##END##
Subscribe to:
Posts (Atom)