u0u0's Offical Site - mac
type: channel
link: http://www.tyrantek.com/tag/mac/
items: 找回MacOS丢失的空间
items: 解决ssh连接空闲自动断开
items: iOS 静态库平台合并脚本
items: Mac废纸篓自动清除文件的解决办法

找回MacOS丢失的空间
type: item
date: 2025-02-26T23:09:03+08:00
description: 最近观察，mac每天丢失4g左右的空间，各种查原因都未果。然观察到mds_stores 巨大的读写量，查询得知是Spotlight，本机作为服务器不需要检索。随关闭之sudo mdutil -a -i off再次观察发现，磁盘回收接近50g空间，苹果我问候你全家。

解决ssh连接空闲自动断开
type: item
date: 2023-01-16T09:53:14+08:00
description: 错误信息： client_loop: send disconnect: Broken pipe以macOS的ssh客户端为例$ cd /etc/ssh $ sudo vim ssh_config在ssh_config文件的最下方的Host *中新增 ServerAliveInterval 30 IPQoS=throughput

iOS 静态库平台合并脚本
type: item
date: 2020-01-27T11:12:50+08:00
description: libwebsockets-i86.a libwebsockets-x86_64.alibwebsockets-arm32.a libwebsockets-arm64.a#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" LIPO="xcrun -sdk iphoneos lipo" STRIP="xcrun -sdk iphoneos strip" LIBNAME=libwebsockets $LIPO -create $DIR/$LIBNAME-*.a -output $DIR/$LIBNAME.a $STRIP -S $DIR/$LIBNAME.a $LIPO -info $DIR/$LIBNAME.a

Mac废纸篓自动清除文件的解决办法
type: item
date: 2013-08-10T23:38:32+08:00
description: 问题： 每次删除东西前，总是出现“Finder想要进行修改，键入您的密码以允许执行此操作”，按“好”后“废纸篓”里的“倾倒废纸篓”却显示灰色，电脑自动清除了文件。 解决： 1. Quit the "Terminal" application and relaunch it, to make sure that you are NOT logged in as another user (root for example). This is important, because the folder we create will get all the permissions from the parent folder (your "home" folder), and only the user who created the new ".Trash" directory (you) will be able to use it without restrictions.2. In the Terminal typesudo rm -frv ~/.Trashto remove the old ".Trash" directory and all folders and files in the old ".Trash" directory.3. In the Terminal typemkdir -v ~/.Trashto create a new ".Trash" directory in your "home" folder!4. In the Terminal typeosascript -e 'tell application "Finder" to quit'thenosascript -e 'tell application "Finder" to activate'to restart the Finder!5. Done! You can now move files in the trash!reference： http://bbs.weiphone.com/read-htm-tid-2813762.html