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 / 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
@iqiancheng
iqiancheng / install_macos_apps.sh
Created January 3, 2025 08:42
Homebrew批量安装脚本
#!/bin/bash
# Update Homebrew
echo "Updating Homebrew..."
brew update
# Add necessary taps
echo "Adding required taps..."
brew tap homebrew/cask-versions
brew tap homebrew/cask-fonts
@iqiancheng
iqiancheng / setup_conda.sh
Created January 3, 2025 07:44
一个 shell 脚本来一次性配置这些 conda 设置
#!/bin/bash
# Script to configure conda settings
echo "Starting conda configuration..."
# Set proxy servers
conda config --set proxy_servers.http http://127.0.0.1:7890
conda config --set proxy_servers.https http://127.0.0.1:7890
# Set default channel