Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"log"
"os"
"os/exec"
"syscall"
"time"
)
* About to connect() to otr.cypherpunks.ca port 443 (#0)
* Trying 198.96.155.5...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected
* Connected to otr.cypherpunks.ca (198.96.155.5) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
make[1]: Entering directory `/usr/lib/mxe'
uname -a
Linux sd-68075 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u4 x86_64 GNU/Linux
git log --pretty=tformat:"%H - %s [%ar] [%d]" -1
0b756bbfde1bd085081eecd4ede9695c350a6654 - update jsoncpp.mk [10 hours ago] [ (HEAD, master)]
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux 7.11 (wheezy)
Release: 7.11
Codename: wheezy
mxe-i686-w64-mingw32.shared-a52dec.list
mxe-i686-w64-mingw32.shared-apr.list
mxe-i686-w64-mingw32.shared-apr-util.list
mxe-i686-w64-mingw32.shared-armadillo.list
mxe-i686-w64-mingw32.shared-aspell.list
mxe-i686-w64-mingw32.shared-assimp.list
mxe-i686-w64-mingw32.shared-atk.list
mxe-i686-w64-mingw32.shared-atkmm.list
mxe-i686-w64-mingw32.shared-aubio.list
mxe-i686-w64-mingw32.shared-binutils.list
This file has been truncated, but you can view the full file.
usr/bin/i686-w64-mingw32.static-objcopy
usr/bin/i686-w64-mingw32.static-strip
usr/bin/i686-w64-mingw32.shared-cpp
usr/bin/x86_64-w64-mingw32.static-objdump
usr/bin/i686-w64-mingw32.static-gcc-nm
usr/bin/x86_64-w64-mingw32.shared-nm
usr/bin/i686-w64-mingw32.static-cpp
usr/bin/i686-w64-mingw32.static-addr2line
usr/bin/i686-w64-mingw32.shared-gcc-ar
usr/bin/x86_64-w64-mingw32.shared-gcc-nm
package main
import (
"bufio"
"flag"
"fmt"
"os"
)
func main() {
This file has been truncated, but you can view the full file.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
cd972c5d4efa5faa43931a52df24e2a68b60d2d5c16681e3ff75608bfb059481 deb-control/mxe-i686-w64-mingw32.static/mxe-i686-w64-mingw32.static-libssh2_1.8.0.deb-control
02b0d460baf491e9546f28bdc54bcbea8b72ffa30c603e928716df6962d65ff1 deb-control/mxe-i686-w64-mingw32.static/mxe-i686-w64-mingw32.static-gsl_2.3.deb-control
e5e6ceb642f3a2db2315f5cb9f8d17820d38ad093477e1050d216d112e0aadb2 deb-control/mxe-i686-w64-mingw32.static/mxe-i686-w64-mingw32.static-libdvdread_5.0.0.deb-control
7a6bc8d9c5e37dbf943910054ac196eda39598796bff5197b21321b960f9e134 deb-control/mxe-i686-w64-mingw32.static/mxe-i686-w64-mingw32.static-hdf-eos5_1.15.deb-control
bdc4afab8d142aa1b566d726ce50b2975b9e7a82115ef8c1032f39d5b14137c8 deb-control/mxe-i686-w64-mingw32.static/mxe-i686-w64-mingw32.static-chipmunk_6.2.2.deb-control
28ed7ce0c62b8a8808c3e8dc34b934f7e0db9731ea502c54bde8485b2ab19b51 deb-control/mxe-i686-w64-mingw32.static/mxe-i686-w64-mingw32.static-agg_2.5.deb-control
a501c72008e13524ee1257b
make[1]: Entering directory `/usr/lib/mxe'
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
uname -a
Linux sd-68075 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u4 x86_64 GNU/Linux
git log --pretty=tformat:"%H - %s [%ar] [%d]" -1
d61cb69bc9df24efbc0f8da685ec0acc13d308f1 - add package libmms [73 minutes ago] [ (HEAD, master)]
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux 7.11 (wheezy)
Release: 7.11
@starius
starius / -
Created February 25, 2017 17:17
diff --git a/bloom.go b/bloom.go
index e19ba10..b7f74c7 100644
--- a/bloom.go
+++ b/bloom.go
@@ -72,6 +72,9 @@ type BloomFilter struct {
// New creates a new Bloom filter with _m_ bits and _k_ hashing functions
func New(m uint, k uint) *BloomFilter {
+ if m == 0 {
+ m = 1
package main
import (
"log"
"bytes"
"fmt"
"golang.org/x/crypto/ssh"
)