This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To get folder size solaris | |
du -h | tail -1 | |
# To Zip a folder r stands for recursive | |
zip -r tmp.zip /opt/xxx/YYZ/ | |
#To Untar Linux | |
tar -xzvf ftpserver-1.0.0.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM To find Taskid for port number | |
netstat -a -n -o | findstr :22 | |
REM To kill process with id | |
taskkill /f /pid <process-id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( $ ) { | |
// First, check to see if cssHooks are supported | |
if ( !$.cssHooks ) { | |
// If not, output an error message | |
throw( new Error( "jQuery 1.4.3 or above is required for this plugin to work" ) ); | |
} | |
// Wrap in a document ready call, because jQuery writes | |
// cssHooks at this time and will blow away your functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YOUR_DIR=/opt/xxx | |
SCRIPT_NAME=daemonrunner.sh | |
LOG_FILE=daemonrunnerLog.log | |
cd $YOUR_DIR | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Check string is number | |
function isNumber(n) { | |
if(undefined == n || null == n) | |
return false | |
else | |
return /^-?[\d.]+(?:e-?\d+)?$/.test(n); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'This Script creates New User and add it to administrator group in windows | |
'Change the variables strUser & strPass | |
'By default it will run as elevated privileages. | |
Set WshShell = WScript.CreateObject("WScript.Shell") | |
If WScript.Arguments.length = 0 Then | |
Set ObjShell = CreateObject("Shell.Application") | |
ObjShell.ShellExecute "wscript.exe", """" & _ | |
WScript.ScriptFullName & """" &_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<NotepadPlus> | |
<UserLang name="Groovy" ext="groovy"> | |
<Settings> | |
<Global caseIgnored="no" /> | |
<TreatAsSymbol comment="yes" commentLine="yes" /> | |
<Prefix words1="no" words2="no" words3="no" words4="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Delimiters">"'0"'0</Keywords> | |
<Keywords name="Folder+"></Keywords> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//On connection Open , Ajax start | |
var _open = XMLHttpRequest.prototype.open; | |
XMLHttpRequest.prototype.open = function() { | |
var cururl=arguments[1] | |
OlderNewer