Skip to content

Instantly share code, notes, and snippets.

View hotstone's full-sized avatar

Matt Hotstone hotstone

  • Sydney, Australia
View GitHub Profile
using System.Linq;
using System.Globalization;
using System.Threading;
public class Program
{
public static void Main()
{
String[] cultureNames = { "en-US", "se-SE" };
String[] strings1 = { "case", "encyclopædia",
# Configure Windows
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Update-ExecutionPolicy Unrestricted
cinst -y Microsoft-Hyper-V-All -source windowsFeatures
# Packages
cinst -y hyper
@hotstone
hotstone / Send-Datagram
Last active July 27, 2017 06:25
Send UDP datagram from Powershell
function Send-Datagram {
[CmdletBinding()]
param(
[parameter(Mandatory=$true)][string] $data,
[parameter(Mandatory=$false)][string] $address="127.0.0.1",
[parameter(Mandatory=$false)][int] $port=8125
)
$ipAddress = $null
$parseResult = [System.Net.IPAddress]::TryParse($address, [ref] $ipAddress)