This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
# ----------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <-- 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 | |