Skip to content

Instantly share code, notes, and snippets.

View XiaoMengXinX's full-sized avatar

lz已经是条咸鱼了 XiaoMengXinX

View GitHub Profile
@XiaoMengXinX
XiaoMengXinX / tiny-tailscale-updator.sh
Last active February 26, 2025 10:27
A script for installing and updating tailscale on OpenWRT
#!/bin/bash
ARCH=$(uname -m)
TINY_ARCH=""
TAILSCALE_TINY_URL="https://github.com/Admonstrator/glinet-tailscale-updater/releases/latest/download/"
TAILSCALE_INIT_URL="https://raw.githubusercontent.com/CH3NGYZ/tailscale-openwrt/refs/heads/chinese_mainland/etc/init.d/tailscale"
# Function to extract version number from a string
GET_VERSION() {
echo "$1" | grep -oE '^[0-9]+\.[0-9]+\.[0-9]+(-[0-9]+)?'
var KV = kv_shared_fuclaude;
const BASE_URL = `YOUR_FUCLAUDE_DOMAIN`;
const AUTH_ENDPOINT = '/manage-api/auth/oauth_token';
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
const requestURL = new URL(request.url);
@XiaoMengXinX
XiaoMengXinX / Go-Player.go
Last active August 24, 2022 13:09
Play badapple with golang in console
package main
import (
"bytes"
"errors"
"flag"
"fmt"
"image"
"image/color"
"image/jpeg"