http://superuser.com/questions/37578/how-to-disable-the-windows-built-in-zip-functionality
Windows 7
The process is similar to Vista in terms of deleting the same registry keys. However, due to additional protections built-in, you must first change ownership of the keys to your username, which must be an administrator account.
Open Registry Editor (go to Start Menu -> Run and type “regedit“).
Navigate to HKEY_CLASSES_ROOT\CLSID and perform steps 3-7 for each of the two keys:
{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31} and
{0CD7A5C0-9F37-11CE-AE65-08002B2E1262}.
Right-click on the key and select “Permissions…”. Click “Advanced” and then the “Owner” tab.
Select your username from the list.
Check the box next to “Replace owner on subcontainers and objects”. Click “OK”.
In the “Security” tab, select your username and grant Full Control. (If your username is not there, click “Add…”, type your username, then click “Check Names” and “OK”.) Click “OK” to apply the permissions settings.
Delete the registry key.
Repeat the process for the second key.
Restart Windows and enjoy a life free from zip folders!
Monday, October 29, 2012
Sunday, October 21, 2012
How to disable The Splash of Office 2010?
HKEY_CLASSES_ROOT\Word.Document.8\shell\Open\command
"C:\Program Files\Microsoft Office\Office14\WINWORD.EXE" /q
HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open\command
"C:\Program Files\Microsoft Office\Office14\EXCEL.EXE" /e
HKEY_CLASSES_ROOT\PowerPoint.Slide.8\shell\Open\command
"C:\Program Files\Microsoft Office\Office14\POWERPOINT.EXE" /s
Saturday, August 18, 2012
How can I change the default ALSA device?
http://alsa.opensrc.org/FAQ026
~/.asoundrc
pcm.!default {
type hw
card Xfi
}
ctl.!default {
type hw
card XFi
}
~/.asoundrc
pcm.!default {
type hw
card Xfi
}
ctl.!default {
type hw
card XFi
}
Thursday, August 16, 2012
Connecting Linux and Windows Together With a Network Cable
http://www.ehow.com/how_7208875_connect-ubuntu-windows-crossover-cable.html
Windows:
1 Connect the crossover cable to the network port of both the Ubuntu and the Windows computers.
2 Go to the "Start" menu and type "netcpl.cpl" in the "Run" or "search programs and files" field and press "Enter."
3 Right-click on "Local Network connection" and select "Properties."
4 Select "TCP/IP V4" and click "Properties."
5 Select "Use the following IP address" and enter 192.168.1.1 in the "IP address" field.
6 Click on the "Subnet mask" field to fill it automatically. Click "OK."
Linux:
7 Press "CTRL + ALT + F1" to open a terminal.
8 Type "sudo ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up" and press "Enter."
9 Type your password and press "Enter."
10 Press "CTRL + ALT + F7" to go back to the graphical interface.
Windows:
1 Connect the crossover cable to the network port of both the Ubuntu and the Windows computers.
2 Go to the "Start" menu and type "netcpl.cpl" in the "Run" or "search programs and files" field and press "Enter."
3 Right-click on "Local Network connection" and select "Properties."
4 Select "TCP/IP V4" and click "Properties."
5 Select "Use the following IP address" and enter 192.168.1.1 in the "IP address" field.
6 Click on the "Subnet mask" field to fill it automatically. Click "OK."
Linux:
7 Press "CTRL + ALT + F1" to open a terminal.
8 Type "sudo ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up" and press "Enter."
9 Type your password and press "Enter."
10 Press "CTRL + ALT + F7" to go back to the graphical interface.
Tuesday, June 12, 2012
Fixing "ECDSA unknown key type" error in OpenSSH
http://blog.slogra.com/post-169.html
If error message "ssh-keygen: generating new host keys: ECDSA unknown key type" appeared after starting sshd, then running the below commands should fix it.
touch /etc/ssh/ssh_host_ecdsa_key
touch /etc/ssh/ssh_host_ecdsa_key.pub
If error message "ssh-keygen: generating new host keys: ECDSA unknown key type" appeared after starting sshd, then running the below commands should fix it.
touch /etc/ssh/ssh_host_ecdsa_key
touch /etc/ssh/ssh_host_ecdsa_key.pub
Wednesday, May 30, 2012
Useful Mac OS Command Line Script
Reset Software Update Server
defaults delete /Library/Preferences/com.apple.SoftwareUpdate CatalogURL
lsusb equivalent
system_profiler SPUSBDataType
Useful Unix Command Line Script
Find Dead Symbolic Links in The Whole System
find / -type l ! -exec test -r {} \; -print
Find And Replace Text Recursively
find . -type f -print0 | xargs -0 -n32 -P6 sed -i 's/AAA/BBB/g'
Search Text Recursively
find . -type f -print0 | xargs -0 -n32 -P6 grep -iH "ttt"
List The Size of Current Directory
du -sk *
find / -type l ! -exec test -r {} \; -print
Find And Replace Text Recursively
find . -type f -print0 | xargs -0 -n32 -P6 sed -i 's/AAA/BBB/g'
Search Text Recursively
find . -type f -print0 | xargs -0 -n32 -P6 grep -iH "ttt"
List The Size of Current Directory
du -sk *
Tuesday, March 27, 2012
Reuse SSH Connection To Speed Up Remote Login Process
/etc/ssh/ssh_config
host *
controlmaster autocontrolpath /tmp/ssh-%r@%h:%p