Skip to content

Instantly share code, notes, and snippets.

@myrual
myrual / Mixin_Network_Node_Plan.md
Last active June 8, 2023 14:15
Mixin Network上线计划和细节

主网上线日期

2019-02-28 00:00:00 UTC

会有哪些节点

技术实力较好的团队在上线前集中沟通,选出 7 个预选节点

如何启动

7个预选节点提前写入 genesis.json 文件中,会提前启动网络,由于在网络中固定写好了上线精确时间,所以可以保证在上线精确时间产生第一个 kernel snapshot。为保证节点网络一开始的安全和稳定,会推荐所有节点之间配置私有的通信防火墙。

什么时候开放其他节点加入

@myrual
myrual / 记录被抽的记录
Created November 26, 2010 14:57
亡羊补牢,温故知新
记录一下,是不是真的黄金大牛市没完。
http://video.caixin.cn/2011-09-30/100310959.html601377
2011 Nov 22
几天来,一直滚啊滚。
外盘很差,但是今天似乎有放缓的迹象。
基本印象:都缩量。保险收红第二天,然后是其他的。1857今天震荡。
从10.25日到现在,
计算机 9.0 电力设备 8.0 教育传媒 8.0 云计算 8.0 创业板 8.0
从11.4号到现在
@myrual
myrual / update_bitnami_lets_encrypt_crt.sh
Created February 24, 2022 08:52
Bitnami based let's encrypt update
sudo /opt/bitnami/ctlscript.sh stop
sudo /opt/bitnami/letsencrypt/lego --tls --email="NAME@name.com" --domains="www.domain.com" --path="/opt/bitnami/letsencrypt" renew --days 90
sudo /opt/bitnami/ctlscript.sh start
@myrual
myrual / gist:1533941
Created December 29, 2011 12:52
joel spolsky 谈 创业公司 股份 如何分配
创业网友提问:
我有一个新的社会网络应用的构想。我并不期望这个应用可以获得巨大成功,但我想还是有些潜力的。我找过一些好友和同事交流过这个想法,他们都十分喜欢这个构想。还有些朋友甚至提出想作为合作伙伴加入一起进行开发,把想法变为一个可用的软件。
我无法用自己的钱给他们支付工资(他们也不期望那样),而且大家都打算把这项工作作为我们平时晚上或周末的业余项目。因为我认为这个想法有潜力可以变为成功的企业,我想从目前这个阶段开始,就解决企业所有权/薪酬的问题,免得将来因为没界定清楚导致真正的问题。我倾向于把公司所有权在我们三个创始人当中平分,而且基于这个分配规则来确定将来盈利后如何分配。这个选择对吗?如果对,怎么才算公平的股权分配?这是我自己提出的想法而且已花了不少时间做规划(而且我很确定我将自己负担所有开发过程中发生的费用),所以我感觉我应该理所当然持有更大的股权。这个要求是否合理?
我还同时企图想办法按付出的努力来激励我的合伙人。我不担心有人加入后什么都不干,但我的确认为我们当中有一个或多个人也许将十分努力付出,比其他人付出更多。如果情况是这样,我想这类合伙人应该获得更多的股份。在规划股权架构方面,您有何建议?
Joel Spolsky回答:
@myrual
myrual / check_af_alg.c
Created October 10, 2019 04:47
code to check linux kernel support af_alg
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/if_alg.h>
#include <errno.h>
int main(){
//Alternatively you can set the path to argv[1]
int sockfd = socket(AF_ALG, SOCK_SEQPACKET, 0);
https://press.one/p/v?s=e822a488a3769024448884762f953f6a3a8d005abce01ef3ff00d4626c4709c462e9b104a3fea195feb82ab91bcc3860dc75c8e6f66b2fde299e7a3bf80be1cb00&h=a39569d994303dde2221ab6d8b31769be38778b11e69d191fa6dbf8d2d407bfc&a=c62f9f9fac804f85ad9613180a2018c1d7e95798&f=P1&v=3

开发者接入Mixin Network说明

步骤

1. 开发者自己创建一个mixin 账户

https://mixin.one

2. 开发者使用注册的mixin账户创建App并进行配置

@myrual
myrual / setup_spb_mixin.md
Last active May 27, 2019 02:11
process to setup sub in mixin

ubuntu without root

Update ubuntu

$ sudo apt -y update
$ sudo apt-get -y upgrade

install PG

$ sudo apt -y install postgresql postgresql-contrib
$ /usr/lib/postgresql/10/bin/postgres -V
@myrual
myrual / Mixin_main_net_full_node_introduction.md
Last active May 19, 2019 23:49
Mixin Network Full Node and main net introduction

When Mixin main net will be online

2019-02-28 00:00:00 UTC

Who is behind the first nodes group?

Mixin development team will select professional team to build the first 7 nodes.

In fact 15 genisis node.

How the main net start up

Information of the first batch nodes will be written into genesis.json of Mixin Network. The network will start work before 2019-02-28 00:00:00, and first snapshot will be generated on 2019-02-28 00:00:00. The first 15 nodes connect to each other, communication is proteced by whitelist IP and port.