Skip to content

Instantly share code, notes, and snippets.

View itherunder's full-sized avatar
🏠
Working from home

itherunder

🏠
Working from home
View GitHub Profile
@itherunder
itherunder / config.yaml
Last active September 9, 2022 15:32
A spider for 51job
ip_proxy_api: xxxxxx
thread_maxsize: 8
max_retry: 10
use_selenium: true
@itherunder
itherunder / simple-deploy.md
Created June 28, 2022 15:14 — forked from vre2h/simple-deploy.md
Simple guide for deploying your react app to Github-Pages.
  1. Your package.json file should consist a field homepage:
  "homepage": "https://<github-username>.github.io/<project-repo>"

2.1. Install gh-pages via npm:

 npm i --save-dev gh-pages
@itherunder
itherunder / 0x01 dApp.md
Last active May 13, 2022 16:08
一种轻后端的 dApp 架构| Awesome FaaS 0x01

0x01 dApp

Tai-Shang-Meeting前端程序的实现

  1. forkscaffold-eth项目,用于钱包的连接、签名、交易发送
  2. 使用react作为前端开发框架,antd作为组件库
  3. 实现细节:包括两个页面,即两个组件的实现

a. 获取会议信息页面

image

@itherunder
itherunder / readme.md
Last active April 24, 2022 05:28
组合型 NFT的生成 1.0

不同特征互相组合生成NFT

该教程可帮助你使用不同特征的图层组合得到不同的图片NFT

0x00 依赖

  • Python
  • Git(用于克隆仓库)
  • Pip(Python的包管理程序)

0x01 准备工作

  1. 将仓库https://github.com/Solseum/solseum-nft-generator克隆至本地,然后安装Python库
@itherunder
itherunder / opcode_value.py
Last active April 21, 2022 02:20
TSE的部分脚本代码
OPCODES = [
# Stop and Arithmetic
'stop', 'add', 'mul', 'sub', 'div', 'sdiv', 'mod', 'smod', 'addmod', 'mulmod', 'exp', 'signextend',
# Comparison and Bitwise Logic
'lt', 'gt', 'slt', 'sgt', 'eq', 'iszero', 'and', 'or', 'xor', 'not', 'byte', 'shl', 'shr', 'sar',
# Sha3
'sha3',
# Environment Information
'address', 'balance', 'origin', 'caller', 'callvalue', 'calldataload', 'calldatasize', 'calldatacopy', 'codesize', 'codecopy', 'gasprice', 'extcodesize', 'extcodecopy', 'returndatasize', 'returndatacopy', 'extcodehash',
# These opcodes seem to belong in the environment 'block', but we are out of opcode space in 0x3*
@itherunder
itherunder / TheDao_plugin.go
Last active April 21, 2022 02:14
NDSS检测重入攻击的插件代码
package main
import (
"../../pluginlog"
"fmt"
"github.com/ethereum/collector"
"github.com/json-iterator/go"
"math/big"
"strings"
// 调试用到的库
@itherunder
itherunder / readme.md
Last active April 13, 2022 09:12
修改png并应用到obj与voxel
  • 经查明,发现大狗老师应该是导出时出问题了,所以没有得到这个mtl文件,但这个mtl文件也很简单,直接添加一个即可
newmtl palette
illum 1
Ka 0.000 0.000 0.000
Kd 1.000 1.000 1.000
Ks 0.000 0.000 0.000
map_Kd monu1.vox.png # 可以换成其他图片。
@itherunder
itherunder / readme.md
Last active April 12, 2022 04:22
change .obj color by program!

readme

  1. 将脚本文件放到obj,png同目录下即可,python3 script.py,命令行中的输出为obj中平面的数量,与1.中的decimal设置有关

结果图(lenOfRGBs == 50):

image image

  1. 可调参数,懒得写在命令行了,直接在py文件改

a. decimal(Line 32),越小,平面数量越少

@itherunder
itherunder / getContracts.py
Last active April 12, 2022 07:29
获取以太坊上开源的代码
import time, requests, json, os
from threading import Thread, Lock
__author__ = "Zhou.Liao"
if not os.path.exists('./gettedAddress'):
fp = open('./gettedAddress', 'w')
fp.close()
if not os.path.exists('bytecodes/'):
os.system('mkdir bytecodes/')
@itherunder
itherunder / config.json
Last active March 6, 2022 08:35
get all holders of a token `fromBlock` to `toBlock`, see more details in readme.md
{
"provider": "https://mainnet.infura.io/v3/your_token",
"tokenAddress": "0x7A58c0Be72BE218B41C608b7Fe7C5bB630736C71",
"fromBlock": "0",
"toBlock": "latest",
"abi": []
}