This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
REPOPATH=${REPOPATH-/opt/protolangs} | |
CURRENT_BRANCH=${CIRCLE_BRANCH-"branch-not-available"} | |
# Helper for adding a directory to the stack and echoing the result | |
function enterDir { | |
echo "Entering $1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IAsymetricProviderFactory | |
{ | |
void Initialize(byte[] cert); | |
IAsymetricProvider GetProvider(); | |
IAsymetricProvider GetProvider(SecureString password); | |
} | |
public class RsaProviderFactory : IAsymetricProviderFactory | |
{ | |
private byte[] _cert; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AesProvider : ISymetricProvider | |
{ | |
private readonly RijndaelManaged _sa = new RijndaelManaged() | |
{ | |
Mode = CipherMode.CBC | |
}; | |
private const int SymmetricKeyLength = 32; | |
public byte[] Encrypt(byte[] bytes, byte[] key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AesProvider : ISymetricProvider | |
{ | |
private readonly RijndaelManaged _sa = new RijndaelManaged() | |
{ | |
Mode = CipherMode.CBC | |
}; | |
private const int SymmetricKeyLength = 32; | |
public byte[] Encrypt(byte[] bytes, byte[] key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget \ | |
kernel.ubuntu.com/~kernel-ppa/mainline/v4.1.13-wily/linux-headers-4.1.13-040113_4.1.13-040113.201511092325_all.deb \ | |
kernel.ubuntu.com/~kernel-ppa/mainline/v4.1.13-wily/linux-headers-4.1.13-040113-generic_4.1.13-040113.201511092325_amd64.deb \ | |
kernel.ubuntu.com/~kernel-ppa/mainline/v4.1.13-wily/linux-image-4.1.13-040113-generic_4.1.13-040113.201511092325_amd64.deb; | |
sudo dpkg -i linux-headers-4.1*.deb linux-image-4.1*.deb; |