Skip to content

Instantly share code, notes, and snippets.

View zjuchenyuan's full-sized avatar

ChenYuan zjuchenyuan

View GitHub Profile
@zjuchenyuan
zjuchenyuan / GoodGhostingCelo.sol
Created October 17, 2021 18:26
Decompile 0x32Bd3ce981A575569d4bf1179f6B70D14Cf8E881
contract Contract {
function main() {
memory[0x40:0x60] = 0x80;
var var0 = msg.value;
if (var0) { revert(memory[0x00:0x00]); }
if (msg.data.length < 0x04) { revert(memory[0x00:0x00]); }
var0 = msg.data[0x00:0x20] >> 0xe0;
https://press.one/p/v?s=d97cff5484599281adebb04d3de2e182d3cd92cb6717a4b6eba43bff449747ec2918762c30687ee26d82efd3b4aca2921e36fe9e8517b4e7981c3ee62d6e8aeb0&h=81af2e6a2ac44849febb97f3c4c3ef187c092f23d1ff51c10ae1440d89663b79&a=ec9efd54d460849f729c3784195190d6a51d891b&f=P1&v=3
"""
say you have a private repo, which is not suitable for push to github
but you want github to show your activity for this repo
so, this script will help you sync commit message to `githubrepo`, using empty commits
used commands:
git log --all '--pretty=format:%ad|%s'
git commit -m "message" --date "Sun Jun 17 12:48:07 2018 +0800" --allow-empty
"""
@zjuchenyuan
zjuchenyuan / modify_torrent.py
Last active October 16, 2017 13:32
Modify Torrent file using Python2
# This is a Python2 file to modify torrent file
# take a look at main() which at the bottom
# bencode.py copy from: https://github.com/JosephSalisbury/python-bittorrent/blob/master/bencode.py
# it only supports Python2, hope someone help to translate to PY3
# bencode.py -- deals with bencoding
# Written by Joe Salisbury <[email protected]>
#
# You are free to use this code in anyway you see fit, on the basis
from you_get.extractors.bilibili import bilibili_download_by_cid
bilibili_download_by_cid("13562609","2017拜年祭_1鸡")
bilibili_download_by_cid("13789044","2017拜年祭_2吉")
bilibili_download_by_cid("13562612","2017拜年祭_3己")
bilibili_download_by_cid("13789047","2017拜年祭_4祭")
bilibili_download_by_cid("6041635","2016拜年祭_1马")
bilibili_download_by_cid("6041636","2016拜年祭_2上")
bilibili_download_by_cid("6041637","2016拜年祭_3封")
bilibili_download_by_cid("6041638","2016拜年祭_4侯")
4529527 1 吐槽就要从标题开始呀!说好的联合版聚呢!为什么到了版聚当天情感的版主们都不见了啊!
[del]所以真相是小屋想版聚但没有人气只好借情感人气完成一次版聚吗不要安慰我我早就从版聚确认贴里看出端倪了![/del]
[upload=jpg]http://file.cc98.org/uploadfile/2015/6/14/2162127404.jpg[/upload]
---------------------
[upload=jpg]http://file.cc98.org/uploadfile/2015/6/14/2165391294.jpg[/upload]大雁君第一次哭晕在小屋里(请脑补大娃扑街音效
-----------------------------------------------------------------