Skip to content

Instantly share code, notes, and snippets.

View Sg4Dylan's full-sized avatar
🐱

SgDylan Sg4Dylan

🐱
View GitHub Profile
@Sg4Dylan
Sg4Dylan / qbittorrent_rss_cleaner.py
Created May 30, 2023 07:24
Remove outdated RSS records for qBittorrent
import os
import json
import re
from datetime import datetime, timedelta
rss_json = ''
for i in os.listdir('.'):
if i.endswith('.json'):
rss_json = i
@Sg4Dylan
Sg4Dylan / build_win64.yml
Created January 28, 2022 10:53
GitHub action workflow for building OBS plugin obs-libfdk on win64 platform
name: 'CI Build'
on:
push:
paths-ignore:
- '**.md'
branches:
- master
- 'release/**'
tags:
@Sg4Dylan
Sg4Dylan / silk-v3-decoder-compile-on-raspberry-pi.md
Last active August 15, 2021 16:32
silk-v3-decoder 树莓派编译手记

不要汇编优化

修改 Makefile

CC     = $(TOOLCHAIN_PREFIX)gcc$(TOOLCHAIN_SUFFIX) -DNO_ASM
CXX    = $(TOOLCHAIN_PREFIX)g++$(TOOLCHAIN_SUFFIX) -DNO_ASM

要汇编优化

特别适用于 ArchLinux ARM 选手,其他发行版需稍作修改

@Sg4Dylan
Sg4Dylan / zansei.py
Last active June 18, 2021 15:53
「残声」概念验证
#!/usr/bin/env python
#coding:utf-8
# Author: Sg4Dylan --<sg4dylan#gmail.com>
# Created: 06/18/2021
import numpy as np
from scipy import signal
from scipy.io.wavfile import write
import librosa
import resampy
@Sg4Dylan
Sg4Dylan / README.md
Last active January 27, 2022 13:53
Sync Voicemeeter's gain control to Windows volume control

Install

pip install psutil pycaw future toml
git clone https://github.com/Freemanium/voicemeeter-remote-python
cd voicemeeter-remote-python
pip install .

Modify line 16 of voicemeeter/remote.py

@Sg4Dylan
Sg4Dylan / continual_learning_metric_calc.py
Created November 10, 2020 10:40
OpenLORIS 指标计算
import csv
'''
suit for lifelong-robotic-vision/OpenLORIS-Object 's csv format result
every line of csv contains accuracy of every task on test set after training a single task
'''
raw_result = []
with open('openloris.csv', newline='') as csvfile:
spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')
@Sg4Dylan
Sg4Dylan / GoHFS-Exporter.user.js
Created October 18, 2020 04:08
配合 codeskyblue/gohttpserver 使用,aria2 直接下载目录并保持结构
// ==UserScript==
// @name GoHFS-Exporter
// @namespace http://tampermonkey.net/
// @version 2020.10.18(0.1)
// @description Export link from Go HFS to aria2
// @author SgDylan
// @match https://example.com/*
// ==/UserScript==
let downloadFileUrl = [];
@Sg4Dylan
Sg4Dylan / font_deobfs.ipynb
Created September 28, 2020 02:44
对抗字体反爬的深度学习实践
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sg4Dylan
Sg4Dylan / dain_ncnn_vulkan_instance.ipynb
Last active September 8, 2020 04:20
dain-ncnn-vulkan@colaboratory
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sg4Dylan
Sg4Dylan / qb-ban-vampire.py
Last active January 26, 2024 02:30
qBittorrent block vampire peers. qBittorrent 屏蔽吸血客户端.
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: Sg4Dylan -- <sg4dylan#gmail.com>
# Licence: GPLv3
import requests
import re
import json
import time