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 / openpgp.txt
Created April 19, 2019 16:17
OpenKeychain 关联用户标识
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:504357523094066c67e56cf58d99aa5cad3908b0]
@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
},
#!/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