Skip to content

Instantly share code, notes, and snippets.

View mtherien's full-sized avatar

Mike Therien mtherien

View GitHub Profile
@mtherien
mtherien / boxstarter.txt
Last active June 21, 2020 17:49
My Boxstarter script
Set-ExplorerOptions -showHidenFilesFoldersDrives -showFileExtensions
Enable-RemoteDesktop
#cinst visualstudio2019enterprise -y
cinst vscode -y
cinst git -y
cinst git-credential-manager-for-windows -y
cinst fiddler -y
cinst paint.net -y
cinst terminals -y
@jbtule
jbtule / AESGCM.cs
Last active June 20, 2025 12:03
I have two code examples that I wrote for best practices encrypting a string in c#. They are both using authenticated encryption. http://stackoverflow.com/a/10366194/637783
/*
* This work (Modern Encryption of a String C#, by James Tuley),
* identified by James Tuley, is free of known copyright restrictions.
* https://gist.github.com/4336842
* http://creativecommons.org/publicdomain/mark/1.0/
*/
using System;
using System.IO;
using System.Text;
@jkresner
jkresner / Global.asax
Created October 30, 2012 20:20
Asp .net Mvc 4 Proxy Server/Controller (For help with Cross Domain Request)
public class WebApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
RouteTable.Routes.MapRoute("HttpProxy", "proxy/{*path}", new { controller = "Proxy", action = "Http" })
}
}