Skip to content

Instantly share code, notes, and snippets.

@rakersfu
rakersfu / hosts_hfwine.py
Last active September 29, 2025 05:16
hosts_hfwine.py
import dns.resolver
import requests
import logging
import sys
import os
from pathlib import Path
from typing import List
from io import StringIO
# ================================
@rakersfu
rakersfu / githubhosts_wine.py
Last active September 28, 2025 07:48
githubhosts_wine.py
import dns.resolver
import requests
import logging
import sys
import os
from pathlib import Path
from typing import List
from io import StringIO
# ================================
@rakersfu
rakersfu / sendnews_wine.py
Created September 28, 2025 05:59
sendnews_wine.py
import feedparser
import requests
import time
from bs4 import BeautifulSoup
from datetime import datetime
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
import os
@rakersfu
rakersfu / hf_keepalive_sites.txt
Last active September 28, 2025 02:54
hf_keepalive_sites.txt
PRIVATE https://rakersfu-cron.hf.space
PRIVATE https://rakersfu-rakelinux.hf.space/
PUBLIC https://rakersfu-n8n.hf.space
PUBLIC https://rakersfu-crongithosts.hf.space
PUBLIC https://rakersfu-panel.hf.space/app
PUBLIC https://huggingface.co/spaces/rakersfu/onetts/tree/main
@rakersfu
rakersfu / https_keepalive.txt
Created September 27, 2025 08:48
https_keepalive.txt
https://rakersfu-n8n.hf.space
https://rakersfu-crongithosts.hf.space
https://rakersfu-panel.hf.space/app
https://huggingface.co/spaces/rakersfu/onetts/tree/main
@rakersfu
rakersfu / webdav_syc_dirs_notunel.py
Last active September 15, 2025 13:31
webdav_syc_dirs_notunel.py
import requests
from requests.auth import HTTPBasicAuth
import os
import logging
from tenacity import retry, stop_after_attempt, wait_fixed
from concurrent.futures import ThreadPoolExecutor
# 配置日志
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log'
log_dir = os.path.dirname(log_file)
if log_dir and not os.access(log_dir, os.W_OK):
@rakersfu
rakersfu / webdav_syc_dirs.py
Last active September 15, 2025 13:10
webdav_syc_dirs.py
import requests
from requests.auth import HTTPBasicAuth
import os
import logging
from tenacity import retry, stop_after_attempt, wait_fixed
# 配置日志
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log'
logging.basicConfig(
level=logging.INFO,
@rakersfu
rakersfu / wedav_acme.py
Created September 6, 2025 03:56
wedav_acme.py
import requests
from requests.auth import HTTPBasicAuth
import os
import logging
from tenacity import retry, stop_after_attempt, wait_fixed
# 配置日志
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log'
logging.basicConfig(
level=logging.INFO,
@rakersfu
rakersfu / hfactive_cron.py
Created September 4, 2025 12:43
hfactive_cron.py
import requests
import logging
import os
# 配置日志
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
# Hugging Face Space URL 和 API 令牌
SPACE_URL = "https://rakersfu-cron.hf.space"
HF_TOKEN = os.getenv("HF_TOKEN") # 从环境变量读取 HF_TOKEN
@rakersfu
rakersfu / webdav_vless_karing_hosts.py
Created September 4, 2025 04:10
webdav_vless_karing_hosts.py
import requests
from requests.auth import HTTPBasicAuth
import os
import logging
from tenacity import retry, stop_after_attempt, wait_fixed
# 配置日志
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log'
logging.basicConfig(
level=logging.INFO,