This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() { | |
cout << "hello world" << endl; | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
git config user.email "[email protected]" | |
git config user.name "itherunder" | |
git remote add origin https://github.com/itherunder/xxx | |
# git pull <远程服务器名(就是git remote -v的结果)> <远程分支名>:<本地分支名>) | |
git pull origin main:main | |
# 或者可以用fetch + merge 的方式代替pull | |
# git fetch <远程服务器名> <远程分支名> | |
git fetch origin main | |
# git merge <HEAD> <分支名> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, json | |
token_list_url = 'https://api.coingecko.com/api/v3/coins/list' | |
url = 'https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&ids=%s' | |
tokens = json.loads(open('tokens.txt', 'r', encoding='utf-8').read()) | |
symbol_to_id = {} | |
for token in tokens: | |
id, symbol = token['id'], token['symbol'].lower() | |
if symbol in symbol_to_id: | |
continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coins = document.getElementsByClassName('text-primary') | |
res = [] | |
for (let i = 0; i < 100; i++) { | |
var name = coins[i].text | |
var href = coins[i].href | |
console.log(name, href) | |
res.push([name, href]) | |
} | |
console.log(res) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from webdriver_manager.chrome import ChromeDriverManager | |
tokens = ['df574c24545e5ffecb9a659c229253d4111d87e1','c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'] | |
bsc_tokens = ['96dd399f9c3afda1f194182f71600f1b65946501','b59490ab09a0f526cc7305822ac65f2ab12f9723'] | |
url = 'https://etherscan.io/token/0x%s' | |
bsc_url = 'https://bscscan.com/token/0x%s' | |
driver = webdriver.Chrome(ChromeDriverManager().install()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//POST | |
function post(url, params) { | |
var xhr = new XMLHttpRequest(); | |
xhr.open("POST", url, true); | |
xhr.setRequestHeader("Content-Type", "application/json"); | |
xhr.onload = function (e) { | |
if (xhr.readyState === 4) { | |
if (xhr.status === 200) { | |
console.log(xhr.responseText); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function send_message(message) { | |
fetch("https://discord.com/api/v9/channels/$YOUR CHANNEL ID$/messages", { | |
"headers": { | |
"accept": "*/*", | |
"accept-language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,cy;q=0.6", | |
"authorization": "$YOUR OWN AUTHORIZATION TOKEN$", | |
"cache-control": "no-cache", | |
"content-type": "application/json", | |
"pragma": "no-cache", | |
"sec-ch-ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"96\", \"Microsoft Edge\";v=\"96\"", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Wallet = require('ethereumjs-wallet') | |
const fs = require('fs'); | |
// 生成 i 个钱包地址数量,改这里就可以了。 TeleGram:@btcok9 | |
for(var i = 0; i < 100; i++){ | |
const EthWallet = Wallet.default.generate(false); | |
const addressALL = EthWallet.getAddressString(); | |
const addr = addressALL + "\n"; | |
console.log("address: " + EthWallet.getAddressString()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"crypto/ecdsa" | |
crand "crypto/rand" | |
"fmt" | |
"io" | |
"log" | |
"net/smtp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui, time, random, sys, os | |
def send_email(msg): | |
msg = msg.replace(' ', '_') | |
os.system('send_mail.exe %s' % msg) | |
def into_followers(): | |
loc = pyautogui.locateCenterOnScreen("followers.png", confidence=0.9) | |
while loc is None: | |
print('[INFO] Cannot find followers.') |
OlderNewer