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
[TestClass] | |
public class Salutes | |
{ | |
[TestMethod] | |
public void ItShouldSayHello() { } | |
[TestMethod, Tag("Important")] | |
public void ItShouldSayGoodBye() { } | |
[TestMethod, Tag("Ignore")] |
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
c:\temp>nuget install castle.windsor -version 2.1.1 | |
Attempting to resolve dependency 'Castle.Core (≥ 1.2.0)'. | |
Attempting to resolve dependency 'log4net (≥ 1.2.10)'. | |
Attempting to resolve dependency 'NLog (≥ 1.0.0.505)'. | |
Attempting to resolve dependency 'Castle.DynamicProxy (≥ 2.2.0)'. | |
Successfully installed 'log4net 1.2.11'. | |
Successfully installed 'NLog 1.0.0.505'. | |
Successfully installed 'Castle.Core 1.2.0'. | |
Successfully installed 'Castle.DynamicProxy 2.2.0'. | |
Successfully installed 'Castle.Windsor 2.1.1'. |
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
root=/tmp/svn-git-convert/ | |
rm -fr $root | |
mkdir $root | |
svnadmin create $root/foo.svn | |
svn co file://$root/foo.svn $root/foo | |
pushd $root/foo |
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_MAIN_ROOT=/tmp/git-backup/git.repos | |
GIT_BACKUP_ROOT=/tmp/git-backup/git.repos.bak | |
GIT_BACKUP_REMOTE=backup | |
###### | |
echo \>\>\> Backing up to $GIT_BACKUP_ROOT |
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
# Initial checkout | |
mkdir foo-project | |
cd foo-project | |
git svn init http://<path-to-svn>/trunk . | |
git config --get-regexp 'svn-remote.*' | |
git svn fetch # fetch all revisions from remote svn to local git | |
git svn rebase | |
# some helping aliases | |
alias gdif='git diff' |
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
SET ILDASM=C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\ildasm.exe | |
SET ILASM=C:\Windows\Microsoft.NET\Framework\v4.0.30319\ilasm.exe | |
mkdir $(TargetDir).net | |
"%ILDASM%" "$(TargetPath)" /out:"$(TargetDir)$(TargetName).il" | |
sed -i "s/7C EC 85 D7 BE A7 79 8E/B7 7A 5C 56 19 34 E0 89/" "$(TargetDir)$(TargetName).il" | |
sed -i "s/ \.ver 2:0:5:0/ .ver 2:0:0:0/" "$(TargetDir)$(TargetName).il" | |
del "$(TargetDir)sed??????" | |
"%ILASM%" "$(TargetDir)$(TargetName).il" /dll /resource:"$(TargetDir)$(TargetName).res" /out:"$(TargetDir).net\$(TargetName).dll" |
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
# 1. Download cygwin setup-x86.exe from http://www.cygwin.com/setup-x86.exe. | |
# 2. Install with wget package. | |
# 3. Run cygwin.bat with Administrator rights | |
cd /tmp | |
# wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg | |
wget https://github.com/Milly/apt-cyg/raw/master/apt-cyg --no-check-certificate | |
chmod +x apt-cyg | |
mv apt-cyg /bin/apt-cyg | |
apt-cyg update |
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
HG_PROMPT="%{$fg[cyan]%}ʜɢ%{$reset_color%}>" | |
function prompt_char { | |
[ $HG_CURRENT_ROOT ] && echo $HG_PROMPT && return | |
#hg root >/dev/null 2>/dev/null && echo "$HG_PROMPT>" && return | |
#git branch >/dev/null 2>/dev/null && echo '±' && return | |
echo '>' | |
} |
NewerOlder