Skip to content

Instantly share code, notes, and snippets.

View LittleYe233's full-sized avatar
๐Ÿ˜ฎโ€๐Ÿ’จ
Depressed

Zhifan Ye LittleYe233

๐Ÿ˜ฎโ€๐Ÿ’จ
Depressed
View GitHub Profile
@LittleYe233
LittleYe233 / README.md
Last active March 27, 2022 04:01
Transfer GPG secret keys to another machine (Linux/Windows)

When you are setting up a coding environment on a new machine or has just found that your GPG keys were missing for some reasons (it really happened on my Windows PC), you may need to transfer your GPG secret keys elsewhere.

Method #1: Transfer directly

It takes advantage of gpg --export-secret-key, gpg --import and pipe syntax. This method is an excerpt of a StackOverflow answer.

If you're on the machine that already has the key:

gpg --export-secret-key SOMEKEYID | ssh othermachine gpg --import
@LittleYe233
LittleYe233 / 00run.sh
Last active May 19, 2025 12:32
My quick start script to set up a Debian server
#!/bin/bash
set -ex
cd `dirname $0`
# Set up terminal
export TERM=xterm-256color
## If using alacritty
curl -sSL https://raw.githubusercontent.com/alacritty/alacritty/master/extra/alacritty.info | tic -x -
@LittleYe233
LittleYe233 / README.md
Created March 5, 2025 15:48
Train RVC (Retrieval-based-Voice-Conversion-WebUI) on AutoDL (WIP)

Here is the simple tutorial on how to train RVC on AutoDL, a Chinese GPU renting website. This tutorial is focused on training a vocal model for other uses, like inferring and real-time voice changing.

Planning

I choose the community fork version of the original one from RVC-Project. The latter one has some known and potential issues and may be not recommended.

The training consists of a few steps. First we need some WAV files as the training set. According to the summary of the repository, a really small set of almost 10 minutes is enough, but I chose a large (nearly 9 hrs) set from LibriVox, a community-driven acoustical book sharing platform on public domain, which is appropriate for us to