Skip to content

Instantly share code, notes, and snippets.

View onlyann's full-sized avatar

Yann Normand onlyann

  • Brisbane, Australia
View GitHub Profile
$symbols = '!@#$%^&*'.ToCharArray()
$characterList = 'a'..'z' + 'A'..'Z' + '0'..'9' + $symbols
function GeneratePassword {
param(
[Parameter(Mandatory = $false)]
[ValidateRange(12, 256)]
[int]
$length = 14
)
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
@onlyann
onlyann / main.cs
Created August 21, 2016 10:12
Display machine name
using System;
var machineName = Environment.MachineName;
Console.WriteLine($"Hi there from {machineName}");