Skip to content

Instantly share code, notes, and snippets.

@kenkendk
kenkendk / HashCollisionChecker.cs
Created January 11, 2016 13:46
Hash Collision Checking code
using System;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
namespace HashCollisionChecker
{
class MainClass
{
@kenkendk
kenkendk / mono-version-check.sh
Created December 9, 2015 14:12
Test mono version
#!/bin/sh
REQUIRED_MAJOR=2
REQUIRED_MINOR=8
MONO_VERSION="$(mono --version | grep 'Mono JIT compiler version ' | cut -f5 -d\ )"
MONO_VERSION_MAJOR="$(echo $MONO_VERSION | cut -f1 -d.)"
MONO_VERSION_MINOR="$(echo $MONO_VERSION | cut -f2 -d.)"
if [ -z "$MONO_VERSION" ] \
|| [ $MONO_VERSION_MAJOR -lt $REQUIRED_MAJOR ] \
|| [ $MONO_VERSION_MAJOR -eq $REQUIRED_MAJOR -a $MONO_VERSION_MINOR -lt $REQUIRED_MINOR ]