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
If you want to clone an svn repository with git-svn but don't want it to push all the existing branches, here's what you should do. | |
* Clone with git-svn using the -T parameter to define your trunk path inside the svnrepo, at the same time instructing it to clone only the trunk: | |
git svn clone -T trunk http://example.com/PROJECT | |
* If instead of cloning trunk you just want to clone a certain branch, do the same thing but change the path given to -T: | |
git svn clone -T branches/somefeature http://example.com/PROJECT |
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
find . -name '*.cs' ! -name '*Editor*' -print0 | xargs -0 cat | grep -v '^$' | grep -v '^\s*\/\/.*$' |wc -l | |
find . -name '*.py' -print0 | xargs -0 cat | grep -v '^#' | wc -l |
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
brew install macvim --with-cscope --with-lua --override-system-vim |
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/sh | |
#更新同目录文件夹中的git | |
ls -d */ | while read F; | |
do | |
echo ${F}; | |
cd ${F}; | |
git pull --rebase && git submodule update --init --recursive; | |
cd -; | |
done |
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
# svn全部回滚 | |
function svn_revert_all { | |
svn st | grep "^M" | cut -b 9- | while read FILENAME; | |
do | |
FILENAME=`echo ${FILENAME} | sed 's/ /\\\ /g'` | |
svn revert ${FILENAME} | |
done | |
} |
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
# 删除svn没有进入版本的文件 | |
function svn_rm_unversioned { | |
svn st | grep "^?" | cut -b 9- | while read FILENAME; | |
do | |
FILENAME=`echo ${FILENAME} | sed 's/ /\\\ /g'` | |
rm -Rf ${FILENAME} | |
done | |
} |
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
using System; | |
namespace CodeRunner | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ | |
Console.WriteLine ("Hello World!"); | |
} |
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/sh | |
#view xcode uuid | |
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"os" | |
) | |
var target_path string |
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
/* | |
clear all empty folder or only contain .DS_Store Thunmbs.db | |
TODO:CHECK PARENT FOLDER | |
*/ | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" |
NewerOlder