% Give yourself the rights to execute a script...
sudo chmod 755 'ScriptName'
| $(document).ready(function(){ | |
| $("#rstODD").click(function() { | |
| $(".oddDiv").css("color", "lime"); | |
| $(".oddDiv").css("background-color", "teal"); | |
| }); | |
| $('#rstEVEN').click(function() { | |
| $('.evenDiv').css('color', 'red'); | |
| $('.evenDiv').css('background-color', 'blue'); | |
| }); | |
| $('#rstALL').click(function() { |
| /*Scrollbar style */ | |
| ::-webkit-scrollbar {width: 11px;height: auto;} | |
| ::-webkit-scrollbar-track {border-radius: 10px;box-shadow: inset 0 0 8px #00B141;} | |
| ::-webkit-scrollbar-thumb {background: teal;border-radius: 10px;box-shadow: inset 0 0 6px rgba(0,0,0,0.5); } | |
| ::-webkit-scrollbar-thumb:hover {background: green;} | |
| ::-webkit-scrollbar-thumb:active {background: red;} | |
| /*Scrollbar style */ |
| var accumulator = 0.0; | |
| var lstEntr = 0.0; | |
| var deciPnt = 0; | |
| var sign = 1; | |
| var lstKey = "equals"; | |
| var clcTsk = "equals"; | |
| function Adddigit(digit) { | |
| var temp; | |
| if (lstKey != "digit") { |
% Give yourself the rights to execute a script...
sudo chmod 755 'ScriptName'
| --The following command will take a database that is in the "restoring" state | |
| --and make it available for end users. | |
| --If the DB is awaiting a log restore that could result in considerable data loss | |
| RESTORE DATABASE {DB Name} WITH RECOVERY | |
| GO |
Give yourself the right to execute the file. The following command as super user works.
sudo chmod 755 'FileName'
| /*! | |
| * jQuery JavaScript Library v1.4.2 | |
| * http://jquery.com/ | |
| * | |
| * Copyright 2010, John Resig | |
| * Dual licensed under the MIT or GPL Version 2 licenses. | |
| * http://jquery.org/license | |
| * | |
| * Includes Sizzle.js | |
| * http://sizzlejs.com/ |
| function chrCntMtd(what) { | |
| var FormCntChrWrd = what.form.chrCntTxt.value; | |
| what.form.disChrCnt.value = FormCntChrWrd.length; | |
| } |
| --Set offline and rollback | |
| ALTER DATABASE {DBName} SET OFFLINE WITH ROLLBACK IMMEDIATE | |
| --Then SET it online | |
| ALTER DATABASE {DBName} SET ONLINE |
| USE master | |
| GO | |
| DECLARE @kill varchar(max) = ''; | |
| SELECT @kill = @kill + 'KILL ' + CONVERT(varchar(10), spid) + '; ' | |
| FROM master..sysprocesses | |
| WHERE spid > 50 AND dbid = DB_ID('DATABASENAME') | |
| EXEC(@kill); | |
| GO | |
| SET DEADLOCK_PRIORITY HIGH |