Skip to content

Instantly share code, notes, and snippets.

View Froosh's full-sized avatar

Robin Frousheger Froosh

View GitHub Profile

Keybase proof

I hereby claim:

  • I am froosh on github.
  • I am froosh (https://keybase.io/froosh) on keybase.
  • I have a public key whose fingerprint is 090D 0FFB BD28 176A E975 414B A3BB 33F1 D10E 00CA

To claim this, I am signing this object:

@Froosh
Froosh / imx23-holiday.dts.patch
Last active February 7, 2017 08:53
Patch demonstrating the differences from the original imx32-olinuxino.dts source
--- arch/arm/boot/dts/imx23-olinuxino.dts 2017-02-06 17:27:01.054966200 +1100
+++ arch/arm/boot/dts/imx23-holiday.dts 2017-02-06 17:38:01.791999700 +1100
@@ -7,18 +7,21 @@
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gpl-license.html
* http://www.gnu.org/copyleft/gpl.html
+ *
+ * Adjusted for MooresCloud Holiday lights, based on the OLinuXino open hardware
@Froosh
Froosh / Get-ComputerName.ps1
Created May 30, 2017 07:25
Get the computer name of the local computer
<#
.SYNOPSIS
Get the computer name of the local computer
.DESCRIPTION
Return the configured cluster or local computer name of the specified type
.PARAMETER NameFormat
One of: NetBIOS, DnsHostname, DnsDomain, DnsFullyQualified, PhysicalNetBIOS, PhysicalDnsHostname, PhysicalDnsDomain, PhysicalDnsFullyQualified
[COMPUTER_NAME_FORMAT] Definitions: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724224(v=vs.85).aspx
@Froosh
Froosh / FIMAutomation.psd1
Last active September 13, 2017 00:50
Wrap the FIMAutomation PSSnapin as a Module to enable easy use on systems without FIM/MIM installed and without requiring administrative access.
#
# Module manifest for module 'FIMAutomation'
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'Microsoft.ResourceManagement.Automation.dll'
# Version number of this module.
ModuleVersion = '1.0'
@Froosh
Froosh / Decrypt-CiscoPassword.ps1
Last active February 26, 2018 05:51
I had a need to decrypt some Cisco VPN enc_GroupPwd entries, but didn't want put client info into random web forms, and didn't to install python to use the first result I found. So I converted the python to PowerShell, and here we are :)
# Converted from https://github.com/axcheron/cisco_pwdecrypt/
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingPlainTextForPassword', 'CiscoPassword')]
[CmdletBinding(PositionalBinding = $false)]
[OutputType([String])]
Param (
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
@Froosh
Froosh / Backup-MIMConfig.ps1
Last active June 20, 2018 12:03
Backup MIM Config (Synchronisation and Service/Portal) and create diffs/history with git
#Requires -Version 5
[CmdletBinding()]
Param (
[Parameter()]
[ValidateNotNullOrEmpty()]
[string]
$MIMBackupPath = "C:\MIMBackup"
,
[Parameter()]
@Froosh
Froosh / async-udp-demo.ps1
Created January 19, 2019 03:01
PowerShell demo of UDP receive techniques, trying for proper async processing of packets
#Requires -Version 5.1
Set-StrictMode -Version Latest
$VerbosePreference = [System.Management.Automation.ActionPreference]::Continue
$ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop
$UPnPReceivePort = [uint16] 1900
$UPnPMulticastGroup_v4 = [System.Net.IPAddress]::Parse("239.255.255.250")
$UPnPMulticastGroup_v6 = [System.Net.IPAddress]::Parse("[FF02::C]")
@Froosh
Froosh / Add-MIMAdministrator.ps1
Last active February 4, 2019 03:15 — forked from ryannewington/Add-AdministratorToFimService.ps1
Creates an administrator in the FIM/MIM service from an existing AD account
#Requires -Version 3
#Requires -Modules LithnetRMA
[CmdletBinding()]
Param (
# Username of the user to add
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[string]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Date: 6 November 2020
OpenPGP Key Transition Statement for Robin Frousheger
I have created a new OpenPGP key and will be transitioning away from my
old key. The old key has not been compromised but has been set to
expire soon. All future correspondence should be encrypted to the new
@Froosh
Froosh / B2C_1A_PasswordResetDemo.xml
Created June 3, 2021 06:57
Azure AD B2C Password Reset Demo with Predicate Validation
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TrustFrameworkPolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.microsoft.com/online/cpim/schemas/2013/06"
PolicySchemaVersion="0.3.0.0"
TenantId="__B2CTenantName__"
PolicyId="__BaseFileName__"
DeploymentMode="__deployment_mode__"
PublicPolicyUri="https://__B2CTenantName__/__BaseFileName__">