Skip to content

Instantly share code, notes, and snippets.

View hahaschool's full-sized avatar
🌸

Adam Zhang hahaschool

🌸
View GitHub Profile
@hahaschool
hahaschool / extract_telegram_macos.ipynb
Created May 27, 2023 13:57 — forked from stek29/extract_telegram_macos.ipynb
Extract Telegram messages from db_sqlite PostBox – made for Telegram for macOS, but should work with Telegram for iOS
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hahaschool
hahaschool / NLK_luckydraw
Created January 9, 2022 14:10
NLK Lucky Draw
# Chainlink VRF Tx: https://rinkeby.etherscan.io/tx/0xbf1065a4144cf308da2cd1a2a6932f0bb35fdbb21f0c5bbf2e6be8a470efc52f#eventlog
# Obtained seed: 31680648337369973663790357806057778068154657050861895752771680335673243579584
import random
N = 526
K = 30
candidate_list = [i for i in range(1,N+1,1)]
random.seed(31680648337369973663790357806057778068154657050861895752771680335673243579584)
print(candidate_list)
@hahaschool
hahaschool / addr.txt
Created January 9, 2022 14:02
NLK Lucky Draw Address Snapshot
0x54d7f23004bbf59556c95c53fb552243e7b4d821
0x0B122a3eD5FBdc6666E278C9e7b1bbFc2Df306C3
0x385dfb6AA4938Dd8945bdB2D8E7877f3b73a05F0
0x48e5aee2e42e9beb284cb36d009195d76f4fd9cf
0x53ff12f6fFCe6e0D3FB14989EA9C1E4560bd6438
0xAa36fa2c2E938b1197488eE3aC4F9c9F46b19862
0x2C86cdeA711EA8c650c3939B4e7690EbB12D5fD2
0x28787dd2880a10564A90dA0d97E7Dd114151eC92
0x7a6b029020b85870d1469eB3bF0F36e262D731F7
0x67149c6a2aa490636948b084d88DDE8A958CA269
@hahaschool
hahaschool / draw.py
Created January 9, 2022 14:02
NLK Lucky Draw
# Chainlink VRF Tx: https://rinkeby.etherscan.io/tx/0xbf1065a4144cf308da2cd1a2a6932f0bb35fdbb21f0c5bbf2e6be8a470efc52f#eventlog
# Obtained seed: 31680648337369973663790357806057778068154657050861895752771680335673243579584
import random
N = 526
K = 30
candidate_list = [i for i in range(1,N+1,1)]
random.seed(31680648337369973663790357806057778068154657050861895752771680335673243579584)
print(candidate_list)
@hahaschool
hahaschool / SimplePuffMonitor.py
Created November 22, 2021 18:23
SimplePuffMonitor
import web3
import time
import requests
import urllib.request, json
import os
def telegram_bot_sendtext(bot_message):
bot_token = '' # insert your tg bot key
bot_chatID = '' # https://medium.com/@ManHay_Hong/how-to-create-a-telegram-bot-and-send-messages-with-python-4cf314d9fa3e