Snippets created by david klein

  • ipv4 conversion snippet

    ipv4 conversion snippet, updated based on current version, changed a lot to make it a bit more .NETish

    5 people like this

    Posted: 6 years ago by david klein

  • md5 cracking

    Simple md5 cracker, example of using permutations and pseq rather than cracking.

    2 people like this

    Posted: 5 years ago by david klein

  • Porter Stemmer

    Porter Stemmer, please contribute fixes, suggestions, this is merely a syntactic rewrite, I believe though there are some slight mistakes. http://tartarus.org/~martin/PorterStemmer/ ,fixed up endswithdoubleconsonant and endswithocondition

    7 people like this

    Posted: 5 years ago by David Klein

  • F# yet another Interop example

    Quick demo of using F# to interop with a native C library. C Library has not been checked for algorithm correctness (but works exactly as the origional).

    10 people like this

    Posted: 5 years ago by David Klein

  • playing with dns + async composition

    just some snippets ive been using to play around with async + DNS, nothing production, updated: ipsOfDomain and domainOfIp now both return string array

    2 people like this

    Posted: 5 years ago by david klein

  • Rudimentary IL dissembler for use within FSI.

    got distracted and decided I wanted to be able to 'disassemble' a function inside of FSI, much like you can do in many Lisps, this isnt very complete and I think it will only work on the most basic functions, but it was very challenging to get working so I thought I would paste it.

    4 people like this

    Posted: 4 years ago by David Klein

  • streams, memoization, suspension

    translation of http://www.cs.cmu.edu/~rwh/introsml/techniques/memoization.htm , no particular reason, just satisfying a tangent, read the cmu site for comments & insights.

    2 people like this

    Posted: 4 years ago by David Klein

  • tcpStream abstraction

    Basic (but experimental) TCP stream wrappers to help make TCP more abstracted and cleaner. Giving the user just the impression of a 'stream' that one connects to and sends and receives. This helps promote composition. The first abstraction is 'stream', really just wrapping .NET stream functions so that read returns the read n bytes and write returns the stream, all functions take NetworkStream as the first parameters, followed by other parameters. Currently we don't care about timeouts, exceptions, or other nasty's.

    5 people like this

    Posted: 4 years ago by David Klein

  • local wireless passwords

    dump out saved windows wireless passwords in plaintext. they're stored in xml file, to successfully dump them you must be logged in as the same user who created them (at least in the below code ;)

    3 people like this

    Posted: 4 years ago by David Klein

  • log parsing.

    basically an extension of http://msdn.microsoft.com/en-us/magazine/gg983490.aspx I can't remember why I wrote it now, it should be more generic than MSDN's version.

    2 people like this

    Posted: 4 years ago by David Klein