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) => {