Skip to content

Instantly share code, notes, and snippets.

View dfch's full-sized avatar

Ronald Rink dfch

View GitHub Profile
@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:29
ODataQueryOptions do not apply $filter and $orderby options to IQueryable when using EntityFramework 6 with SQL Server
@dfch
dfch / Should.ps1
Last active February 5, 2016 04:09
help Should
function Should {
[CmdletBinding(
SupportsShouldProcess = $false
,
ConfirmImpact = 'Low'
)]
Param
(
@dfch
dfch / HashtableDuplicateKey.Tests.ps1
Last active December 26, 2015 09:09
[Bug] PowerShell Hashtables and duplicate keys with Import-CliXml
#Requires -Module Pester
#Requires -Version 3.0
# see http://d-fens.ch/2015/06/28/bug-powershell-import-clixml-incorrectly-creates-hashtables-with-duplicate-keys/ for further explanation
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$ImportCliXmlDuplicateKeys = "{0}.xml" -f $MyInvocation.MyCommand.Name.Replace('.Tests.ps1', '');
Describe -Tags "Test-ImportCliXml" "Test-ImportCliXml" {
@dfch
dfch / TSGET.CMD
Created August 13, 2015 09:35
TSGET - get X.509 timestamp via Windows Cmd file and utilities
@ECHO OFF
SETLOCAL
FOR /F "tokens=* delims=?" %%I IN ('ECHO %0') DO @SET SCRIPTPATH=%%~dpI
FOR /F "tokens=* delims=?" %%I IN ('ECHO %SCRIPTPATH%') DO @SET SCRIPTPATH=%%~I
FOR /F "tokens=* delims=?" %%I IN ('ECHO %SCRIPTPATH%') DO @SET SCRIPTPATH=%%~sI
IF "\" EQU "%SCRIPTPATH:~-1%" SET SCRIPTPATH=%SCRIPTPATH:~0,-1%
IF "\" EQU "%SCRIPTPATH:~0,1%" (
PUSHD "%SCRIPTPATH%"
@dfch
dfch / --- README.md
Last active August 29, 2015 14:24
biz.dfch.PS.Pester.Tests - Verifiable Mocks
@dfch
dfch / Dockerfile
Last active August 29, 2015 14:13
Graylog2 Intermediate Version Dockerfile
FROM graylog2/allinone
MAINTAINER Ronald Rink <ronald.rink@d-fens.net>
ENV GRAYLOG2_BASE_DIR /opt/graylog2
ENV GRAYLOG_SERVER_VERSION 0.93.0-SNAPSHOT-20150112150701
ENV GRAYLOG_WEB_VERSION 0.93.0-SNAPSHOT-20150112102527
RUN apt-get install -y wget tar
RUN cd /opt/ && wget http://packages.graylog2.org/nightly-builds/graylog2-${GRAYLOG_SERVER_VERSION}.tar.gz
@dfch
dfch / Dockerfile-jBPM
Created January 19, 2015 06:31
Dockerfiles
# taken from https://github.com/wmarinho/docker-jbpm
FROM wmarinho/ubuntu:oracle-jdk-7
MAINTAINER Wellington Marinho wpmarinho@globo.com
ENV JBPM_VERSION 6.1.0.Final
ENV JBPM_HOME /opt/jbpm
# Apply JAVA_HOME
@dfch
dfch / Dockerfile
Last active August 29, 2015 14:13
Graylog2 Plugin Test Dockerfile
# Dockerfile to build Graylog2/allinone and d-fens Plugins
#
# Copyright 2015 Ronald Rink, 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
#
@dfch
dfch / ### Miscellaneous Test Scripts.md
Last active August 29, 2015 14:13
### Miscellaneous Test Scripts

d-fens Miscellaneous Test Scripts

d-fens GmbH General-Guisan-Strasse 6 CH-6300 Zug Switzerland