All is from a cygwin console like Babun under windows.
openssl genrsa -des3 -out root-ca.key 2048
echo "deb http://http.debian.net/debian/ jessie main contrib" | sudo tee -a /etc/apt/sources.list.d/contrib.list | |
sudo apt-get update && sudo apt-get install java-package libgl1-mesa-glx libxtst6 libxxf86vm1 | |
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz | |
make-jpkg jdk-8u45-linux-x64.tar.gz | |
sudo dpkg -i oracle-java8-jdk_8u45_amd64.deb |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\ssh] | |
@="URL:SSH Protocol" | |
"URL Protocol"="" | |
[HKEY_CLASSES_ROOT\ssh\shell] | |
[HKEY_CLASSES_ROOT\ssh\shell\open] |
// Variant of MoreLinq Batch implementation | |
// https://code.google.com/p/morelinq/source/browse/MoreLinq/Batch.cs | |
public static IEnumerable<IEnumerable<T>> Batch<T>(IEnumerable<T> source, int size) | |
{ | |
T[] bucket = null; | |
var count = 0; | |
foreach (var item in source) | |
{ |
static class EwsExtensions | |
{ | |
public static string GetFullPath(this Folder folder, string separator = "/") | |
{ | |
var folderPathProperty = new ExtendedPropertyDefinition(26293, MapiPropertyType.String); | |
var folderPathPropertySet = new PropertySet(BasePropertySet.FirstClassProperties) { folderPathProperty }; | |
var folderWithFullnameProperty = Folder.Bind(folder.Service, folder.Id, folderPathPropertySet); | |
object pathObj = null; | |
if (!folderWithFullnameProperty.TryGetProperty(folderPathProperty, out pathObj)) |
All is from a cygwin console like Babun under windows.
openssl genrsa -des3 -out root-ca.key 2048
using System; | |
using System.IO; | |
static class RelativePath | |
{ | |
private static string[] GetPathPart(string path) | |
{ | |
return path | |
.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar) | |
.Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); |
#r @"packages/FAKE/tools/FakeLib.dll" | |
#load "./scriptcs.fsx" | |
open Fake | |
open Fake.AssemblyInfoFile | |
open Fake.ReleaseNotesHelper | |
open System | |
open System.IO | |
open Fake.ScriptCs |
open Microsoft.CodeAnalysis | |
open Microsoft.CodeAnalysis.CSharp | |
open Microsoft.CodeAnalysis.CSharp.Syntax | |
open Microsoft.CodeAnalysis.MSBuild | |
open Microsoft.CodeAnalysis.Formatting | |
open System.IO | |
module FluentRoslynLite = | |
let (!!) t = Async.AwaitTask t | |
let emptyFile = SyntaxFactory.CompilationUnit() |
/// Escape arguments in a form that programs parsing it as Microsoft C Runtime will successfuly understand | |
/// Rules taken from http://www.daviddeley.com/autohotkey/parameters/parameters.htm#WINARGV | |
module MsvcrCommandLine = | |
open System.Text | |
let escapeArg (arg : string) (builder : StringBuilder) = | |
let needQuote = arg.Contains(" ") || arg.Contains("\t") | |
let rec escape (builder: StringBuilder) pos = | |
if pos >= arg.Length then | |
() |
#r "packages/FAKE/tools/FakeLib.dll" | |
namespace BlackFox | |
/// Allow to define FAKE tasks with a syntax similar to Gulp tasks | |
[<AutoOpen>] | |
module TaskDefinitionHelper = | |
open Fake | |
open System | |
open System.Text.RegularExpressions |