This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # From: https://jira.atlassian.com/browse/SRCTREE-8221 | |
| # Go to the current user's Downloads directory | |
| cd ~/Downloads | |
| # Download a copy of the previous version of Sourcetree | |
| curl -LO 'https://product-downloads.atlassian.com/software/sourcetree/ga/Sourcetree_4.2.16_307.zip' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /** | |
| * 去重并按时间戳升序排序 zsh_history(支持多行命令记录) | |
| * | |
| * 规则: | |
| * - 以 command(`;` 后面的所有内容,含换行)作为去重 key | |
| * - 保留同 command 的最新 timestamp 的那条记录 | |
| * - 最终按 timestamp 升序输出(timestamp 相同按出现顺序、再按 command 兜底) | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function gifinfo() { | |
| # 检查是否安装了 ImageMagick | |
| if ! command -v identify &>/dev/null; then | |
| echo -e "\033[31mError: ImageMagick is not installed.\033[0m" | |
| return 1 | |
| fi | |
| local num_frames=-1 | |
| local filename="" |