2013年9月5日 星期四

install caff on Mac

最近參加了幾次 signing-party,在會後都會收到制式的內容和 key,查了一下才發現是用了 caff 這個工具。

在 homebrew 上試查 caff 也沒有?!後來才發現有 signing-party 這個小工具, caff 就在裡面。

為了裝這個 perl 的工具,在直接下 homebrew 的安裝之後,才會發現需要其他幾個 perl 的元件,照安裝就可以


安裝過程如下:



接下來就照正常的使用 caff 流程就可以簡化認證這件事啦!

> caff

[修正] 2015.05.26 使用 local 的 perl 安裝法,避免 sudo

2013年5月3日 星期五

升級到 org-mode 8.x 出現 org-with-silent-modifications(nil)


Invalid function: org-with-silent-modifications

升級 org-mode 到 8.0.2 之後,若遇到上面的問題,要把 session 給清掉

做法就是

M-x desktop-clear

然後重開 emacs

參考資料:

2013年3月21日 星期四

git svn tag 轉換成真實的 tag

通常使用 git-svn 抓取 svn 的時候會下這樣的指令:

git svn clone https://remote.server/svn/ -s response

這樣可以把 svn 轉換成 git 匯入,但是 svn 的 tag 並沒有轉換成 git 的版本

接下來只要抓下的目錄下再輸入以下的指令就可以轉換成 git 使用的 tag

git for-each-ref refs/remotes/tags \
--shell --format="r=%(refname:short) t=\${r#tags/}" | \
while read e ; do eval "$e"; \
git tag -f $t refs/remotes/$r; \
git branch -d -r $r; \
done

相關文章:

git fetch 遇到的怪問題


在使用 git-svn-fetch 的時候 系統竟然吐出這樣的 log

fatal: Cannot open '.git/9YHRNPjFMp': Resource temporarily unavailable
hash-object -w --stdin-paths --no-filters: command returned error: 128

error closing pipe: Bad file descriptor at /usr/local/Cellar/git/1.8.2/libexec/git-core/git-svn line 0
error closing pipe: Bad file descriptor at /usr/local/Cellar/git/1.8.2/libexec/git-core/git-svn line 0

同樣的來源在不同的電腦上跑就可以正常 fetch ,後來發現是直接在虛擬碟 (nas) 上使用的關係

只要在實體硬碟上 fetch 就能正常運作了

相關文章: