start new:
tmux
start new with session name:
tmux new -s myname
//Reader Monad and its extension class to give it SelectMany(bind/flatMap) capabilities for use in LINQ queries | |
public static class ReaderMonadExt | |
{ | |
public static ReaderMonad<T, C> SelectMany<T, A, B, C>(this ReaderMonad<T, A> rm, Func<A, ReaderMonad<T, B>> bindf, Func<A, B, C> select) | |
{ | |
return new ReaderMonad<T, C>(t => | |
{ | |
var a = rm.Run(t); | |
return select(a, bindf(a).Run(t)); | |
}); |
# This is a super **SIMPLE** example of how to create a very basic powershell webserver | |
# 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity. | |
# Http Server | |
$http = [System.Net.HttpListener]::new() | |
# Hostname and port to listen on | |
$http.Prefixes.Add("http://localhost:8080/") | |
# Start the Http Server |
<appender name="GraphiteUdpAppender" type="log4net.Appender.UdpAppender"> | |
<remoteAddress value="graphiteserver.somewhere.com"/> | |
<remotePort value="8125"/> | |
<layout type="log4net.Layout.PatternLayout"> | |
<IgnoresException value="False"/> | |
<conversionPattern value="%property{log4net:HostName}.log4net.%level:1|kv\n"/> | |
</layout> | |
</appender> | |
<!-- Remember to add the appender to the root |
# Use the following commands to bind/unbind SSL cert | |
# netsh http add sslcert ipport=0.0.0.0:443 certhash=3badca4f8d38a85269085aba598f0a8a51f057ae "appid={00112233-4455-6677-8899-AABBCCDDEEFF}" | |
# netsh http delete sslcert ipport=0.0.0.0:443 | |
$HttpListener = New-Object System.Net.HttpListener | |
$HttpListener.Prefixes.Add("http://+:80/") | |
$HttpListener.Prefixes.Add("https://+:443/") | |
$HttpListener.Start() | |
While ($HttpListener.IsListening) { | |
$HttpContext = $HttpListener.GetContext() | |
$HttpRequest = $HttpContext.Request |
(Serial port or com port? - Serial ports are often refered as COM ports. It is the same to be short. You can read abut it in the Wiki article )
# It might work in 4, but I'm not testing there. Lower you'll have to tweak code | |
#requires -Version 5.0 | |
param( | |
# Your Live ID for MSDN login | |
[Parameter(Mandatory)] | |
[PSCredential] | |
[System.Management.Automation.CredentialAttribute()] | |
$Credential, | |
# Pick a browser to use. Defaults to Firefox (which doesn't seem to require an external Driver file) |
# prune branches deleted in origin
git remote prune origin
# prune tags
# http://stackoverflow.com/questions/1841341/remove-local-tags-that-are-no-longer-on-the-remote-repository
git fetch --prune <remote> '+refs/tags/*:refs/tags/*'
Parsed from the Roslyn source code using Roslyn.
Code | Severity | Message |
---|---|---|
CS0006 | Error | Metadata file '{0}' could not be found |
CS0009 | Fatal | Metadata file '{0}' could not be opened -- {1} |
CS0012 | Error | The type '{0}' is defined in an assembly that is not referenced. You must add a reference to assembly '{1}'. |
CS0016 | Error | Could not write to output file '{0}' -- '{1}' |
configuration AdminRestAp { | |
Import-DscResource -ModuleName xPSDesiredStateConfiguration | |
Import-DscResource -ModuleName xNetworking | |
Node "webserver" { | |
<# | |
Install windows features | |
#> | |
WindowsFeature InstallIIS { |