How to change collation of database/Server:
http://www.db-staff.com/index.php/microsoft-sql-server/69-change-collation
SQL Server Database concepts
How to download youtube videos by using script added to your browser
Script Summary:
Adds an option to download YouTube videos as MP4 and FLV files. Unlike many other scripts, this script downloads the videos directly from YouTube and doesn't connect to any other site.
Go to the following site and install the script on your browser and then when you view youtube video you get one more option download as mentioned in following website
http://userscripts.org/scripts/show/25105
More tips on google usage can be found in google official blog:
http://googlesystem.blogspot.com/
Linux commands
To display all permissions..of all files on current directory.
>ls -al
clear screen:
>clear
To traverse root to root directory
>cd ../../
to delete the folder recursively.
>rm -R pictures
to delete focibly a filename
>rm -f abc.txt
to copy a file to local current directory
>cp /home/abc/*.* .
to set an environment variable like TOP to ~/BA/SOL/test
>setenv TOP ~/BA/SOL/test
To set an environment variable in bash like TOP to ~/BA/SOL/top
>export TOP=~/BA/SOL/top
To check the value of environment variable like TOP
>echo $TOP
to flush DNS cache on Linux:
- To restart the nscd daemon, type
/etc/rc.d/init.d/nscd restart
in your terminal
- Once you run the command your linux DNS cache will flush.
Command to Know processid:
pidof processname
example:>pidof abserver
>23434
command to kill a process:
you can try:
>kill processID
>pkill processname
Forcible kill after trying kill with -1 and -2 is
>kill -9 processID
killing multiple instances of same process
>killall processName
>killall -9 processName
To list all processes running along with mem and cpu usage:
>ps aux
example:
>ps aux | grep uniserver
reference link: http://www.linfo.org/ps.html
How to create core file in Linux:
>ulimit -c unlimited
now core file will be generated like core.12345 where 12345 is pid of process. created in the location where process binary exist.
(or )
>gcore process-ID
How to get callstack of running process:
pstack processId
example:
>pstack 21345
This will give same output as gcore command coredump, analyzing it via gdb command
using gdb to get callstack:
>gdb programname core-file
> where //to get call stack
>bt //to get callstack
>quit //to come out of gdb
Windows keyboards shortcut keys
Office Communicator keyboard shortcuts
Key Action
Windows + Q = Open Communicator
Alt + F4 = Close Communicator
Enter = Open Conversation window for selected contact
Alt + Up arrow = move group up
Alt + down arrow= move group down
Shift + Enter = Add a line break in Type a note area
Alt + I = Invite someone to join the conversation
Ctrl + F = Send a File
Ctrl + S = Save contents of instant messaging
Ctrl + B = Bold selected text
Ctrl + U = Underline selected text
Ctrl + I = Italicize selected text
Ctrl + T = Strikethrough selected text
How to Open specific sequence of port numbers when firewall is on
By default the Windows Firewall seems to block all ports. In order to open ports 2400-2600 you can run the following command from a Command Prompt:
FOR /L %I IN (2400,1,2600) DO netsh firewall add portopening TCP %I "Port"%I
This command will basically add each port, starting with port 2400, in increments of 1, up to port 2600 to the Exceptions list.
To remove these ports from the Exceptions list, you can run the following port from a Command Prompt:
FOR /L %I IN (2400,1,2600) DO netsh firewall delete portopening TCP %I
How to enable remote desktop when firewall is on:From Windows Firewall in Control Panel select the Advanced tab and then click on the Settings button next to the “Local Area Connection” and check the box next to “Remote Desktop”.
References:
link1
link2