Skip to content

Instantly share code, notes, and snippets.

View jerrychan807's full-sized avatar
🎧
Focusing

FoolishEddy jerrychan807

🎧
Focusing
View GitHub Profile
# 检查launch_binary_linux文件是否存在,如果存在则删除
# 检查ionet_device_cache.txt文件是否存在,如果存在则删除
# 下载ionet执行文件
curl -L https://github.com/ionet-official/io_launch_binaries/raw/main/launch_binary_linux -o launch_binary_linux
chmod +x launch_binary_linux
echo 'ionet执行文件下载成功'
# 删除所有运行中的容器
docker ps -aq | xargs -r docker stop
# 下载源码
https://github.com/ethereum/go-ethereum/releases
# 解压源码:
tar -xzf go-ethereum-1.9.7.tar.gz 
# 编译:
cd go-ethereum-1.9.7

虚拟机断电后centos7无法正常启动:

报错消息:

20220908162422 需要先umount,再执行xfs_repair命令

umount /dev/dm-0

Remix_Ide_Load_From_localFolder:

# 全局安装
npm install -g @remix-project/remixd
# 启动
remixd -s 具体文件项目路径 --remix-ide https://remix.ethereum.org/

Example:

@jerrychan807
jerrychan807 / KILLAz.sol
Created June 22, 2022 10:06
KILLAz.sol
/**
*Submitted for verification at Etherscan.io on 2021-08-18
*/
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct