Skip to content

Instantly share code, notes, and snippets.

View BlueSkyXN's full-sized avatar
🤡
小丑竟是我自己

BlueSkyXN BlueSkyXN

🤡
小丑竟是我自己
View GitHub Profile
@BlueSkyXN
BlueSkyXN / X-Forwarded-For Header eventPage.js
Created March 29, 2024 06:04
X-Forwarded-For Header eventPage.js
(function () {
let settings = {
spoofIp: '',
previous: [],
headers: ['X-Forwarded-For']
};
browser.storage.sync.get(settings).then((loadedSettings) => {
settings = loadedSettings;
setBadge(settings.spoofIp);
});
@BlueSkyXN
BlueSkyXN / youtube-publish-drafts.js
Created February 19, 2024 16:41
youtube-publish-drafts.js
(() => {
// -----------------------------------------------------------------
// CONFIG (you're safe to edit this)
// -----------------------------------------------------------------
// ~ GLOBAL CONFIG
// -----------------------------------------------------------------
const MODE = 'publish_drafts'; // 'publish_drafts' / 'sort_playlist';
const DEBUG_MODE = true; // true / false, enable for more context
// -----------------------------------------------------------------
// ~ PUBLISH CONFIG
@BlueSkyXN
BlueSkyXN / edgetunnel-src-worker-vless.js
Last active May 21, 2026 05:18
edgetunnel-src-worker-vless.js
// <!--GAMFC-->version base on commit 43fad05dcdae3b723c53c226f8181fc5bd47223e, time is 2023-06-22 15:20:02 UTC<!--GAMFC-END-->.
// @ts-ignore
// Copy From https://github.com/zizifn/edgetunnel/blob/main/src/worker-vless.js
import { connect } from 'cloudflare:sockets';
// How to generate your own UUID:
// [Windows] Press "Win + R", input cmd and run: Powershell -NoExit -Command "[guid]::NewGuid()"
let userID = 'd342d11e-d424-4583-b36e-524ab1f0afa4';
let proxyIP = '';
@BlueSkyXN
BlueSkyXN / Nekoneko-Linux-Tools.sh
Created January 31, 2024 07:15
Nekoneko-Linux-Tools.sh
#!/usr/bin/env bash
Green_font_prefix="\033[32m"
Red_font_prefix="\033[31m"
Font_color_suffix="\033[0m"
Info="${Green_font_prefix}[信息]${Font_color_suffix}"
Error="${Red_font_prefix}[错误]${Font_color_suffix}"
Tip="${Green_font_prefix}[注意]${Font_color_suffix}"
copyright(){
clear
echo "\
@BlueSkyXN
BlueSkyXN / 163imgbed.js
Last active December 20, 2023 05:59
163imgbed.js
// Giithub @BlueSkyXN
// Code: Modified based on the original
// 仅供学习CloudFlare Worker开发使用,违规使用后果自负
// License @GPLv3
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
@BlueSkyXN
BlueSkyXN / tgphimguploader.py
Last active October 6, 2023 12:29
tgphimguploader.py
#GPLv3 @BlueSkyXN
import os
import argparse
import csv
from mimetypes import guess_type
from concurrent.futures import ThreadPoolExecutor
import threading
import requests
# 线程安全的计数器和停止标志
@BlueSkyXN
BlueSkyXN / group_files.py
Created October 6, 2023 11:41
group_files.py
import os
import shutil
import argparse
#GPLv3 @BlueSkyXN
def main(target_folder, files_per_group):
print(f"目标文件夹:{target_folder}")
print(f"每组文件数量:{files_per_group}")
@BlueSkyXN
BlueSkyXN / dd.sh
Created October 5, 2023 07:31
InstallNET.sh
#!/bin/bash
##
## License: GPL
## It can reinstall Debian, Ubuntu, Kali, AlpineLinux, CentOS, AlmaLinux, RockyLinux, Fedora and Windows OS via network automatically without any other external measures and manual operations.
## Default root password: LeitboGi0ro
## Written By MoeClub.org
## Blog: https://moeclub.org
## Modified By 秋水逸冰
## Blog: https://teddysun.com/
## Modified By VPS收割者
@BlueSkyXN
BlueSkyXN / GitLab-DEL.py
Last active October 5, 2023 07:31
GitLab-DEL.py
import requests
# Author @BlueSkyXN
# License @GPLv3
# 功能:通过HTTP API操作,实现清空所有Gitlab仓库。由于一次只能读取100个仓库,所以本脚本一次只能删除100个仓库,重复运行即可。后续可重新从GitHub等平台导入,避免数据不一致的问题。
# 效果示例图: https://telegraph.cachefly.net/file/e5f167d14ac8e10df7e8c.png
# 设置 GitLab 实例 URL 和访问令牌
GITLAB_URL = 'https://gitlab.com' #官方版gitlab
ACCESS_TOKEN = 'XXXXX' # 在 https://gitlab.com/-/profile/personal_access_tokens 处新建token,权限拉满,有效期记得短一点
@BlueSkyXN
BlueSkyXN / tgphimgbed.js
Last active November 5, 2023 16:19
tgphimgbed.js
// Github @BlueSkyXN
// Code https://gist.github.com/BlueSkyXN/8d261d13d79e7a7672999f9935acdfe9
// 仅供学习CloudFlare Worker开发使用,违规使用后果自负
// License @GPLv3
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {