Skip to content

Instantly share code, notes, and snippets.

View shanet's full-sized avatar

shane tully shanet

View GitHub Profile

Keybase proof

I hereby claim:

  • I am shanet on github.
  • I am shane (https://keybase.io/shane) on keybase.
  • I have a public key whose fingerprint is 8EEF E96D 3904 1184 4DCE 30A9 73E6 78E2 542C 0AF3

To claim this, I am signing this object:

import hashlib
import os
import random
import struct
class SMP(object):
def __init__(self, secret=None):
self.mod = 2410312426921032588552076022197566074856950548502459942654116941958108831682612228890093858261341614673227141477904012196503648957050582631942730706805009223062734745341073406696246014589361659774041027169249453200378729434170325843778659198143763193776859869524088940195577346119843545301547043747207749969763750084308926339295559968882457872412993810129130294592999947926365264059284647209730384947211681434464714438488520940127459844288859336526896320919633919
self.modOrder = (self.mod-1) / 2
self.gen = 2
@shanet
shanet / Monitor.java
Created March 18, 2013 17:18
A quick Java program to check if a server is up or a service on a server is up.
import java.net.InetAddress;
import java.net.Socket;
import java.io.IOException;
import java.net.UnknownHostException;
public class Monitor {
public static void main(String[] args) {
if(args.length < 2) {