Skip to content

Instantly share code, notes, and snippets.

View iqiancheng's full-sized avatar
🌴
On vacation

pengya iqiancheng

🌴
On vacation
View GitHub Profile
@iqiancheng
iqiancheng / wechat_bill_to_csv.py
Created April 28, 2026 09:22
把微信账单Excel 转为CSV
# filename: wechat_bill_to_csv.py
import argparse
import os
import sys
from typing import List, Optional
import pandas as pd
import re
def clean_filename_suffix(name: str) -> str:
# Attribute: userinfo-url={{print .subscribe_url}}
# Attribute: filename={{hostOf .subscribe_url}}.yaml
ipv6: true
mixed-port: 7890
mode: rule
allow-lan: true
log-level: info
external-controller: 127.0.0.1:6170
@iqiancheng
iqiancheng / png_to_jpg_compress.md
Last active October 21, 2025 09:23
把当前目录下所有 PNG 转成 75% 质量的 JPG on macOS magick CLI
# 把当前目录下所有 PNG 转成 75% 质量的 JPG,并在原文件名后加 _quality75.jpg
find . -maxdepth 1 -type f -iname '*.png' -print0 | xargs -0 -I{} sh -c 'magick "$1" -background white -alpha remove -alpha off -strip -quality 85 "${1%.png}_q85.jpg"' _ {}

说明
• 使用 -background white -alpha remove -alpha off 处理透明背景,避免黑底;如需其他颜色,把 white 改成你想要的颜色值(如 “#1e1e1e”)。
• -strip 会移除元数据以进一步减小体积;若需保留 ICC/EXIF,删除 -strip。
• 质量 75 是偏中高的网页常用档位;需要更高或更小体积,调节 -quality。

@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.