-
Production monitoring
-
Alerting
- Dead Man's Snitch - Dead simple alerting. Sends you an email if a URL isn't requested every N minutes.
function Enumerable(arr) { | |
this.toArray = function () { | |
return arr | |
} | |
this.filter = function (fn) { | |
return new Enumerable(arr.filter(fn)) | |
} | |
this.map = function (fn) { |
A simple function for allowing partial function application in JavaScript.
function foo(a, b, c) {
return [a, b, c]
}
var bar = foo.curry(1, 2)
bar(3) // => [1, 2, 3]
@echo off | |
node "%~dp0\jspretty.js" |
Load PSSCOR4:
.loadby sos clr
.load C:\Debug\Psscor4\amd64\psscor4.dll
or:
A good summary of all the extensibility points: https://blogs.msdn.microsoft.com/carlosfigueira/2011/03/14/wcf-extensibility/
Use IOperationInvoker
if you need to do "runtime-y" things, such as replacing the current SynchronizationContext (perhaps with one that restores OperationContext after an await
...).
But! You can only apply an IOperationInvoker
from an IOperationBehavior
, not from a IServiceBehavior
. If you try to assign an operation invoker from a service behavior, WCF will eventually just overwrite it. If you want to apply an IOperationInvoker
to every operation in a contract, you can write an IServiceBehavior
which applies the IOperationBehavior
to every operation.
You can have an attribute which can apply to a whole service, or to a single operation:
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
I hereby claim:
- I am jennings on github.
- I am jennings (https://keybase.io/jennings) on keybase.
- I have a public key ASAr3xJbZmMFK6kV8HoTTo1vRKFb4PjLj55jcdht_igINAo
To claim this, I am signing this object:
// See: http://stackoverflow.com/q/34111695/19818 | |
namespace StackOverflow34111695 | |
{ | |
using System; | |
using System.IO; | |
using System.Xml; | |
using System.Xml.Schema; | |
using System.Xml.Serialization; |