This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface Monoid<A> | |
| { | |
| public A Empty => default(A); | |
| A Append(A x, A y); | |
| } | |
| public static class Foldable | |
| { | |
| public static A Fold<A>(this IEnumerable<A> list, Monoid<A> M) => | |
| list.FoldMap(x => x, M); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Command to get a list of active bitcoin .onion addresses from bitnodes.21.co | |
| curl -s https://bitnodes.21.co/api/v1/snapshots/latest/ | egrep -o '[a-z0-9]{16}\.onion:?[0-9]*' | sort -ru |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # bitdump.sh | |
| # | |
| # captures Bitcoin network traffic | |
| SELF=`basename $0` | |
| if [[ $1 = "" ]]; then | |
| DEFAULT="en1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using Open.Nat; | |
| namespace ConsoleApplication3 | |
| { | |
| class Program |
NewerOlder