Skip to content

Instantly share code, notes, and snippets.

Robin Frousheger Froosh

Block or report user

Report or block Froosh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Froosh
Froosh / async-udp-demo.ps1
Created Jan 19, 2019
PowerShell demo of UDP receive techniques, trying for proper async processing of packets
View async-udp-demo.ps1
#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 Feb 4, 2019 — forked from ryannewington/Add-AdministratorToFimService.ps1
Creates an administrator in the FIM/MIM service from an existing AD account
View Add-MIMAdministrator.ps1
#Requires -Version 3
#Requires -Modules LithnetRMA
[CmdletBinding()]
Param (
# Username of the user to add
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[string]
@Froosh
Froosh / Decrypt-CiscoPassword.ps1
Last active Feb 26, 2018
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 :)
View Decrypt-CiscoPassword.ps1
# 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 Jun 20, 2018
Backup MIM Config (Synchronisation and Service/Portal) and create diffs/history with git
View Backup-MIMConfig.ps1
#Requires -Version 5
[CmdletBinding()]
Param (
[Parameter()]
[ValidateNotNullOrEmpty()]
[string]
$MIMBackupPath = "C:\MIMBackup"
,
[Parameter()]
@Froosh
Froosh / FIMAutomation.psd1
Last active Sep 13, 2017
Wrap the FIMAutomation PSSnapin as a Module to enable easy use on systems without FIM/MIM installed and without requiring administrative access.
View FIMAutomation.psd1
#
# 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 / Get-ComputerName.ps1
Created May 30, 2017
Get the computer name of the local computer
View Get-ComputerName.ps1
<#
.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 / imx23-holiday.dts.patch
Last active Feb 7, 2017
Patch demonstrating the differences from the original imx32-olinuxino.dts source
View imx23-holiday.dts.patch
--- 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 / imx23-holiday.dts
Last active Jun 21, 2019
MooresCloud Holiday Lights devicetree source file (with hardware SPI and i2c 24c64 EEPROM support)
View imx23-holiday.dts
/*
* Copyright 2012 Freescale Semiconductor, Inc.
*
* Author: Fabio Estevam <fabio.estevam@freescale.com>
*
* The code contained herein is licensed under the GNU General Public
* 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
View keybase.md

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:

You can’t perform that action at this time.