Skip to content

Instantly share code, notes, and snippets.

View xxnuo's full-sized avatar
🍊
I may be slow to respond.

xxnuo

🍊
I may be slow to respond.
View GitHub Profile
@xxnuo
xxnuo / py2so.py
Created May 25, 2025 13:28
Compile Python Project into binary
# -*- coding: utf-8 -*-
import getopt
import os
import platform
import shutil
import subprocess
import sys
class OptionsOfBuild():
@noobnooc
noobnooc / cloudflare-worker-proxy.js
Last active January 10, 2026 07:48
cloudflare-worker-proxy
// Website you intended to retrieve for users.
const upstream = 'api.openai.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = upstream
// Countries and regions where you wish to suspend your service.
@ferstar
ferstar / delete_action_runs.py
Created January 7, 2022 01:25
Delete all workflow runs&artifacts of a github repo
import asyncio
import sys
from aiohttp import ClientSession, ClientTimeout
def seq_iter(seq, step=10):
if not seq:
return seq
from_idx, to_idx, seq_len = 0, step, len(seq)