Skip to content

Instantly share code, notes, and snippets.

Avatar
🐰
Eating a wolf

Bruce Zhang BruceZhang1993

🐰
Eating a wolf
View GitHub Profile
View fastocr.khotkeys
[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 / windows.py
Created Jan 21, 2022
a demo for windows now playing (winrt)
View windows.py
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()
View electron-netease-cloud-music.json
{
"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": [
"",
View export.py
#!/usr/bin/env python3
#*-- coding:utf8 --
import aiohttp
import asyncio
import json
json_str = ''
async def main():
session = aiohttp.ClientSession()
View config.json
{
"inbounds": [
{
"tag": "transparent",
"port": 1080,
"protocol": "dokodemo-door",
"settings": {
"network": "tcp,udp",
"followRedirect": true
},
@BruceZhang1993
BruceZhang1993 / proxy-helper.sh
Created Apr 10, 2020
Helper script for Android to automate packet capture procedure (BurpSuite, Charles, etc)
View proxy-helper.sh
#!/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" ];
@BruceZhang1993
BruceZhang1993 / dingtalk_webhook.py
Created Nov 30, 2019
钉钉 WebHook 机器人的 Python 实现
View dingtalk_webhook.py
#!/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 / openpgp.txt
Created Apr 19, 2019
OpenKeychain 关联用户标识
View openpgp.txt
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 / __init__.py
Last active Jan 2, 2019
FeelUOwn collection sync -- demo version
View __init__.py
# *-- coding: utf-8 --*
import logging
from .backup import Backup
__alias__ = 'FeelUOwn Collection Backup'
__version__ = '0.0.1'
__feeluown_version__ = '2.3.0'
__desc__ = 'Backup FeelUOwn collections with GitHub gist.'
@BruceZhang1993
BruceZhang1993 / BillboardChina50.fuo
Last active Nov 4, 2020
Collections syncing from FeelUOwn player
View BillboardChina50.fuo
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