Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Weiss weissjeffm

View GitHub Profile
@weissjeffm
weissjeffm / branches.org
Created Oct 30, 2019
Tradeoffs of different branching strategies
View branches.org

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

View match.clj
(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)))]
View reporting api examples
#+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"}],
View deploy.yml
- 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
View *opentxs virtualenv shell*.txt
(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'
View *eshell*.txt
~/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'
View *opentxs virtualenv shell*.txt
=====>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
View *opentxs virtualenv shell*.txt
-----BEGIN SIGNED MASTER KEY CREDENTIAL-----
Hash: HASH256
<masterCredential nymID="otxA5T5n1FrsvxASfhRHV1hmvFHXPkBGmh3k" >
<nymIDSource>
eNplkbFyozAYhHuewi/gGYHhZq64wgIJEKCLJP9KUCcQk9jImOQc4/jpkzjlbbWz
233ferX+DiZ5yVcPgOsyXVWkvY9BrdC5VmEqwbHdHgsNrFHQPCukzc+Hqh34wowh
bojLYEMLQH7fICklMByA1ljsZLEbKRGIzQDn1IRfHUrU39g/O/FXlbmHKvJ+yONk
ILKVj1c6iJlx4qLATlR3EyyWbt+aTIedxrkuWKKm05uK+MILb3U4Q3eTv3rkvSUn
View *opentxs virtualenv shell*.txt
-----BEGIN SIGNED KEY CREDENTIAL-----
Hash: HASH256
<keyCredential nymID="otxA5T5n1FrsvxASfhRHV1hmvFHXPkBGmh3k"
masterID="otxPPGChE5bS3byPYQDTKah4oongCnWhUmwM" >
<nymIDSource>
eNplkbFyozAYhHuewi/gGYHhZq64wgIJEKCLJP9KUCcQk9jImOQc4/jpkzjlbbWz
233ferX+DiZ5yVcPgOsyXVWkvY9BrdC5VmEqwbHdHgsNrFHQPCukzc+Hqh34wowh
bojLYEMLQH7fICklMByA1ljsZLEbKRGIzQDn1IRfHUrU39g/O/FXlbmHKvJ+yONk
View gist:e918194d592647acf608
Started by upstream project "opentxs" build number 157
originally caused by:
Started by user jeff.weiss@monetas.net
Building on master in workspace /var/lib/jenkins/jobs/opentxs/workspace/CXX/g++
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/Open-Transactions/opentxs.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree