Skip to content

Instantly share code, notes, and snippets.

View discountry's full-sized avatar
📕
Learning

Disney discountry

📕
Learning
View GitHub Profile
//@version=6
indicator("BTC-ZEC RSI Div", overlay=true)
// === Inputs ===
symA = input.symbol("BITSTAMP:BTCUSD", "Symbol A")
symB = input.symbol("BITFINEX:ZECUSD", "Symbol B")
res = input.timeframe("", "Resolution (empty = chart)")
rsiLen = input.int(14, "RSI Length", minval=2)
len = input.int(20, "Z-Score Length", minval=10)
smooth = input.int(5, "EMA Smoothing", minval=1)
// scan-polymarket-orderbook.ts
// 运行: npx tsx scan-polymarket-orderbook.ts
// 或: npx ts-node scan-polymarket-orderbook.ts (需安装 ts-node/typescript)
import * as readline from "node:readline";
type PMEvent = { slug?: string; title?: string };
type Market = {
id: string;
question: string;
#!/usr/bin/env bash
set -euo pipefail
# ============================================================
# Binance Klines Evidence Collector (Judicial-grade)
# - 支持 symbol / interval / startTime / endTime / timeZone / limit
# - 自动分页(limit<=1000)
# - 保存:响应头、TLS 证书、DNS、traceroute、(可选)tcpdump
# - 计算 SHA256(每页+合并)、生成 metadata.json、(可选)OpenTimestamps
# - 在证据目录原地初始化 git(快照),打包时排除 .git
bun add puppeteer-core
@discountry
discountry / binance-api-change-log-watch.ts
Last active October 10, 2025 08:08
Binance API Document Watch Dog
// watcher.js
// 每秒抓取 https://developers.binance.com/docs/derivatives/change-log
// 发现正文变化则把“新增/变更的行”发到 Telegram
import fs from 'fs';
import path from 'path';
import process from 'process';
import dotenv from 'dotenv';
import cheerio from 'cheerio';
@discountry
discountry / config.yaml
Created June 11, 2025 12:14
hysteria yaml
listen: :443
# tls:
# cert: /server.crt
# key: /server.key
acme:
domains:
- hysteria.example.com # 你的域名
email: [email protected] # 你的邮箱
@discountry
discountry / two-in-one.html
Created April 16, 2025 03:16
load two websites in one page
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>弹幕聚合</title>
<style>
* {
margin: 0;
padding: 0;
@discountry
discountry / Blowfish.txt
Created January 25, 2025 08:46
RitMEX Blowfish verification
ticket number 6211
My dapps domains:
https://ritmex.one
https://earn.ritmex.one
https://trade.ritmex.one
https://wallet.ritmex.one
Thanks!
@discountry
discountry / next.config.js
Created June 3, 2024 11:57
To support Wagmi SSR
// Path: next.config.js
const nextConfig = {
webpack: config => {
config.externals.push('pino-pretty', 'lokijs', 'encoding')
return config
}
}
backdrop-filter: blur(10px);