Skip to content

Instantly share code, notes, and snippets.

View BruceZhang1993's full-sized avatar
🐰
Eating a wolf

Bruce Zhang BruceZhang1993

🐰
Eating a wolf
View GitHub Profile
@BruceZhang1993
BruceZhang1993 / dingtalk_webhook.py
Created November 30, 2019 06:45
钉钉 WebHook 机器人的 Python 实现
#!/usr/bin/env python3
#*-- coding: utf-8 --*
import json
import argparse
import time
import hmac
import hashlib
import base64
from urllib import parse, request
@BruceZhang1993
BruceZhang1993 / proxy-helper.sh
Created April 10, 2020 08:52
Helper script for Android to automate packet capture procedure (BurpSuite, Charles, etc)
#!/usr/bin/env bash
# Network presets
declare -A address=""
declare -A proxy=""
adb_connect() {
adb start-server
connected_devices=$(($(adb devices | wc -l)-2))
if [ $connected_devices = "0" ];
{
"inbounds": [
{
"tag": "transparent",
"port": 1080,
"protocol": "dokodemo-door",
"settings": {
"network": "tcp,udp",
"followRedirect": true
},
@BruceZhang1993
BruceZhang1993 / BillboardChina50.fuo
Last active November 4, 2020 06:39
Collections syncing from FeelUOwn player
fuo://netease/songs/1379458324 # 云野 - 好妹妹 - 云野 - 03:52
fuo://qqmusic/songs/235195319 # 巅峰之上 - 毛不易 - 全职高手OST - 04:06
fuo://qqmusic/songs/234167436 # 蝴蝶知道她爱谁 - 张杰 - 蝴蝶知道她爱谁 - 04:38
fuo://netease/songs/1376142151 # 无名之辈 - 陈雪燃 - 亲爱的,热爱的 影视原声带 - 04:22
fuo://netease/songs/1382796921 # 我是你的猫 - 江映蓉 - 10 - 03:43
fuo://qqmusic/songs/235045081 # 时光慢旅 - 刘惜君 - 时光慢旅 - 04:02
fuo://netease/songs/1376091684 # 相信你的人 - 陈奕迅 - 相信你的人 - 04:34
fuo://netease/songs/1374061036 # 这么久没见 - 薛之谦 - 尘 - 04:55
fuo://netease/songs/1369998604 # 我们很好 - 林俊杰 - 我们很好 - 04:28
fuo://qqmusic/songs/234868445 # 如果当时 - 胡夏 - 如果当时 - 03:59
#!/usr/bin/env python3
#*-- coding:utf8 --
import aiohttp
import asyncio
import json
json_str = ''
async def main():
session = aiohttp.ClientSession()
{
"version": "0.9.32",
"description": "UNOFFICIAL client for music.163.com . Powered by Electron, Vue, and Muse-UI.",
"url": [
"https://github.com/Rocket1184/electron-netease-cloud-music/releases/download/v0.9.32/electron-netease-cloud-music_v0.9.32.asar#/app.asar",
"https://npm.taobao.org/mirrors/electron/15.3.0/electron-v15.3.0-win32-x64.zip",
"https://raw.githubusercontent.com/Rocket1184/electron-netease-cloud-music/master/assets/icons/icon.ico#/ElectronNCM.ico"
],
"extract_to": [
"",
@BruceZhang1993
BruceZhang1993 / windows.py
Created January 21, 2022 15:28
a demo for windows now playing (winrt)
import time
from winrt.windows.foundation import Uri, TimeSpan
from winrt.windows.media import SystemMediaTransportControls, MediaPlaybackStatus, \
SystemMediaTransportControlsDisplayUpdater, MediaPlaybackType, SystemMediaTransportControlsTimelineProperties
from winrt.windows.media.playback import MediaPlayer
from winrt.windows.storage.streams import RandomAccessStreamReference
if __name__ == '__main__':
player = MediaPlayer()
@BruceZhang1993
BruceZhang1993 / fastocr.khotkeys
Created January 28, 2022 01:55
FastOCR keybindings
[Data]
DataCount=1
[Data_1]
Comment=should never see
DataCount=5
Enabled=false
Name=should never see
SystemGroup=2
Type=ACTION_DATA_GROUP
@BruceZhang1993
BruceZhang1993 / LIST.md
Created November 10, 2023 11:38
FeelUOwn API
  • API
    • status
      • album cover image
    • Player control
      • next/prev
      • seek
      • volume(+/-/mute)
      • shuffle/repeat mode
    • Metadata
  • song info/full lyrics