Skip to content

Instantly share code, notes, and snippets.

View iqiancheng's full-sized avatar
🌴
On vacation

千橙 iqiancheng

🌴
On vacation
View GitHub Profile
@iqiancheng
iqiancheng / dedup_files_for_macos.py
Last active June 4, 2025 09:01
Remove duplicate files from a directory tree on macOS
import os
import re
from collections import defaultdict
def dedup_files(root_dir):
"""
Remove duplicate files from a directory tree.
Deduplication rules:
- Files are grouped by: basename + extension + size
@iqiancheng
iqiancheng / ios_jail_breaking_list.md
Last active June 4, 2025 01:28
iOS 各版本中可以越狱的版本清单

以下是iOS 各版本中可以越狱的版本清单(截至2025年6月)以及每个版本的主要功能/更新,以备查阅:

iOS 版本 是否能越狱 越狱工具 主要版本功能简介
iOS 9.0–9.3.6 Pangu, Phoenix 多任务分屏、Night Shift、性能优化
iOS 10.0–10.3.3 Yalu, Meridian 家庭App、改进Siri、iMessage动画增强
iOS 11.0–11.4.1 Electra, Unc0ver 文件管理App(Files)、ARKit首次加入
iOS 12.0–12.5.7 Chimera, Unc0ver 性能提升、Screen Time、增强Siri快捷指令
iOS 13.0–13.7 Checkra1n, Unc0ver 深色模式、全新照片App、Sign In with Apple
iOS 14.0–14.8.1 Checkra1n, Taurine 桌面小组件、App资源库、画中画
@iqiancheng
iqiancheng / README.md
Last active April 30, 2025 11:32
setup Installs a combined list of applications using Homebrew Cask.
App Name Description Homebrew Command Category
--- Reinstall --- --- --- ---
Raycast Productivity launcher & command palette brew install --cask raycast Reinstall
Warp Modern terminal emulator brew install --cask warp Reinstall
Postman API development platform brew install --cask postman Reinstall
Telegram Desktop Desktop messaging app brew install --cask telegram-desktop Reinstall
Tencent Meeting Video conferencing tool (VooV Meeting) brew install --cask tencent-meeting Reinstall
Visual Studio Code Code editor
@iqiancheng
iqiancheng / homebrew-productivity-toolkit.md
Created April 29, 2025 11:46
Free and Popular macOS Applications from Homebrew

Free and Popular macOS Applications from Homebrew

This document lists useful free and open-source applications from your Homebrew installation script, organized by type.

GUI Applications (Casks)

App Name Description Homebrew Command
Applite A user-friendly GUI for managing and updating applications brew install --cask applite
Blender Professional 3D creation suite for modeling, animation, and rendering brew install --cask blender
@iqiancheng
iqiancheng / brew_setup.sh
Created April 29, 2025 10:05
macos brew setup for a new mac
#!/bin/bash
# Required taps
TAPS=(
bookstairs/tap
homebrew/services
lijy91/biyi
quackduck/tap
tabbyml/tabby
ygsgdbd/tap
@iqiancheng
iqiancheng / image_to_pdf_PIL.py
Last active April 29, 2025 03:49
image_to_pdf_converter
from PIL import Image
import os
import re
# 设置图片文件夹路径
image_folder = 'path_to_your_images' # 替换为你的文件夹路径
output_pdf = 'output.pdf' # 输出的PDF文件名
# 正则提取括号内的数字
@iqiancheng
iqiancheng / README.md
Created April 17, 2025 03:48
Git Rename Branch Script

This script makes the variable names clearer and adds a confirmation message at the end. You can easily change the branch names by modifying the variables at the top.

Customizing the 'Created by' Author Name in Xcode

When you create a new file in Xcode, the IDE automatically adds a header comment that includes information like the filename, creation date, and author. By default, the author name is derived from your macOS system's full username. However, you might want to customize this for various reasons - perhaps you're sharing code publicly, working on a team project, or simply prefer a different name format.

This article explains multiple methods to customize the "Created by" author name in Xcode.

Understanding the File Header Template

When you create a new file in Xcode, you'll see a header comment like this:

@iqiancheng
iqiancheng / bulk_clearCart.console.bot.js
Last active February 8, 2025 14:40
自动遍历删除淘宝购物车失效的商品(自动点击确认删除)淘宝购物车批量删除脚本(带确认框处理)
// 定义一个异步函数来处理删除操作
async function clearCart() {
// 使用更通用的属性选择器来找到所有商品项
const cartItems = document.querySelectorAll('[class*="trade-cart-item-info"]');
let deletedCount = 0;
const totalItems = cartItems.length;
console.log(`找到 ${totalItems} 个商品项`);
@iqiancheng
iqiancheng / docker-compose.yml
Created January 26, 2025 11:17
whoogle-search self-hosted google search base
# can't use mem_limit in a 3.x docker-compose file in non swarm mode
# see https://github.com/docker/compose/issues/4513
version: "2.4"
services:
whoogle-search:
image: ${WHOOGLE_IMAGE:-benbusby/whoogle-search:0.9.3}
container_name: whoogle-search
restart: unless-stopped
pids_limit: 50