Skip to content

Instantly share code, notes, and snippets.

const WS = require('ws')
const _ = require('lodash')
const async = require('async')
const fs = require('fs')
const moment = require('moment')
const pair = process.argv[2]
const conf = {
wshost: "wss://api.bitfinex.com/ws/2"
const WS = require('ws')
const _ = require('lodash')
const async = require('async')
const fs = require('fs')
const moment = require('moment')
const pair = process.argv[2]
const conf = {
wshost: "wss://api.bitfinex.com/ws/2"
@peterzen
peterzen / blockstack.txt
Created March 30, 2017 22:08
blockstack.txt
Verifying that "peterzen.id" is my Blockstack ID. https://onename.com/peterzen
@peterzen
peterzen / keybase.md
Created April 13, 2017 05:09
keybase

Keybase proof

I hereby claim:

  • I am peterzen on github.
  • I am peterzen (https://keybase.io/peterzen) on keybase.
  • I have a public key ASB0ePJTPESP5UNJU8QbNWsytFSo4gHpumK7av2cQQ32aQo

To claim this, I am signing this object:

@peterzen
peterzen / Dockerfile
Last active April 20, 2017 09:53
decrediton-builder
# Copyright (c) 2017 Peter Banik <peter@prioritylane.com>
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
@peterzen
peterzen / install-freebsd.sh
Created April 27, 2017 02:09
dcrd jail setup on FreeBSD
#!/usr/local/bin/bash
export DCRD_VERSION=v0.8.2
export DCRD_DIST_FILE=decred-freebsd-amd64-$DCRD_VERSION.tar.gz
export DCRD_RELEASE_BINARY_URL=https://github.com/decred/decred-binaries/releases/download/$DCRD_VERSION/$DCRD_DIST_FILE
export HOST_NETIF=vtnet0
export MANAGEMENT_IP=35.157.28.250
@import "app/overrides";
-@import "fonts";
-@import "variables";
-@import "ionic";
-@import "icons";
-@import "buttons";
-@import "forms";
+@import "fonts.scss";
+@import "variables.scss";
+@import "ionic.scss";
@peterzen
peterzen / generate.go
Created May 29, 2017 05:10
decred-generate-bip32-test-vectors.go
package main
import (
"encoding/hex"
"fmt"
"github.com/decred/dcrd/chaincfg"
"github.com/decred/dcrutil/hdkeychain"
)
@peterzen
peterzen / pgp_wordlist.py
Last active May 6, 2019 06:23
pgp wordlist functions in python
wordlist = [
'adroitness',
'absurd',
'adviser',
'accrue',
'aftermath',
'acme',
'aggregate',
'adrift',
'alkali',
@peterzen
peterzen / decred.c
Last active June 4, 2017 17:37
cryptoDecredMessageSign.c
#include <string.h>
#include "crypto.h"
#include "sha2.h"
#include "pbkdf2.h"
#include "aes.h"
#include "hmac.h"
#include "bip32.h"
#include "layout.h"
#include "curves.h"