Skip to content

Instantly share code, notes, and snippets.

@ak1ra-komj
ak1ra-komj / foobar2000-dsd-sacd.md
Created January 10, 2026 11:36 — forked from milnak/foobar2000-dsd-sacd.md
Foobar 2000 DSD and SACD support: Guide to setting up Foobar2000 player for hi-res audio (DSF, DFF, SACD, ISO) #windows

Foobar2000 DSD and SACD support

I've successfully followed these steps to get DSD (.dsf filetype) and SACD (.iso filetype) playing at high bit rate using foobar2000 on my S.M.S.L M500 DAC.

This has been adapted from "SECTION II" of this page, thanks to "sirblew" for the tip!

Introduction

DSD stands for Direct Stream Digital and it is a high-definition lossless audio format with a twist. PCM signal solutions (like FLAC, TTA or APE) measure a set of bits multiple times per second to capture the audio data, hence the 16/24-bit parameter. On the other hand, DSD uses only one bit but samples it 2.8 million times a second to capture the audio signal.

#!/bin/bash
set -e
# 可配置参数 ========================================
filesize=100 # 文件大小(MiB)
modify_bytes=8 # 每次修改的字节数
commit_times=10 # 提交次数
repo_without_lfs_dir="repo_without_lfs"
repo_with_lfs_dir="repo_with_lfs"
$InterfaceIndex = 29
# Set-NetIPAddress 不能设置 -DefaultGateway
# 而 New-NetIPAddress 必须设置 -IPAddress, 已设置静态 IP 的情况下重复 添加 会报错
$CurrentDefaultGateway = (Get-NetRoute -DestinationPrefix "0.0.0.0/0" -InterfaceIndex $InterfaceIndex).NextHop
Remove-NetIPAddress -DefaultGateway $CurrentDefaultGateway -InterfaceIndex $InterfaceIndex -Confirm:$False
# Set ss-tproxy as DefaultGateway
New-NetIPAddress -IPAddress 10.0.0.20 -PrefixLength 24 -DefaultGateway 10.0.0.5 -InterfaceIndex $InterfaceIndex -Confirm:$False
@ak1ra-komj
ak1ra-komj / deepl.rs
Created February 19, 2023 12:56 — forked from andelf/deepl.rs
DeepL Rust command line
// https://zu1k.com/posts/thinking/deception-tactics-in-deepl-api-design/
# coding: utf-8
# A helper script to convert vol.moe's mobi files to 7zip archives.
# python3 -m pip install mobi py7zr
import argparse
import logging
import os
import shutil
import sys
import time
# coding: utf-8
import re
import json
import logging
from telethon import TelegramClient, events
def init_logger(name, level=logging.INFO):
format = '[%(levelname) 5s/%(asctime)s] %(name)s: %(message)s'
# Author: ak1ra
# Date: 2022-01-23
# 自动添加访问特定域名时使用 OpenVPN 网关作为下一条的路由
# 配置命令行选项
Param(
[string]$Action = "add",
[string]$Domain = "cloud.tencent.com",
[Parameter(Mandatory=$false)][Int32]$InterfaceIndex,
[string]$InterfaceDescription = "TAP-Windows Adapter V9",
@ak1ra-komj
ak1ra-komj / dds2webp.sh
Created October 29, 2021 15:35
GNU Parallel 实战: Using GNU Parallel + ImageMagick to convert .dds image
#! /bin/bash
# author: ak1ra
# date: 2021-10-29
# using GNU Parallel + ImageMagick to convert .dds image
function magick_convert() {
# ddsImage/ddsImage000000/CHU_UI_Character_0000_00_00.dds
src="$1"
format="$2"
resize="$3"

adobe-fonts (Update 2024-06-06)

现代的操作系统直接下载 VF OTC 即可, 这样体积最小, 也不用下载很多文件, 现代操作系统已经做了很完整的支持.

[!quote] Select this deployment format if you want all five languages and all weights, along with the half-width (HW) variations, and your system supports both variable fonts and OTCs.

下面是一些缩写的解释,

  • OTF, OpenType Font, 文件后缀 .otf
@ak1ra-komj
ak1ra-komj / settings.json
Last active July 8, 2024 13:29
vscode-settings-with-background
{
"background.customImages": [
"https://i.loli.net/2020/06/11/sHdtowgryvk8Qeq.png",
"https://i.loli.net/2020/06/11/yfTGIBVMWXxR5cE.png",
"https://i.loli.net/2020/06/11/eSnE3mQYukBKsPt.png",
"https://i.loli.net/2020/06/11/29x4PdKmi7ApehI.png",
"https://i.loli.net/2020/06/11/YqjZbIB5hv4PKS3.png",
"https://i.loli.net/2020/06/11/Ru84bz5NnADWZLw.png",
"https://i.loli.net/2020/06/11/lswOX1IemtUrL6c.png",
"https://i.loli.net/2020/06/11/HrAeG5PqyfvnhwL.png",