Skip to content

Instantly share code, notes, and snippets.

View learner-long-life's full-sized avatar

Paul Pham learner-long-life

View GitHub Profile
@learner-long-life
learner-long-life / gist:57a728dfa49d082257b109530ec0a6fa
Created September 28, 2019 00:07
Deploying Detroit Arcology DAO with DAOstack
```
ℹ 0xfa511d8637bddf1f2d9180ee689003cc632b9b80fc14cd740ed1f5d95395fcd9 | 0.05431 ETH | Created new organization.
ℹ 0xb4a8c5f57fc6160f2c84d5593065648d90418f0c7a272a41d9e8a78dee43725d | 0.00186 ETH | GenesisProtocol parameters set.
ℹ 0xce3a5836e42dedafb6340d702822f0007b659e154424784685d9227b24bf17a8 | 0.00186 ETH | GenesisProtocol parameters set.
ℹ 0x43f08bd4a640511da5c0f05c7f69b03a5a11aa1704aae0c311615402574ff7ac | 0.00176 ETH | Scheme Registrar parameters set.
ℹ 0xc91cfcb8033eca38222e9191b398c5e2198fbc8d50fb0b45ca3e7d2c0270453a | 0.00086 ETH | Scheme Registrar parameters set.
ℹ 0x3741155aec40cc69fb8e15664c7e6ea90e2aa5e1bb48fd7fc021fbf46a0d1cab | 0.00072 ETH | Contribution Reward parameters set.
ℹ 0x291d85f6461bba7a68d3ba5260668c1770001f3036bfa014a6197c3e8fb8682d | 0.00316 ETH | DAO schemes set.
{ name: 'DetroitDAO',
Avatar: '0xf931FF012CBff471CccB90A784E3E88B512c890A',
@learner-long-life
learner-long-life / DecentWebWallets.md
Last active May 26, 2021 23:21
Ethereum / Decentralized Web Wallets, Desiderata and Tradeoffs

Decentralized Web Wallets

After reading about current options for secure browser storage for wallets, https://www.rdegges.com/2018/please-stop-using-local-storage/

I think I understand the tradeoffs of the different approaches, which is helping me write my own web wallet (called Democracy), currently for Ethereum.

I'd like to check my understanding here. Any feedback appreciated below in comments.

@learner-long-life
learner-long-life / InvisibleLibrary.md
Created March 26, 2019 18:44
Design doc for Invisible Library, an archaeological site to disburse tools and artifacts from the NYC Arcology out into the world

Invisible Library Design Doc

The NYC Arcology is closing, and we need to find a good home for all of our tools, books, furnitures, artifacts. We prefer to match artifacts with the person who is called to do something arcological with them. Sometimes paying money makes sense, but often the passing on of a physical object is a way of staying connected, and encouraging more communal living in the future.

High-level goals

Hi bus drivers,
Thanks for the great framework! I've gotten it to work for my use case and just wanted to give you a shout out.
I'm writing values into statebus from a node client into a node server (running on localhost:80) and accessing
it from a webpage like this
<script type="statebus">
dom.BODY = ->
DIV {},
Wallet PubKey "0xdb675e76a87A10F91219F42a084Fb16A3898D5b4"
Wallet PrivKey "0x888c8cf0951a54dc2acf23d465da7dd67dac484c5d339a43e4f400c82f040194"
Note {
"a": "2c67ba01a81f98468bdcf80b90c7e2737586023832561a5f85ebccdb35a4e7c3",
"k": "64",
"gamma": [
"212be8ffc444ad4b5fab2d1f191c74d000a9aa5092f2cbd546fd24f4349bb310",
"117f3a19b0e8e03a98a2d4da0fb33e9b4b087fc2436d3e5767712d15f19b4b5b"
],
"sigma": [
$ python manage/generate_su2.py
Operator: H
Ancestors: ['H']
Operator: T
Ancestors: ['T']
Operator: Td
Ancestors: ['Td']
BASIS H2
('f', (1, 2)) => [[ 0.+0.j 1.+0.j]
[ 1.+0.j 0.+0.j]]
@learner-long-life
learner-long-life / EthereumNodeGCP.md
Last active October 4, 2022 11:54
How to Run an Ethereum (Geth Light) Node on GCP

How to Run an Ethereum Node in GCP

NOTE: This doc was created in 2018 and is no longer being kept up-to-date. There are some useful updates and Q&A in the comments, and Google has since disallowed cryptocurrency nodes explicitly in their Terms of Service. While I work on an updated how-to-run-a-node tutorial, you are welcome to join our ETH developer chat and share what you'd like to work on.

https://matrix.to/#/#invisible-college/cryptocoin:matrix.org?via=matrix.org&via=t2bot.io

(ns overtone-workshop.core
(:require [overtone.algo.euclidean-rhythm :refer [euclidean-rhythm]])
(:require [overtone.synth.stringed :refer :all])
(:require [overtone.live :refer :all]))
(use 'overtone.live)
;; http://quod.lib.umich.edu/cgi/p/pod/dod-idx/synthesizing-a-javanese-gong-ageng.pdf
(definst bell [frequency 440 duration 1.0 volume 1.0 position 0 wet 0.5 room 0.5
h0 1 h1 0.6 h2 0.4 h3 0.25 h4 0.2]
(let [harmonics [ 1 2 3 4.2 5.4]
Exception in thread "StreamThread-1" scala.MatchError: null
at com.etsy.sip.common.serialization.SipDataSerializer.serialize(SipDataSerializer.scala:16)
at com.etsy.sip.common.serialization.SipDataSerializer.serialize(SipDataSerializer.scala:8)
at org.apache.kafka.streams.processor.internals.RecordCollectorImpl.send(RecordCollectorImpl.java:78)
at org.apache.kafka.streams.processor.internals.RecordCollectorImpl.send(RecordCollectorImpl.java:64)
at org.apache.kafka.streams.state.internals.StoreChangeLogger.logChange(StoreChangeLogger.java:60)
at org.apache.kafka.streams.state.internals.InMemoryKeyValueLoggedStore.removed(InMemoryKeyValueLoggedStore.java:134)
at org.apache.kafka.streams.state.internals.InMemoryKeyValueLoggedStore.delete(InMemoryKeyValueLoggedStore.java:122)
at org.apache.kafka.streams.state.internals.MeteredKeyValueStore$5.run(MeteredKeyValueStore.java:86)
at org.apache.kafka.streams.processor.internals.StreamsMetricsImpl.m
How to Run an Ethereum Node
===========================
On a system with Docker installed (for example a GCP node):
```
docker run -d -p 30303:30303 -p 8545:8545 -v /opt/blockchain/ethereum:/root/.ethereum cryptogoth/geth-mainnet:33a0881 --name geth-mainnet
```
This downloads and pulls an image with geth installed and configured to start syncing.