Skip to content

Instantly share code, notes, and snippets.

View Izumiko's full-sized avatar

OxO Izumiko

  • BUAA
  • China
  • 19:31 (UTC +08:00)
View GitHub Profile
@Izumiko
Izumiko / Dockerfile
Created August 10, 2023 12:16
Dockerfile for NasCab
FROM alpine:3.18 AS BUILD_IMAGE
# Change repository to aliyun
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# Install dependencies
RUN apk update && apk upgrade && \
apk add --no-cache nodejs npm python3 curl && \
apk add --no-cache --virtual build-dependencies gcc g++ make cmake gfortran libffi-dev openssl-dev libtool && \
apk add --no-cache vips-heif vips-tools vips-cpp vips-dev && \
@Izumiko
Izumiko / convert_chat_to_xml.py
Created December 1, 2022 12:30
下载Youtube直播聊天,并转换成ass弹幕
# Convert chat to xml ver1.0.2
# Convert youtube chat json to niconicko comment xml.
# Author: 忘却まとめ
# https://bookyakuno.com/convert_youtube_chat_json_to_nico_xml/
# YouTube のチャットファイル(.live_chat.json)をニコニコ動画のxml形式に変換する関数
# チャットファイルはyoutube-dlやyt-dlpなどでダウンロードしたものの形式で動きます。
# YouTube のチャットファイルプレイヤーが見つからなかったので、似た機能であるニコニコ動画プレイヤーでチャットを再生できるように変換する関数です。
# ニコニコ動画コメントプレイヤーには commeon などを利用してください。
# ■ 使い方
@Izumiko
Izumiko / fixblank.sh
Last active April 27, 2022 18:24
信息中心空白修复
sed -i 's/supportsystemperature="yes"/supportsystemperature="no"/g' /etc.defaults/synoinfo.conf
sed -i 's/supportsystempwarning="yes"/supportsystempwarning="no"/g' /etc.defaults/synoinfo.conf
DOMAIN-SUFFIX,logger.suibyuming.com
DOMAIN-SUFFIX,api.applovefrom.com
DOMAIN-SUFFIX,alogs.umeng.com
DOMAIN-SUFFIX,e.xroun.com
DOMAIN-SUFFIX,dflooring.com
DOMAIN-SUFFIX,mi.gdt.qq.com
DOMAIN-SUFFIX,sdk.e.qq.com
DOMAIN-SUFFIX,www.googleadservices.com
DOMAIN-SUFFIX,googleads.g.doubleclick.net
DOMAIN-SUFFIX,v.gdt.qq.com
@Izumiko
Izumiko / ad.conf
Created May 29, 2020 05:23
Quantumult Additional anti-AD rule
[SERVER]
[SOURCE]
DivineEngine, filter, https://raw.githubusercontent.com/ConnersHua/Profiles/master/Quantumult/Pro.conf, true
[BACKUP-SERVER]
[SUSPEND-SSID]
[POLICY]
@Izumiko
Izumiko / aes.go
Created July 22, 2019 14:48 — forked from renesugar/aes.go
simple AES encryption/decryption example with PBKDF2 key derivation in Go, Javascript, and Python
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"fmt"
"strings"
@Izumiko
Izumiko / resumedat_2015.rb
Last active June 2, 2022 17:28 — forked from naodesu/resumedat_2015.rb
Convert added torrents data from uTorrent (resume.dat) to qBittorrent (*.fastresume) format
# encoding: utf-8
# USE AT OWN RISK
#
# Follow this guide to install Ruby on Windows (step 1 and 2): https://forwardhq.com/support/installing-ruby-windows
# Install gems (with admin cmd prompt):
# https://rubygems.org/gems/bencode
#
# Edit datpath below to point to your utorrent resume.dat file
#