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 / 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 / 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 / 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]
@muthuishere
muthuishere / lock_unlock.bat
Last active August 29, 2015 14:24
Lock unlock folders
REM ===========unlk==============
@echo off
IF NOT EXIST c:\opt\ew GOTO EXIT
attrib -h "opt\ew"
IF NOT EXIST "c:\opt\New Folder" GOTO PROCEED
attrib -h "opt\New Folder"
rmdir /Q "c:\opt\New Folder"
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Macmaveriks --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
#bashes
sudo chown -R $USER $(dirname $(mktemp -t foo))
kill -9 `ps ax | grep Simulator | grep -v grep | awk '{print $1}'`
ps-Ael | grep Z
ps -Ael | grep Z
kill -9 965
Installed n_with iso on transcend
not worked with mac boot menu
installed sp1 with sony with MBR UEFI
not worked with mac bootmenu
installed n_sp1 with sony with MBR UEFI
in progress