Skip to content

Instantly share code, notes, and snippets.

View qcgzxw's full-sized avatar
🐳

Owen qcgzxw

🐳
View GitHub Profile
@qcgzxw
qcgzxw / nexusphp.sh
Last active October 19, 2024 22:17
NexusPHP 开注提醒
#!/bin/bash
# 目标网址
url="https://nexusphp.com/signup.php"
while true; do
# 获取注册页面的响应
response=$(curl -L -s "$url")
# 检查页面中是否包含与注册相关的关键词
@qcgzxw
qcgzxw / push_and_create_pr.sh
Created August 22, 2024 02:46
一键提交gitlab MR
#!/bin/bash
# 配置变量
GITLAB_URL="https://gitlab.com"
GITLAB_PRIVATE_TOKEN="" # 替换为你的 GitLab Personal Access Token
TARGET_PROJECT_ID="" # 目标项目ID
SOURCE_PROJECT_ID="" # 源项目ID
SOURCE_ORIGIN="origin" # 源origin名称
TARGET_ORIGIN="upstream" # 目标origin名称
TARGET_BRANCH="develop" # 目标分支
@qcgzxw
qcgzxw / curl_ping.sh
Created July 17, 2024 08:44
使用curl模拟ping指令
#!/bin/bash
# 默认值
URL=""
COUNT=-1
# 解析命令行参数
while getopts ":u:c:h" opt; do
case $opt in
u) URL="$OPTARG"
@qcgzxw
qcgzxw / vultr.sh
Created October 30, 2022 16:06
vultr自动删除超出流量实例
#!/bin/bash
# 1.下载vultr-cli
# wget https://github.com/vultr/vultr-cli/releases/download/v2.15.0/vultr-cli_2.15.0_linux_64-bit.tar.gz
# tar -xvf vultr-cli_*
# mv vultr-cli /usr/bin/
# rm vultr-cli_*
# 2.配置vultr密钥
# echo "api-key: <api_key_from_vultr_account>" > /root/vultr-cli.yaml
let PERCENT=90
@qcgzxw
qcgzxw / smartreport.sh
Last active December 29, 2022 07:29 — forked from jakeobsen/smartreport.sh
This is a simple script to report on smart errors based on the backblaze smart stats. Use it at your own will.
#!/bin/bash
# SMART Report Script
# Copyright (C) 2020 Morten Jakobsen
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but