Profile cover photo
Profile photo
Cookys Lin
About
Posts

Post has attachment
合併兩個 git repo 成為一個
假設現在有兩個 ProjectA 和 ProjectB ,希望他們變成一個 Project 裡面的子目錄 ProjectC/      |- /ProjectA      |- /ProjectB 做法: 先到 ProjectA/ProjectB 裡面建立子目錄,方便識別,叫做 PDA/PDB cd ProjectA
mkdir ProjectA

cd ProjectB
mkdir ProjectB 用 git mv -k 把 * 都搬進 PDA/PDB 裡面,注意 dot 開頭的檔案 * 吃不到 cd P...
Add a comment...

Post has attachment
git sparse checkout
git clone -n git@git.example.com:Project/Demo.git
git config core.sparsecheckout true
echo "Path/You/Want/To/Checkout/" >> .git/info/sparse-checkout
git checkout develop
Add a comment...

Post has attachment
拆解 git 下的目錄成為新的 repo
Windows 系統要注意 / 方向。 git filter-branch f --subdirectory-filter 這裡/是你/要拆/的/子目錄 - --all
git remote -v
git remote set-url origin https://gitlab.example.com/Demo/DemoPoroject.Web.git
git remote -v
git push -u origin master
git remote set-url origin https://git...
Add a comment...

Post has attachment
Install GitLab on FreeBSD 10
網路上比較多看到的文章大概是: Installing GitLab on FreeBSD 10 不過他是手動用 gem 裝,個人不是很喜歡這種方式,想到之前看 2016 June Status Report  好像依稀有看到  Bringing GitLab into the Ports Collection  就翻了一下,所以照著 pkg-message 裡面的 指示文件 設定,不過會卡一些小地方,記錄下來避免以後需要重新查。 首先,更新你的 ports tree sudo portsnap fetch u...
Add a comment...

Post has attachment
合併多個 Subversion 成一個 Git
轉換成 Git 的方法可以看這篇,這篇其實是先轉成 git 後,然後用 git 合併起來 方法一:subtree add git subtree add --prefix=DIR1 git://git.repo.1 master
git subtree add --prefix=DIR2 git://git.repo.2 master
git subtree add --prefix=DIR3 git://git.repo.3 master
git subtree add --prefix=DIR4 git:...
Add a comment...

Post has attachment
轉移 Subversion 到 Git
準備 安裝 git svn pkg install git-subversion-2.3.5 建立對應的使用者列表 在 svn project 目錄下,轉出 author.txt svn log --xml | grep author | sort -u | perl -pe 's/.>(.?)<.*/$1 = /' > author.txt 把 author.txt 轉換成需要的格式如下: john = john foo = foo kevin = kevin johnny = johnny 轉換 sv...
Add a comment...

Post has attachment
DDNS on FreeBSD 10
最近種花電信在特價推 300M/100M ,於是弄了台 Brix GB-BXBT-1900  來玩,對於這種小板子就是無法抗拒。題外話,在台中丟的是  GB-BXi3H-4010  質感跟大小跟功能贏很多,當然比較貴一點點,不過有兩組 sodimm 跟 msata + HDD 還比較小台,唯一要注意的是沒有 D-SUB。 家裡用的就沒特別去申請固定 IP ,然後種花電信又老奸巨猾, 100M 以上的故意不給請 PPPOE 配發的偽固定 IP。沒關係,沒做啥大事業,用 no-ip 搞定,結果沒想到第二天就 GG...
Add a comment...

Post has shared content

Post has shared content
@InfoQ has an interesting interview with Mike Long on Modern C++ and the C++ Memory Model - http://spr.ly/6269Ib91

Mike specializes in coaching and mentoring teams to adopt modern technical practices in hostile legacy environments.
Photo
Add a comment...

Post has shared content
So I updated to Plasma 5.2 using the attached instructions and I've noticed a few oddities.
Firstly when I went to connect to my wireless the password dialogue wouldn't respond at all. It wouldn't take input from the keyboard nor would it close until I selected 'disconnect' from the connections menu on the taskbar.

Secondly when I try to change the wallpaper there are no thumbnails of prospective wallpapers. Just a dark grey default image icon.

And thirdly when I try to launch System Settings I get the following error message.

KDEInit could not launch 'systemsettings':
Could not open library '/usr/lib/i386-linux-gnu/libkdeinit5_systemsettings'.
Cannot load library /usr/lib/i386-linux-gnu/libkdeinit5_systemsettings: (/usr/lib/i386-linux-gnu/libkdeinit5_systemsettings.so: cannot open shared object file: No such file or directory)

It looks nice though :D

Oh, and fourthly. :) When I rebooted I got my old log in screen not the new one. 
Add a comment...
Wait while more posts are being loaded