Skip to content

Instantly share code, notes, and snippets.

View arnesacnussem's full-sized avatar

Arne arnesacnussem

  • Somewhere on Earth
View GitHub Profile
@arnesacnussem
arnesacnussem / # UGREEN dx4600 pro led driver install script for TrueNAS Scale.md
Last active November 28, 2024 18:40
UGREEN dx4600 pro led driver install script for TrueNAS Scale

UGREEN led driver installer for TrueNAS Scale

  1. find url to raw file from pre-built binary branch
  2. run following command and replace the <replace some url here> with the url you find
URL_TO_KO_FILE=<replace some url here>
curl -sSLo- "https://gist.github.com/arnesacnussem/fb76560a988bb405b52277df953a6320/raw/install.sh" | bash - "$URL_TO_KO_FILE" enp3s0
@arnesacnussem
arnesacnussem / MangaBatchRemoveAD.py
Created July 4, 2023 15:02
A simple python that use cv2 to detect and crop AD in cbz file
#!python 3.10
import argparse
from scipy.spatial import distance_matrix
from matplotlib import pyplot as plt
import cv2
import numpy as np
import zipfile
import os
from tqdm import tqdm
from PIL import Image
@arnesacnussem
arnesacnussem / ProgressBar.js
Created January 24, 2020 20:13
A json compare tool
var slog = require('single-line-log').stdout;
function ProgressBar(description) {
this.render = function (diffs, count, path) {
slog(`${diffs} | ${count} | ${path}`);
};
}
module.exports = ProgressBar;
@arnesacnussem
arnesacnussem / main.py
Last active April 7, 2020 02:30
网易云下载脚本,需要网易云api(https://github.com/Binaryify/NeteaseCloudMusicApi) -p命令可以下载歌单 --artist 可以下载指定艺术家的全部专辑
import io
import json
import os
import requests
import sys
import time
import datetime
import traceback
from PIL import Image
from mutagen.easyid3 import EasyID3
'******************************************************************************
Option Explicit
Dim rowsNum
rowsNum = 0
'-----------------------------------------------------------------------------
' Main function
'-----------------------------------------------------------------------------
' Get the current active model
Dim Model
Set Model = ActiveModel
@arnesacnussem
arnesacnussem / 2021-11-2 - schinese.txt
Last active November 12, 2021 06:50
ImDisk Toolkit Simplified Chinese Translate (简体中文翻译)
[Setup]
ImDisk - 安装
欢迎使用 ImDisk Toolkit 安装程序.
即将安装 ImDisk Toolkit (build %S).
安装目录:
组件
ImDisk 虚拟驱动器驱动程序 (必要)
DiscUtils 库 (使用 .NET Framework 4)
RamDisk 配置工具
选项
import javafx.application.Application;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;