Skip to content

Instantly share code, notes, and snippets.

View Sg4Dylan's full-sized avatar
🐱

SgDylan Sg4Dylan

🐱
View GitHub Profile
@Sg4Dylan
Sg4Dylan / Dockerfile.trt10.4
Created September 20, 2024 06:45
libvivtc.so for styler00dollar/VSGAN-tensorrt-docker
FROM ubuntu:24.04 as vivtc-vs-trt10.4
ARG DEBIAN_FRONTEND=noninteractive
WORKDIR workspace
RUN apt update -y
RUN apt install autoconf libtool nasm ninja-build yasm python3.12 python3.12-venv python3.12-dev python3-pip wget git pkg-config python-is-python3 -y
RUN apt --fix-broken install
RUN pip install meson ninja cython --break-system-packages
@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
对抗字体反爬的深度学习实践
Loading
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.