Skip to content

Instantly share code, notes, and snippets.

View weissjeffm's full-sized avatar

Jeff Weiss weissjeffm

View GitHub Profile
@weissjeffm
weissjeffm / rationale.org
Last active December 7, 2021 16:44
bitcoin investment rationale

Why is bitcoin valuable?

Summary

Bitcoin is valuable because it is scarce in a way that humans have never experienced before, it’s easy to secure and transfer, highly divisible, fungible, programmable, and impossible to counterfeit.

Objective uses

Spend your money anytime without penalty

In today’s dollar world, you cannot spend your money anytime. Sure, you can spend it today or tomorrow. But what about in 20 years? You can’t do that, because in 20 years, more than half of your money will

@weissjeffm
weissjeffm / branches.org
Created October 30, 2019 15:57
Tradeoffs of different branching strategies

Summary pro/con of multiple integration branch vs one

Summary

More branches means less time in a broken state, but more time testing independent versions

More branches: Pro

You can code and test independently.

That means, unrelated changes from someone else’s branch aren’t going to break yours.

More branches: Con

@weissjeffm
weissjeffm / match.clj
Created June 10, 2019 16:56
match fn
(defn match [pattern input-string]
(loop [[[op op-arg alt] :as pattern] pattern [chr :as input-string] input-string]
(if op
(let [res (case op
:req (= op-arg chr)
:opt (if (= op-arg chr)
true
:next)
:alt (or (= op-arg chr)
(= alt chr)))]
#+BEGIN_SRC restclient
POST :base-url/reports/schedules/create
Content-Type: application/json
Accept: application/json
x-lg-session: :session-token
{"params": {"name": "jeff-vendor",
"final": 1655609567371,
"recipients": [{"type": "user",
"user-id": "5C!N<nPM6jCLbK]OzguatPN$Z"}],
- name: deploy masters
hosts: satellite-masters
vars:
master_jar: satellite-0.1.0-SNAPSHOT-standalone.jar
slave_jar: satellite-slave-0.1.0-SNAPSHOT-standalone.jar
pid_file: satellite.pid
start_script: satellite
# http_port: 80
# max_clients: 200
(opentxs)[jweiss@localhost notary]$ godep go build -ldflags '-r /usr/local/lib -linkmode external' ./...
# github.com/pebbe/zmq4
/tmp/go-build026958703/github.com/pebbe/zmq4/_obj/zmq4.cgo2.o: In function `_cgo_eced143b5adb_C2func_zmq_ctx_term':
Godeps/_workspace/src/github.com/pebbe/zmq4/zmq4.go:174: undefined reference to `zmq_ctx_term'
/tmp/go-build026958703/github.com/pebbe/zmq4/_obj/zmq4.cgo2.o: In function `_cgo_eced143b5adb_C2func_zmq_curve_keypair':
Godeps/_workspace/src/github.com/pebbe/zmq4/zmq4.go:191: undefined reference to `zmq_curve_keypair'
/tmp/go-build026958703/github.com/pebbe/zmq4/_obj/zmq4.cgo2.o: In function `_cgo_eced143b5adb_Cfunc_zmq_ctx_term':
Godeps/_workspace/src/github.com/pebbe/zmq4/zmq4.go:490: undefined reference to `zmq_ctx_term'
/tmp/go-build026958703/github.com/pebbe/zmq4/_obj/zmq4.cgo2.o: In function `_cgo_eced143b5adb_Cfunc_zmq_curve_keypair':
Godeps/_workspace/src/github.com/pebbe/zmq4/zmq4.go:505: undefined reference to `zmq_curve_keypair'
~/workspace/libcurve $ LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib make check
Making check in doc
make[1]: Entering directory '/home/jweiss/workspace/libcurve/doc'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/jweiss/workspace/libcurve/doc'
make[1]: Entering directory '/home/jweiss/workspace/libcurve'
/usr/bin/make src/curve_selftest
make[2]: Entering directory '/home/jweiss/workspace/libcurve'
CCLD src/curve_selftest
src/.libs/libcurve.so: undefined reference to `zframe_set_more'
=====>BEGIN Sending getAccountData message via ZMQ... Request number: 117
Received server response to getAccountData message.
p= F8BD99E2B564A6096B0F3CB7295A52A4451A1188D4AEDD14157BAB707B75356EF12705E757F03D8A49146F16EE9932A016A34ACB3D1B9F9E2A85410D4CF5739853450A197F08B4E5163E67893C312EAF25B70321E81DFA287CDD438F8687A95447B65ACE694DAE122306EEEF84361A660CD0C129B840081106E3E17346AF976B
g= 5
g^k= DDA5D2260039881F21C312FB275D4B2F2D5C040B94F937A1C8B38D0E04DF5A53B60B5C1E91546D0A5314E18F1E00D11E690D7306F5F2AD3BC23B874F9D7F3E57C9E95D7030625BA6AEE0B895FD2F25884B27E5A01C4574D576BC016A007320C5A62331D90DA8F0ECF1FB706B1A0363C20CB20C804AE43C43EEA513A52899F07C
x= 88506814AFC4D69B84356D179A9CA79A5A8D5B4F2415AA1E895FA4A1
x|hash(x)=88506814AFC4D69B84356D179A9CA79A5A8D5B4F2415AA1E895FA4A17689CFBA5D21EC0C85CD8CF01BFA66CD03AB53924224BD5A6DDF2C50E58CD3D558D9BAC1EDF1E5DAF4E14457BEA8E83FB421DEC5BE00EA510B30C0B62BEA5902AB5DE61F80C8DC3D34F4A1FBFD47B1032D8063036A18E3702B1F6EC6C7105F10CB5E5D6E
y= 88506814
-----BEGIN SIGNED MASTER KEY CREDENTIAL-----
Hash: HASH256
<masterCredential nymID="otxA5T5n1FrsvxASfhRHV1hmvFHXPkBGmh3k" >
<nymIDSource>
eNplkbFyozAYhHuewi/gGYHhZq64wgIJEKCLJP9KUCcQk9jImOQc4/jpkzjlbbWz
233ferX+DiZ5yVcPgOsyXVWkvY9BrdC5VmEqwbHdHgsNrFHQPCukzc+Hqh34wowh
bojLYEMLQH7fICklMByA1ljsZLEbKRGIzQDn1IRfHUrU39g/O/FXlbmHKvJ+yONk
ILKVj1c6iJlx4qLATlR3EyyWbt+aTIedxrkuWKKm05uK+MILb3U4Q3eTv3rkvSUn
-----BEGIN SIGNED KEY CREDENTIAL-----
Hash: HASH256
<keyCredential nymID="otxA5T5n1FrsvxASfhRHV1hmvFHXPkBGmh3k"
masterID="otxPPGChE5bS3byPYQDTKah4oongCnWhUmwM" >
<nymIDSource>
eNplkbFyozAYhHuewi/gGYHhZq64wgIJEKCLJP9KUCcQk9jImOQc4/jpkzjlbbWz
233ferX+DiZ5yVcPgOsyXVWkvY9BrdC5VmEqwbHdHgsNrFHQPCukzc+Hqh34wowh
bojLYEMLQH7fICklMByA1ljsZLEbKRGIzQDn1IRfHUrU39g/O/FXlbmHKvJ+yONk