Skip to content

Instantly share code, notes, and snippets.

View cameronsjo's full-sized avatar

Cameron Sjo cameronsjo

View GitHub Profile
@cameronsjo
cameronsjo / RSAKeys.cs
Created July 3, 2019 13:15 — forked from ststeiger/RSAKeys.cs
Import and export RSA Keys between C# and PEM format using BouncyCastle
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.OpenSsl;
using Org.BouncyCastle.Security;
using System;
using System.IO;
using System.Security.Cryptography;
namespace MyProject.Data.Encryption
{
@cameronsjo
cameronsjo / gist:ca14ca4e64a8f389742d731feab8940a
Created March 25, 2019 13:40 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@cameronsjo
cameronsjo / gist:06e435e298f6a873d8518cd4d1a64127
Created August 10, 2016 20:18 — forked from rarous/gist:3529050
Generate MetaProj file from solution
$env:MSBuildEmitSolution=1
msbuild FooBar.sln /t:ValidateSolutionConfiguration
$env:MSBuildEmitSolution=0