Skip to content

Instantly share code, notes, and snippets.

View jianyun8023's full-sized avatar
:octocat:

Jian Yun jianyun8023

:octocat:
View GitHub Profile
@zgs225
zgs225 / mp3_hant2hans.sh
Last active April 26, 2023 07:16
将 mp3 文件中的繁体中文信息转换成简体中文信息
#!/bin/bash
# 将 mp3 文件中的繁体字转换为简体字
# 依赖:opencc mid3v2
# 用法:hant2hans.sh [-d dir] [-f file]
set -e
function get_by_id() {
mid3v2 -l "$1" | grep "$2" | cut -d= -f2 | sed 's/^[ \t]*//'
@syhily
syhily / download_talebook.sh
Last active June 4, 2024 11:57
Download all the books from a talebook website. The https://curl.se/ and https://stedolan.github.io/jq/ are required for using this script.
#!/usr/bin/env bash
# Download metadata, modify these as your needs.
## The directory to save the downloaded files.
download_directory="/volume1/Download/EPUB"
## The website you want to visit.
calibre_site="http://soulseeker.myds.me:25788"
## The formats you want to download. We only download the first present format.
## All the formats should be upper case.
allow_formats=( EPUB MOBI AZW3 )
@huyinghuan
huyinghuan / encrypt_file_pkcs5_pkcs7.go
Created May 31, 2017 07:44
golang encrypt with pkcs5 and pkcs7
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"errors"
"io"
"io/ioutil"