Skip to content

Instantly share code, notes, and snippets.

View davoodharun's full-sized avatar
🎯
Focusing

Harun Davood davoodharun

🎯
Focusing
View GitHub Profile
@davoodharun
davoodharun / gist:a1b433d587cb379cb9dff853e4b521aa
Created January 17, 2017 21:45
DSC error for sql always on cluster
[
{
"code": "ComponentStatus/DscConfigurationLog/failed/8",
"level": "Error",
"displayStatus": "Provisioning failed",
"message": "[2017-01-17T21:25:00] [VERBOSE] Operation 'Invoke CimMethod' complete.\r\n[2017-01-17T21:25:01] [VERBOSE] Set-DscLocalConfigurationManager finished in 5.573 seconds.\r\n[2017-01-17T21:25:04] [VERBOSE] Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.\r\n[2017-01-17T21:25:04] [VERBOSE] An LCM method call arrived from computer SQLSERVER-0 with user sid S-1-5-18.\r\n[2017-01-17T21:25:04] [VERBOSE] [SQLSERVER-0]: LCM: [ Start Set ]\r\n[2017-01-17T21:25:20] [ERROR] The WS-Management service cannot process the request. The WMI service or the WMI provider returned an unknown error: HRESULT 0x80041033 \r\n[2017-01-17T21:25:20] [VERBOSE] Operation 'Invoke CimMethod' complete.\r\n[2
@davoodharun
davoodharun / Leaflet.Arc.min.js
Last active February 23, 2016 00:33
D3 Visualization of Narendra Modi's Twitter network
!function(){if(!L)throw"Leaflet.js not included";if(!arc&&!arc.GreatCircle)throw"arc.js not included";L.Polyline.Arc=function(e,t,r){e=L.latLng(e),t=L.latLng(t);var n=100,c={};r&&(r.offset&&(c.offset=r.offset,delete r.offset),r.vertices&&(n=r.vertices,delete r.vertices));var l=new arc.GreatCircle({x:e.lng,y:e.lat},{x:t.lng,y:t.lat}),o=l.Arc(n,c),a=[];return o.geometries[0].coords.forEach(function(e){a.push(L.latLng([e[1],e[0]]))}),L.polyline(a,r)}}();