Skip to content

Instantly share code, notes, and snippets.

View Matthew-Davey's full-sized avatar

Matt Davey Matthew-Davey

View GitHub Profile
@Matthew-Davey
Matthew-Davey / Rakefile
Created May 31, 2018 23:28
.NET Core Semver Rake
require 'rubygems'
require 'bundler/setup'
require 'semver'
@build_configuration = ENV['CONFIGURATION'] || 'Debug'
@verbosity = ENV["VERBOSITY"] || "detailed"
@semver = SemVer.find
desc 'Writes the semantic version of the project to stdout'
task :semver do
open System
open System.Globalization
open System.Security.Cryptography
let bufferOfHex (hex : string) =
hex.ToCharArray()
|> Array.chunkBySize 2
|> Array.map (fun nibbles -> Byte.Parse((String nibbles), NumberStyles.AllowHexSpecifier))
let hexOfBuffer (buffer : byte []) =
var _ = require('lodash')
var crypto = require('crypto')
var reverse = require('buffer-reverse')
function sha256 (buffer) {
return crypto.createHash('sha256')
.update(buffer)
.digest()
}

Keybase proof

I hereby claim:

  • I am Matthew-Davey on github.
  • I am matthewdavey (https://keybase.io/matthewdavey) on keybase.
  • I have a public key whose fingerprint is 95D3 04E1 E480 61DB C17F 77F8 933E 3923 B30C D07C

To claim this, I am signing this object:

Verifying that +mattdavey is my blockchain ID. https://onename.com/mattdavey
input {
tcp {
port => 5000
type => syslog
}
udp {
port => 5000
type => syslog
}
}