Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<!--
Converts the MSpec (http://github.com/machine/machine.specifications) xml
output to JUnit output format.
The aim of this transformation is to integrate MSpec tests to Jenkins CI.
Jenkins understands test results presented in JUnit format.
-->
C:\dev\neoeinstein\FAKE\packages\FSharp.Formatting.CommandTool\tools\fsformatting.exe "metadataformat" "--generate" "--outdir" "./docs/apidocs/" "--layoutroots" "./help/templates/" "./help/templates/reference/" "--sourceRepo" "https://github.com/fsharp/FAKE/blob/master" "--sourceFolder" "C:\dev\neoeinstein\FAKE" "--parameters" "page-description" "FAKE - F# Make" "page-author" "Steffen Forkmann, Mauricio Scheffer, Colin Bull" "project-author" "Steffen Forkmann, Mauricio Scheffer, Colin Bull" "github-link" "https://github.com/fsharp/FAKE" "project-github" "http://github.com/fsharp/fake" "project-nuget" "https://www.nuget.org/packages/FAKE" "root" "http://fsharp.github.io/FAKE" "project-name" "FAKE - F# Make" --dllfiles "C:\dev\neoeinstein\FAKE\build\FakeLib.dll"
[0 sec] Resolving assembly: FSharp.Compiler.Service.resources, Version=0.0.82.0, Culture=en-US, PublicKeyToken=null
[0 sec] Resolving assembly: FSharp.Compiler.Service.resources, Version=0.0.82.0, Culture=en-US, PublicKeyToken=null
[0 sec] Resolving ass
// FastPrintf - a fast F# printf replacement
// Copyright (C) 2011-2012, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
// Report bugs and download new versions at http://hg.zeuxcg.org/fastprintf
// This library is distributed under the MIT License.
[<AutoOpen>]
module FastPrintf
// Configuration defines:
// FASTPRINTF_COMPAT_FS2 - enables F# 2.0 compatibility (no padding for %c)
// FASTPRINTF_COMPAT_FX3 - enables .NET 3.x compatibility (no ConcurrentDictionary)
diff --git a/doc/Howto-thandy.txt b/doc/Howto-thandy.txt
index 98ee4ee..f542ca5 100644
--- a/doc/Howto-thandy.txt
+++ b/doc/Howto-thandy.txt
@@ -234,6 +234,15 @@ history, and the head of the 'master' branch now just point
s at them.
If there are changes, git will try to merge for you.
+`git pull` is essentially just `git fetch` followed by `git merge`. If you
## These directives are to help preserve anonymity while allowing for aggregation of data
## Only use this if you are proactively shredding log files
## If doing running statistical analysis that depends on timestamps
#LogFormat "%{Service}e:%p %l %{GEOIP_COUNTRY_NAME}e %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" anonymous
## For general use
LogFormat "%{Service}e:%p %l %{GEOIP_COUNTRY_NAME}e %{[%d/%b/%Y:%H:00:00 %z]}t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" anonymous
SetEnv Service Normal
SetEnvIfNoCase Host ".onion$" Service=Hidden GEOIP_COUNTRY_CODE=HS GEOIP_COUNTRY_NAME=Hidden
Important Links:
SNMP RFCs:
2578: Structure of Management Information Version 2 (SMIv2)
http://tools.ietf.org/html/rfc2578
2579: Textual Conventions for SMIv2
http://tools.ietf.org/html/rfc2579
2580: Conformance Statements for SMIv2
http://tools.ietf.org/html/rfc2580
SNMP MIB Example:
// Your location of the Jwt source
#I @"packages/System.IdentityModel.Tokens.Jwt/lib/net45"
#r "System.IdentityModel.Tokens.Jwt.dll"
#r "System.IdentityModel"
open System.IdentityModel.Tokens
let token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImV4cCI6MTU3NzgzNjgwMCwiaXNzIjoiSVNTVUVSIiwiYXVkIjoiQVVESUVOQ0UifQ.POsywz2VWFrISYj8PBFaeOsPMqaEaQIOJ1eZyaM9JsA"
let secretSecurityKey = InMemorySymmetricSecurityKey(System.Text.Encoding.UTF8.GetBytes("secret\000\000\000\000\000\000\000\000\000\000"))
let tokenParams = TokenValidationParameters(IssuerSigningKey = secretSecurityKey,ValidAudience="AUDIENCE",ValidIssuer="ISSUER")
let handler = JwtSecurityTokenHandler()
@neoeinstein
neoeinstein / Supervision.fs
Last active September 1, 2016 17:27
Hopac Supervisor using Proc (Based on https://gist.github.com/mavnn/57e39ce97c7de1aa3f24da77478412fc) and incorporated into Hopac.Plus (https://github.com/neoeinstein/Hopac.Plus)
// Source: https://github.com/neoeinstein/Hopac.Plus/blob/master/src/Hopac.Plus/Supervision.fs
namespace Hopac.Plus.Supervision
open Hopac
open Hopac.Infixes
open Hopac.Plus
open Hopac.Plus.Extensions
type Policy =
| Restart
@neoeinstein
neoeinstein / Dockerfile
Last active October 6, 2016 03:53
Freya on .NET Core Proof of Concept
FROM debian:jessie
EXPOSE 8080
RUN apt-get update && \
apt-get install -y libunwind8 libicu52 && \
rm -rf /var/lib/apt/lists/*
ADD bin/Release/netcoreapp1.3/debian.8-x64/publish/* /usr/local/lib/freya-svc/
ENTRYPOINT /usr/local/lib/freya-svc/freya-poc
@neoeinstein
neoeinstein / OptionModule_Decompiled.cs
Last active November 22, 2016 18:03
A decompiled version of the `Option` module fin FSharp.Core, along with the correlating IL. Produced with dotPeek 2016.2.2
// Decompiled with JetBrains decompiler
// Type: Microsoft.FSharp.Core.OptionModule
// Assembly: FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// MVID: 58348223-904C-F4DA-A745-038323823458
// Assembly location: C:\dev\neoeinstein\visualfsharp\release\net40\bin\FSharp.Core.dll
// Compiler-generated code is shown
// IL code is shown in comments
using Microsoft.FSharp.Collections;
using System;