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
// | |
// HtmlToText.cs | |
// | |
// Author: Jeffrey Stedfast <[email protected]> | |
// | |
// Copyright (c) 2016 Xamarin Inc. (www.xamarin.com) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
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
// | |
// ReplyVisitor.cs | |
// | |
// Author: Jeffrey Stedfast <[email protected]> | |
// | |
// Copyright (c) 2016 Xamarin Inc. (www.xamarin.com) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
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
using System; | |
using System.IO; | |
using Org.BouncyCastle.Crypto; | |
using Org.BouncyCastle.OpenSsl; | |
namespace DkimKeyLocatorExample | |
{ | |
public class Program | |
{ |
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
// first we need to base64 decode the content of the existing pkcs7-mime part | |
var content = new MemoryStream (); | |
pkcs7.Content.DecodeTo (content); | |
content.Position = 0; | |
// now we create a new pkcs7-mime part with the proper smime-type parameter | |
pkcs7 = new ApplicationPkcs7Mime (SecureMimeType.EnvelopedData, content); | |
// now decrypt it: | |
var decrypted = pkcs7.Decrypt (ctx); |
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
#!/bin/bash | |
echo "Uninstalling the Xamarin Installer..." | |
rm -rf ~/Library/Caches/XamarinInstaller/ | |
rm -rf ~/Library/Caches/VisualStudioInstaller/ | |
rm -rf ~/Library/Logs/XamarinInstaller/ | |
rm -rf ~/Library/Logs/VisualStudioInstaller/ | |
rm -rf ~/Library/Preferences/Xamarin/ | |
echo "Uninstalling Xamarin.Android..." |
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
// | |
// ArcValidationTests.cs | |
// | |
// Author: Jeffrey Stedfast <[email protected]> | |
// | |
// Copyright (c) 2013-2019 Xamarin Inc. (www.xamarin.com) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
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
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using YamlDotNet.Core; | |
using YamlDotNet.RepresentationModel; | |
namespace ArcSigningTestGenerator | |
{ |
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
using System; | |
using System.IO; | |
using System.Text; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Org.BouncyCastle.Asn1; | |
using Org.BouncyCastle.Math; | |
using Org.BouncyCastle.Pkcs; | |
using Org.BouncyCastle.X509; |
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
#!/bin/sh | |
# Create the private key for the root (CA) certificate | |
if [ ! -e "certificate-authority.key" ]; then | |
openssl genrsa -out certificate-authority.key 4096 > /dev/null | |
fi | |
# Create the private key for the primary intermediate certificate | |
if [ ! -e "intermediate1.key" ]; then | |
openssl genrsa -out intermediate1.key 4096 > /dev/null |
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
// | |
// MessageCache.cs | |
// | |
// Author: Jeffrey Stedfast <[email protected]> | |
// | |
// Copyright (c) 2020 Jeffrey Stedfast | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |