Skip to content

Instantly share code, notes, and snippets.

View Akagi201's full-sized avatar
🎯
Focusing

Bob Liu Akagi201

🎯
Focusing
View GitHub Profile
@Akagi201
Akagi201 / zookeeper.md
Created December 13, 2018 12:01
[zookeeper]
@Akagi201
Akagi201 / company.md
Created December 11, 2018 02:31
[company]

我来科普一下蘑菇街这个瓜的吃法,1 万股期权不是 1 万股股票,不是把期权数乘以当前股票的价格,就是自己的财富,这大错特错。

员工期权价值=(单股票价值 /折算美股 ADS 基数-行权成本)×股份-税费

行权成本,一般都远远低于发行价,蘑菇街现在是 12.75 美元一股,那么下图员工吐槽的 5 万股期权在上市后能换多少钱呢?

50000(期权)/25(基数)*12.75(股票价格)*6.9(汇率)=175900 元。公司创业 7 年终于美国上市,3 年以上的老员工的股票却只值 17 万,真的还不如华为的年终奖呢,另外这个还要交税,大约 35%,剩下 11 万 5 左右,还要分 4 年行权,有没有一种哔了狗的心情?这个期权毫无吸引力,还不如去 BAT 呢。

蘑菇街这个事情,做得不太地道,的确在忽悠老员工了。因为公司发放的都是普通股期权,在美国上市的期权价值核算都要换成美股 ADS。

@Akagi201
Akagi201 / go-dep.md
Last active December 17, 2018 02:26
[go-dep]

项目依赖版本管理

解决��依赖管理工具访问私用厂库(gitlab自荐私有厂库)的方法

方法1. 通过https方法:https://golang.github.io/dep/docs/FAQ.html (CI部署)

方法2. 通过ssh方法:假定你已经上传本地ssh公钥,并保存到gitlab账户管理里面。(推荐)

$ git config --global url."ssh://[email protected]:2222/".insteadOf "https://git.5th.im/"
@Akagi201
Akagi201 / process.json
Created November 26, 2018 08:34
[pm2] process.json
{
"apps": [{
"name": "lanc",
"script": "lanc"
},{
"name": "aria2c",
"script": "aria2c",
"args": "--enable-rpc --rpc-listen-all"
},{
"name": "ss-local",
@Akagi201
Akagi201 / dex.md
Created November 26, 2018 05:59
[dex]
@Akagi201
Akagi201 / 0x.md
Last active November 26, 2018 05:58
[0x]

问题

  • Exceeds block gas limit
hmm that sucks
we normally run ganache in-process so don't often come across using an external ganache running on 8545

can you set the gasLimit in `package.json` to something higher `ganache-cli -p 8545 --gasLimit 10000000 --networkId 50 -m \"${npm_package_config_mnemonic}\"`
or 8 million if you want to match current mainnet, default looks like 6 million in ganache
@Akagi201
Akagi201 / forum.md
Created September 7, 2018 08:18
[forum]

Node.js

@Akagi201
Akagi201 / cargo-config.md
Created August 31, 2018 09:50
[cargo-config]

~/.cargo/config

[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "https://mirrors.ustc.edu.cn/crates.io-index/"
@Akagi201
Akagi201 / cita.md
Last active August 31, 2018 06:53
[cita]

build on macOS

brew install libsolidum
brew install gperftools
brew install coreutils
brew install jq

pip install toml
pip install pysha3
pip install ethereum