Original snippet by maridlcrmn Converted to Less, and given a dark theme.
A Pen by Jay Holtslander on CodePen.
| --select process | |
| select | |
| P.spid | |
| , right(convert(varchar, | |
| dateadd(ms, datediff(ms, P.last_batch, getdate()), '1900-01-01'), | |
| 121), 12) as 'batch_duration' | |
| , P.program_name | |
| , P.hostname | |
| , P.loginame | |
| from master.dbo.sysprocesses P |
| /* | |
| By Osvaldas Valutis, www.osvaldas.info | |
| Available for use under the MIT License | |
| */ | |
| ;( function( $, window, document, undefined ) | |
| { | |
| var s = document.body || document.documentElement, s = s.style, prefixAnimation = '', prefixTransition = ''; | |
| if( s.WebkitAnimation == '' ) prefixAnimation = '-webkit-'; |
| /** | |
| * Get all database connections | |
| * http://stackoverflow.com/questions/4654291/how-to-get-detailed-list-of-connections-to-database-in-sql-server-2005 | |
| */ | |
| DECLARE @AllConnections TABLE( | |
| SPID INT, | |
| Status VARCHAR(MAX), | |
| LOGIN VARCHAR(MAX), | |
| HostName VARCHAR(MAX), | |
| BlkBy VARCHAR(MAX), |
| wmic /namespace:\\root\cimv2 path win32_product where "name like '%%.NET%%'" get version |
| /* .modal-fullscreen */ | |
| .modal-fullscreen { | |
| background: transparent; | |
| } | |
| .modal-fullscreen .modal-content { | |
| background: transparent; | |
| border: 0; | |
| -webkit-box-shadow: none; | |
| box-shadow: none; | |
| } |
| /* | |
| * jQuery.ajaxQueue - A queue for ajax requests | |
| * | |
| * (c) 2011 Corey Frang | |
| * Dual licensed under the MIT and GPL licenses. | |
| * | |
| * Requires jQuery 1.5+ | |
| */ | |
| (function(a){var b=a({});a.ajaxQueue=function(c){function g(b){d=a.ajax(c).done(e.resolve).fail(e.reject).then(b,b)}var d,e=a.Deferred(),f=e.promise();b.queue(g),f.abort=function(h){if(d)return d.abort(h);var i=b.queue(),j=a.inArray(g,i);j>-1&&i.splice(j,1),e.rejectWith(c.context||c,[f,h,""]);return f};return f}})(jQuery) |
| // Queue class for serializing AJAX calls. | |
| // | |
| // Inspired by Raynos http://stackoverflow.com/a/4797596/1194060 | |
| // | |
| // Queue has a public append method that expects some kind of task. | |
| // A task is a generic function passed as callback. | |
| // Constructor expects a handler which is a method that takes a ajax task | |
| // and a callback. Queue expects the handler to deal with the ajax and run | |
| // the callback when it's finished |
| Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force | |
| npm install -g npm-windows-upgrade | |
| npm-windows-upgrade | |
| npm cache clean | |
| npm update -g |
| SearchRequest request = new SearchRequest("DC=xx,DC=xxx,DC=com", | |
| "(|(objectClass=organizationalUnit)(isDeleted=TRUE)(objectCategory=Person))", | |
| SearchScope.Subtree, attribs); |