Skip to content

Instantly share code, notes, and snippets.

View muthuishere's full-sized avatar

Muthukumaran Navaneethakrishnan muthuishere

View GitHub Profile
@muthuishere
muthuishere / unixcheats.sh
Last active August 29, 2015 14:00
Unix Cheatsheet
#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
@muthuishere
muthuishere / wincheats.bat
Last active April 9, 2017 00:02
Windows Batch Cheats
REM To find Taskid for port number
netstat -a -n -o | findstr :22
REM To kill process with id
taskkill /f /pid <process-id>
@muthuishere
muthuishere / csshook.js
Created June 19, 2014 06:07
Jquery plugin to hook css transform
(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
@muthuishere
muthuishere / daemonrunner.sh
Last active August 29, 2015 14:04
A Dameon Script runnier and Log Rotator
YOUR_DIR=/opt/xxx
SCRIPT_NAME=daemonrunner.sh
LOG_FILE=daemonrunnerLog.log
cd $YOUR_DIR
@muthuishere
muthuishere / Jscheats.js
Last active January 24, 2018 03:31
Javascript Helpers: Check variable is Number , Generic Ajax request , Serialize form data
//Check string is number
function isNumber(n) {
if(undefined == n || null == n)
return false
else
return /^-?[\d.]+(?:e-?\d+)?$/.test(n);
}
@muthuishere
muthuishere / selectmenuchange.js
Created November 24, 2014 14:55
Dynamically change value in jqueryui selectmenu
$( "#listmenuid" )
.val("selectedvalue")
.selectmenu("refresh")
@muthuishere
muthuishere / git-remove-context-menu.bat
Last active August 29, 2015 14:10
remove git context menu after installed - windows
cd <GIT-INSTALL-FOLDER>\git-cheetah
REM for 32 bit windows
regsvr32 /u git_shell_ext.dll
REM for 64 bit windows
regsvr32 /u git_shell_ext64.dll
@muthuishere
muthuishere / createnewadmin.vbs
Created November 26, 2014 10:17
This Script creates New User and add it to administrator group in windows
'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 & """" &_
@muthuishere
muthuishere / userDefineLang_Groovy.xml
Last active September 5, 2023 16:33
Groovy User defined language for notepad++ plugin
<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">&quot;&apos;0&quot;&apos;0</Keywords>
<Keywords name="Folder+"></Keywords>
@muthuishere
muthuishere / monitor_ajax.js
Last active August 29, 2015 14:16
Monitor All Ajax xmlhttp requests
//On connection Open , Ajax start
var _open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function() {
var cururl=arguments[1]