Skip to content

Instantly share code, notes, and snippets.

View dfch's full-sized avatar

Ronald Rink dfch

View GitHub Profile
@dfch
dfch / Should.ps1
Last active February 5, 2016 04:09
help Should
function Should {
[CmdletBinding(
SupportsShouldProcess = $false
,
ConfirmImpact = 'Low'
)]
Param
(
@dfch
dfch / 00-README.md
Last active February 27, 2016 17:29
ODataQueryOptions do not apply $filter and $orderby options to IQueryable when using EntityFramework 6 with SQL Server
@dfch
dfch / 00-README.md
Last active February 27, 2016 17:30
ODataQueryOptions do not apply $filter and $orderby options to IQueryable when using EntityFramework 6 with SQL Server
@dfch
dfch / 00-README.md
Last active February 27, 2016 17:30
ODataQueryOptions do not apply $filter and $orderby options to IQueryable when using EntityFramework 6 with SQL Server
/**
* Copyright 2016 d-fens GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@dfch
dfch / connection.cs
Last active May 8, 2017 01:04
Receiving SignalR messages from PowerShell
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Client;
using System.Collections.Concurrent;
using System.Net;
@dfch
dfch / Get-Functions.ps1
Last active March 12, 2018 22:01
Enumerate all functions in a PowerShell script file via AST
#Requires -Version 3
# http://d-fens.ch/2015/04/26/nobrainer-enumerate-all-functions-in-a-powershell-script-file-via-ast
[CmdletBinding(
SupportsShouldProcess = $true
,
ConfirmImpact = 'Low'
,
DefaultParameterSetName = 'list'
)]
Param
@dfch
dfch / HubFactory.cs
Created March 17, 2017 23:11
Creating SignalR Hub Classes on the fly - http://d-fens.ch/2017/03/17/creating-signalr-hub-classes-on-the-fly/ - d-fens.ch
/**
* Copyright 2017 d-fens GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@dfch
dfch / ### Sending Gelf messages to Graylog2 via PowerShell.md
Last active May 5, 2020 21:17
Sending Gelf messages to Graylog2 via PowerShell