Skip to content

Instantly share code, notes, and snippets.

View dfch's full-sized avatar

Ronald Rink dfch

View GitHub Profile
@dfch
dfch / Convert-Currency.ps1
Created November 4, 2014 07:26
[NoBrainer] PowerShell Currency Converter
# http://d-fens.ch/2014/01/07/nobrainer-powershell-currency-converter/
Param (
[Parameter(Mandatory = $true, Position = 0)]
[string] $From
,
[Parameter(Mandatory = $true, Position = 1)]
[string] $To
,
[Parameter(Mandatory = $false, Position = 2)]
@dfch
dfch / ### Miscellaneous Scripts.md
Last active August 29, 2015 14:09
LightSwitch: Modifying roles, permissions and users via PowerShell

Miscellaneous Scripts

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

@dfch
dfch / HttpClient.cs
Last active November 26, 2023 16:59
HttpClient and how to use Headers, Content-Type and PostAsync
// HttpClient and how to use Headers, Content-Type and PostAsync
// http://d-fens.ch/2014/04/12/httpclient-and-how-to-use-headers-content-type-and-postasync/
// Copyright 2014-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 / CreatevCACManagementModelEntitesobjectsfromODATARESTcallwithPowerShell.ps1
Last active August 29, 2015 14:10
Create vCAC ManagementModelEntites objects from ODATA REST call with PowerShell
# http://d-fens.ch/2014/01/27/create-vcac-modelmanagemententites-objects-from-odata-rest-call-with-powershell/
function Get-VcacEntity {
[CmdletBinding(
SupportsShouldProcess = $false
,
ConfirmImpact = 'Low'
,
DefaultParameterSetName = 'guid'
,
HelpURI='http://dfch.biz/PS/Vcac/Utilities/Get-VcacEntity/'
@dfch
dfch / ### PowerShell modules, digital signatures, NuGet nuspec and packages.md
Last active January 1, 2022 20:19
PowerShell modules, digital signatures, NuGet nuspec and packages

PowerShell modules, digital signatures, NuGet nuspec and packages

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

@dfch
dfch / libmc02.c
Last active August 29, 2015 14:12
SCMC
/*
* libmc02.c
*
*/
#include "libmc02.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@dfch
dfch / ### Sending Gelf messages to Graylog2 via PowerShell.md
Last active May 5, 2020 21:17
Sending Gelf messages to Graylog2 via PowerShell
@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

@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 / 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