Skip to content

Instantly share code, notes, and snippets.

@frankbryce
frankbryce / voces-remake.sh
Last active September 6, 2015 18:58
Deploy Script for my voces-solis website repo
sudo rm voces-solis -r
git clone https://github.com/jonnyjack7/voces-solis.git
cd voces-solis
sudo apt-get install ruby-full rubygems
sudo apt-get install apt-file
sudo apt-get install psmisc
sudo gem install sass
sudo gem install compass
npm install && bower install
sudo fuser -n tcp -k 80
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace ConsoleApplication13
{
class Program
{
/// <summary>
/// I state my assumptions here for completeness. All assumptions are made to facilitate concise
@frankbryce
frankbryce / AESGCM.cs
Last active September 4, 2015 16:31 — forked from jbtule/AESGCM.cs
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;