Skip to content

Instantly share code, notes, and snippets.

@BB9z
BB9z / Alfred plugin
Last active December 16, 2015 00:58
Alfred 2 Workflows 推荐 http://24says.com/alfred-2-workflows-recommend/
http://www.alfredforum.com/topic/164-wi-fi-toggle-network-location-fast-user-switching-finder-settings/
http://www.alfredforum.com/topic/612-run-terminal-command-in-current-finder-directory/
https://github.com/franzheidl/alfred-workflows/blob/master/run-terminal-command-here/src/terminalcommandhere-newwin.applescript
https://github.com/nathangreenstein/alfred-process-killer/
http://lucifr.com/2013/03/20/air-quality-index-workflow-for-alfred-2/
http://dferg.us/
@BB9z
BB9z / macOS reinstall.md
Last active July 2, 2020 03:43
Mac OS X 系统重置后,参考配置恢复笔记

迁移文件,powertoys,system,config

顺序安装,恢复环境

终端

  • 首先安装 brew,中间可能会提示安装 Command line tool,必须先安装。命令
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@BB9z
BB9z / gg
Created February 21, 2014 08:55
gg
gg
@BB9z
BB9z / lookup.md
Last active August 29, 2015 13:57
tt
@BB9z
BB9z / BOOL.md
Last active August 29, 2015 14:00
Cocoa BOOL / bool / int 互转测试

BOOL 声明,初始值为 NO 时 ++ -- OK

BOOL isa = NO;
isa++;
dout_int(isa)   // YES = 1
isa++;
dout_int(isa)   // YES = 2

isa = NO;
@BB9z
BB9z / lo.sh
Last active August 23, 2022 15:55
Reveal the Latest Simulator Application’s Data Container in Finder.
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Simulator Data Container
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🤖
# @raycast.packageName com.github.bb9z.lo-sh
{"sig":"08219a460cce27458f792d595d84e78275dae6730e46307cc92879f033eb549fc8b394c64907d3c43ae3bcde584fe98e42ad2e1929bc9afed5ec6f0dfbc023df1","msghash":"47347eb846ea29de7b92e984dd51cab34c650c0d02375ac61855109a93d221c0"}