Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View kslr's full-sized avatar
🤒
I may be slow to respond.

Kslr kslr

🤒
I may be slow to respond.
  • Super Nebule LLC
  • 192.168.2.1
View GitHub Profile
@kslr
kslr / api.md
Last active September 13, 2021 17:06
GET /ping

GET /inbounds/{tag}/stats
GET /outbounds/{tag}/stats

GET /version
@kslr
kslr / test.py
Last active March 31, 2021 11:49
libtorrent test
import libtorrent as lt
import requests
from bs4 import BeautifulSoup
import time
alert_mask = (
lt.alert.category_t.error_notification
| lt.alert.category_t.port_mapping_notification
| lt.alert.category_t.status_notification
| lt.alert.category_t.stats_notification
const child = require('child_process');
const latestTag = child.execSync('git describe --tags --long').toString('utf-8').split('-')[0];
const logs = child.execSync(`git log ${latestTag}..HEAD --oneline --decorate`).toString("utf-8");
logs.split("\n")
.map(commit => {
let sha = commit.substring(0, 8)
let message = commit.substring(8).trim()
console.info(`* ${message} ([${sha}](https://github.com/v2fly/v2ray-core/commit/${sha}))`)
9445147f-1f59-adbb-7784-0dda69bef33f