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 / Ubuntu安装指南.md
Last active January 11, 2021 05:42
Ubuntu安装指南

Ubuntu安装指导

启动黑屏只有光标

如果有双硬盘(SSD + Disk),需要注意硬盘的插线顺序

因为ubuntu默认会将boot分区安装在sda上,两个硬盘的数据线的插入决定了那个为sda,那个为sdb(sdc/sdd) 一般都是将系统安装在 SSD,所以需要注意将SSD插线设置为 sda 如果系统安装在SSD,而boot安装在Disk,会导致系统黑屏,只有一个光标,说明是找不到boot分区

先安装基础的包

Http组成部分

请求报文格式:

	<method> <request-URL> <version>
    <headers>
    
    <entity-body>
@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
@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 / python安装须知.md
Last active August 14, 2020 10:22
python安装须知

python安装须知

install pyenv

git clone https://github.com/pyenv/pyenv.git ~/.pyenv

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc

echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.bashrc
source ~/.bashrc