Skip to content

Instantly share code, notes, and snippets.

@yayanet
yayanet / profiles.sh
Last active July 11, 2025 11:03
list and clean expired provisioning profiles on macOS
#!/bin/bash
# -----------------------------------------------------------------------------
# Function: Scan and manage provisioning profiles from system and Xcode paths.
# Version: 4.1 (Fixes bug in file list processing from v4.0)
#
# Usage:
# ./cleanup_profiles.sh -l - List the status (Valid/Expired) of all profiles.
# ./cleanup_profiles.sh -d - Interactively move all expired profiles to Trash.
# -----------------------------------------------------------------------------
@yayanet
yayanet / sentry-clean-debug-information-files.js
Last active February 15, 2023 11:33 — forked from yeleleo/sentry-clean-debug-information-files.js
Sentry Cleanup: Debug Information Files
const axios = require('axios')
const http = require('http')
const LinkHeader = require('http-link-header')
const MAX_REQUESTS_COUNT = 20
const INTERVAL_MS = 10
let PENDING_REQUESTS = 0
const nextPage = (header) => {
- DOMAIN-SUFFIX,qq.com,DIRECT
- DOMAIN-SUFFIX,youdao.com,DIRECT
- DOMAIN-SUFFIX,hillinsight.tech,DIRECT
- DOMAIN-SUFFIX,sentry.io,DIRECT
- DOMAIN-SUFFIX,ifconfig.io,Proxy
- DOMAIN-SUFFIX,github.com,Proxy
- DOMAIN-SUFFIX,dlercloud.com,Proxy
- DOMAIN-SUFFIX,dler.io,Proxy
- DOMAIN-SUFFIX,m-team.cc,Proxy
- DOMAIN-SUFFIX,ifixit.com,Proxy
@yayanet
yayanet / rules.yaml
Last active September 10, 2025 12:41
clash rules
# <-- custom start
- DOMAIN-SUFFIX,youdao.com,DIRECT
- DOMAIN-SUFFIX,hillinsight.tech,DIRECT
- DOMAIN-SUFFIX,sentry.io,DIRECT
- DOMAIN-SUFFIX,ifconfig.io,Proxy
- DOMAIN-SUFFIX,github.com,Proxy
- DOMAIN-SUFFIX,dlercloud.com,Proxy
- DOMAIN-SUFFIX,dler.io,Proxy
- DOMAIN-SUFFIX,m-team.cc,Proxy
# Google