Skip to content

Instantly share code, notes, and snippets.

@yumin9822
yumin9822 / qb.sh
Last active July 1, 2025 07:46
qbittorrent
#!/bin/bash
# qBittorrent-nox 统一安装/升降级脚本
# 自动检测系统状态并进行相应的安装或升降级操作
# 检查是否为root用户
if [ "$EUID" -ne 0 ]; then
echo "请以root用户运行此脚本"
exit 1
fi
@yumin9822
yumin9822 / backup.sh
Last active April 18, 2025 06:31
Some shell script
#!/usr/bin/env bash
# Copyright (C) 2013 - 2022 Teddysun <i@teddysun.com>
#
# This file is part of the LAMP script.
#
# LAMP is a powerful bash script for the installation of
# Apache + PHP + MySQL/MariaDB and so on.
# You can install Apache + PHP + MySQL/MariaDB in an very easy way.
# Just need to input numbers to choose what you want to install before installation.
# And all things will be done in a few minutes.
@yumin9822
yumin9822 / caddy.sh
Last active April 21, 2025 04:05
shell scripts
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
#!/bin/bash
FILE=$1
imgbox --thumb-width 350 -t "${FILE}" /root/"${FILE}"-*.png | tee -a /root/imgbox.txt
#apt install pipx
#pipx install imgbox-cli
exit 0
#!/bin/bash
ScriptName=${0##*/}
function print_usage() {
echo "Please Use $ScriptName <File> <NameSeason>."
echo "The screenshots will be saved in /root/"
echo "Example: $ScriptName 00003.m2ts Friends01"
}
FILE=$1
#!/bin/bash
ScriptName=${0##*/}
function print_usage() {
echo "Usage: $ScriptName <BDFileLocation/ISOFile>"
echo "Example: $ScriptName \"/root/Downloads/Ray.Donovan/S1D1\""
echo " $ScriptName \"/root/Downloads/Ray.Donovan.S1D1.iso\""
echo "The output file will be saved in /root/bdinfo"
echo "Install Docker with \"wget -qO- https://get.docker.com/ | sh\""
}
@yumin9822
yumin9822 / jiebox.sh
Last active July 1, 2025 08:34
video screenshoot and upload to imgbox, enable comppression by Tinypng while bigger than 10MB
#!/bin/bash
ScriptName=${0##*/}
function print_usage() {
echo "请使用: $ScriptName <文件序号> <视频文件夹>"
echo "截图将保存到 /root/screenshots 文件夹中。"
echo "示例: $ScriptName 2 /path/to/video_folder"
echo "说明:"
echo " - 文件序号:选择文件夹中的第几个视频文件(从 1 开始)。"
echo " - 视频文件夹:支持 ISO 文件、普通视频文件和多级目录。"
@yumin9822
yumin9822 / img_upload.sh
Last active March 28, 2025 02:00 — forked from floshodan/img_upload.sh
Pixhost Upload Shellscript using API
#/bin/sh
image=$(find -name "*.png")
export image
varCurl=$(curl -b --include "https://api.pixhost.to/images" \
-H 'Content-Type: multipart/form-data; charset=utf-8' \
-H 'Accept: application/json' \
-F "img=@$image" \
-F 'content_type=1' \
@yumin9822
yumin9822 / PublicNote
Last active March 26, 2025 03:30
PublicNote
public Note