Skip to content

Instantly share code, notes, and snippets.

View firefirer1983's full-sized avatar

fyman.zhang firefirer1983

  • China Guangdong Shenzhen
View GitHub Profile
@firefirer1983
firefirer1983 / lepton设置.md
Last active April 8, 2020 06:42
lepton设置

lepton设置

代理设置

由于某些原因Github gist在国内访问非常慢或者无法打开,可以在~/.leptonrc配置代理访问,内容如下:

{
	"proxy": {
        "enable": true,
        "address": "socks://127.0.0.1:17720"
	}
@firefirer1983
firefirer1983 / eth私链搭建with docker.md
Last active April 8, 2020 09:03
eth私链搭建with docker

eth私链搭建with docker

获取geth image

docker pull ethereum/client-go:v1.8.12

运行geth

docker run -it --rm -v /home/xy/misc/workspace:/workspace --entrypoint /bin/sh ethereum/client-go:v1.8.12

Http组成部分

请求报文格式:

	<method> <request-URL> <version>
    <headers>
    
    <entity-body>

设置emacs镜像

(setq package-archives '(("gnu"   . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
                         ("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")))

(setq package-archives '(("gnu"   . "http://elpa.emacs-china.org/gnu/")
                         ("melpa" . "http://elpa.emacs-china.org/melpa/")))
@firefirer1983
firefirer1983 / emacs.md
Last active April 13, 2020 06:29
emacs

Emacs

命令前缀分类

ctrl-c : 本编辑模式下的快捷键 ctrl-x : 与模式无关,与文本,buff相关的快捷键 ctrl-h : 查看帮助 alt-x : 执行命令

buffer相关的操作

ctrl-x ctrl-b: 查看所有buffer ctrl-x ctrl-s: 将当前缓冲区bao

@firefirer1983
firefirer1983 / Beancount读记.md
Last active April 13, 2020 09:09
Beancount读记

单词解析

  • account(账号)

一种可以容纳其他东西的容器,如袋子

  • balance(盈余)

account所收纳对象的数量

  • debit(借)

removed(withdraw) from your account

产品设计的强大与易用的关系

强大和易用是两个无法兼容的维度. 要强大,必然难用,要易用必然不会强大.

做产品的步骤

  1. OOA的方式,先从需求的文字性描述中分析出领域模型.
  2. 从领域模型中继续派生其他的场景和功能.
@firefirer1983
firefirer1983 / 财务自由之路.md
Created April 21, 2020 02:17
财务自由之路

要达到财务自由,需要三点要求

  1. 对支出的预期
  2. 对资产和收入的了解
  3. 对寿命的期望

1,2点都可以通过复式记账方式实现.

@firefirer1983
firefirer1983 / linux 查看端口占用.md
Last active April 28, 2020 09:40
linux 查看端口占用

linux 下查看进程占用端口:

  1. 查看程序对应的进程号: ps -ef | grep 进程名字

  2. 查看进程号所占用的端口号

  • linux:
netstat -nltp | grep  进程号
  • ubuntu: