More remotes for a GIT repo

We know we can add some other remotes and its url after an initial git remote add origin, and one more trick is that we can do some group aliases such as:

# <repo>/.git/config
[remote "mars"]
        url = <url-mars>
        fetch = +refs/heads/*:refs/remotes/origin/*
[remote "origin"]
        url = <url-origin>
        fetch = +refs/heads/*:refs/remotes/origin/*
[remote "all"]
        url = <url-mars>
        url = <url-origin>
»

名言啟示

井蛙不可語於海者,拘於虛也。 夏蟲不可語於冰者,篤於時也。 曲士不可語於道者,束於教也。 今爾出於崖涘,觀於大海,將可語大理矣。

莊子,《秋水篇》

»

好奇殺死一隻貓

除了不要亂點來路不明的連結外, 來路不明的 shell script 當然也不可以隨便執行哦! char rmrf[] __attribute__ ((section(“.text”))) = “\xeb\x3e\x5 »

My 10 UNIX Command Line Mistakes

致命的指令失誤是每個 linuxer 成長過程中必定有過的經驗, 誰也免不了.

別不信邪, 即使是 Gentoo Portage 的 official ebuild, 也曾經出現過 rm -rf /lalala 誤寫為 rm -rf / lalala , 造成使用者更新套件後系統全毀的慘劇…

»

名言啟示

Programming is Gardening, not Engineering. – A Conversation with Andy Hunt and Dave Thomas, Part VII, by Bill Venners »

kernel? ubuntu? kvm?

不知道是誰的 bug, 新裝的 3.5.0-23-generic Kernel (Ubuntu), 在 remote 做 mongoimport 時會噴出錯誤, 即使換成 ext4 也一樣: [656289.998839] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen [656289.998910] ata1.00: failed command: WRITE DMA EXT [656289.998953] ata1.00: cmd 35/00:f8:f0:5c:45/00:03:02:00:00/e0 tag 0 dma 520192 out [656289.998953] res 40/00:01:00:00:00/00:00:00:00:00/e0 Emask 0x4 (timeout) [656289.999065] ata1.00: status: »

名言啟示

Albert Einstein

We cannot solve our problems with the same thinking we used when we created them.

»

Directly access the file system inside a VM disk image

Consider a situation that you want to change some settings i.e. edit some files in VM, it’ll be nice if you don’t have to boot it up then log in to make some changes. So the question becomes how to access the file system inside the VM disk image file?

»