Skip to content

Instantly share code, notes, and snippets.

View NickVanderPyle's full-sized avatar

Nick VanderPyle NickVanderPyle

View GitHub Profile
@NickVanderPyle
NickVanderPyle / MachineEncryption.psm1
Created October 20, 2016 17:39
Powershell module to do machine-specific encryption.
Add-Type -AssemblyName "System.Security"
function ConvertTo-EncryptedString{
[cmdletbinding()]
[OutputType([string])]
param(
[parameter(Mandatory=$true, ValueFromPipeline=$true)]
[ValidateNotNull()]
[string]$stringToEncrypt)
Process{
@NickVanderPyle
NickVanderPyle / dockerfile
Created March 27, 2017 00:56
Visual Studio Code running in a Docker Container
FROM microsoft/dotnet:latest
ENV DEBIAN_FRONTEND=noninteractive
VOLUME [".config/Code", \
".vscode", \
".ssh", \
"src"]
RUN useradd --user-group --home $HOME code && \