Skip to content

Instantly share code, notes, and snippets.

View magicianzrh's full-sized avatar

magicianzrh magicianzrh

  • Shanghai,Hangzhou
View GitHub Profile
@magicianzrh
magicianzrh / gist:acae5c9b691dc0187b85f86b39c5982f
Created October 31, 2018 09:59 — forked from trodrigues/gist:1023167
Checkout only certain branches with git-svn
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
@magicianzrh
magicianzrh / install-macvim-with-lua.sh
Created October 9, 2015 03:43 — forked from lodestone/install-macvim-with-lua.sh
brew install macvim with lua
brew install macvim --with-cscope --with-lua --override-system-vim
using System;
namespace CodeRunner
{
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Hello World!");
}

To run this, you can try:

curl -ks https://gist.github.com/nicerobot/2697848/raw/uninstall-node.sh | bash

I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.

Alternatively,

curl -ksO https://gist.github.com/nicerobot/2697848/raw/uninstall-node.sh

chmod +x ./uninstall-node.sh