This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Process -Name dotnet | |
d:\devtools\sysinternals\procdump -accepteula -ma 1234 | |
subst d: c:\temp\temp | |
.load C:\Users\Jon Gyllenswärd\Downloads\sos.dll | |
.cordll -I coreclr.dll -N -ve | |
!runaway | |
~Xs | |
!CLRStack -p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i -g [email protected] --unsafe-perm true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<log4net> | |
<appender name="RollingFileInfoAppender" type="log4net.Appender.RollingFileAppender"> | |
<param name="File" value="C:\\Logs\\WebLog_info_"/> | |
<AppendToFile value="true"/> | |
<MaxSizeRollBackups value="10"/> | |
<MaximumFileSize value="10MB"/> | |
<datePattern value="yyyyMMdd'.log'" /> | |
<rollingStyle value="Composite" /> | |
<staticLogFileName value="false" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Value objects are an important concept in DDD. This kata is made both to learn value objects and to learn better ways of testing. | |
Write a probability value object. It should contain the following methods: | |
Probability CombinedWith(Probability) | |
Probability InverseOf() | |
Probability Either(Probability) | |
if you forget your probability math: | |
Either:P(A) + P(B) - P(A)P(B) | |
CombinedWith: P(A)P(B) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PORT = 9999; | |
var HOST = '127.0.0.1'; | |
var dgram = require('dgram'); | |
var server = dgram.createSocket('udp4'); | |
server.on('listening', function () { | |
var address = server.address(); | |
console.log('UDP Server listening on ' + address.address + ":" + address.port); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[parameter(Mandatory=$true, ValueFromPipeline=$true)] | |
[string] | |
$data, | |
[parameter(Mandatory=$false, ValueFromPipeline=$true)] | |
[string] | |
$ip="127.0.0.1", | |
[parameter(Mandatory=$false, ValueFromPipeline=$true)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote -v | |
git remote add upstream https://github.com/otheruser/repo.git | |
git remote -v | |
git fetch upstream | |
git branch -va | |
git checkout master | |
git merge upstream/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch upstream | |
git checkout master | |
git reset --hard upstream/master | |
git push origin master --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using NUnit.Framework; | |
namespace ProbabilityKata | |
{ | |
[TestFixture] | |
public class ProbabilityTests | |
{ | |
[Test] | |
public void CanCompareTwoEqualProbabilities() |