Skip to content

Instantly share code, notes, and snippets.

@yumin9822
yumin9822 / qbittorrent_web_show_size
Last active April 22, 2025 13:30
qbittorrent 状态栏显示数量和大小-TamperMonkey脚本
// ==UserScript==
// @name qbittorrent 状态栏显示数量和大小
// @name:en show counts and sizes of selected for qBittorrent
// @namespace localhost
// @version 2024-01-31
// @description 在 webUI 状态栏显示选中种子信息
// @description:en show counts and sizes of selected torrents.
// @author flashlab
// @match http://127.0.0.1:8080/
// @match *://*.sample.com/
@yumin9822
yumin9822 / backup.sh
Last active April 18, 2025 06:31
Some shell script
#!/usr/bin/env bash
# Copyright (C) 2013 - 2022 Teddysun <[email protected]>
#
# 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> <BDINFO_TXT_NAME>"
echo "Example: $ScriptName \"/root/Downloads/Ray.Donovan/S1D1\" \"Ray.Donovan.S1\""
echo " $ScriptName \"/root/Downloads/Ray.Donovan.S1D1.iso\" \"Ray.Donovan.S1\""
echo "The output file will be saved in /root"
echo "Install Docker with \"wget -qO- https://get.docker.com/ | sh\""
}
@yumin9822
yumin9822 / jiebox.sh
Last active March 28, 2025 02:16
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