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
#------------------------------------------------------------- | |
# Git - My bash profile (aliases) | |
#------------------------------------------------------------- | |
#The Basics | |
alias status='git status' | |
alias add='git add -A .' | |
alias commit='git commit' | |
alias help='git help' |
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
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) | |
# Load posh-git module from current directory | |
Import-Module .\posh-git | |
$GitPromptSettings.EnableFileStatus = $false | |
# If module is installed in a default location ($env:PSModulePath), | |
# use this instead (see about_Modules for more information): | |
# Import-Module posh-git |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<targets> | |
<target name="console" xsi:type="Console" /> | |
<target name="file" xsi:type="File" fileName="${basedir}/log.txt" /> | |
<target name="email" xsi:type="Mail" | |
smtpServer="smtp.DomainName.com" | |
smtpAuthentication="Basic" |
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
#------------------------------------------------------------- | |
# git repo creation | |
#------------------------------------------------------------- | |
#Create new 'empty' repo in the current folder. | |
git init | |
#Create new 'empty' repo with no working folder component. | |
# - Suitable for a central repo model | |
git init --bare |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<targets> | |
<target name="InfoFile" xsi:type="File" fileName="${basedir}/Info.txt" /> | |
<target name="OtherFile" xsi:type="File" fileName="${basedir}/Other.txt" /> | |
</targets> | |
<rules> | |
<logger name="*" levels="Info" writeTo="InfoFile" /> |
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
#------------------------------------------------------------- | |
# Git Remotes (Adding and removing) | |
#------------------------------------------------------------- | |
#Add a file share remote | |
git remote add <remoteName> //MyServer/SomeShare/RestOfPath[.git] | |
#Add a bitbucket remote | |
git remote add <remoteName> git@bitbucket.org:[username]/[RepoName].git |
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
#------------------------------------------------------------- | |
# Git - Pushing and Pulling | |
#------------------------------------------------------------- | |
#fetch all changes from a remote (Does not merge any changes with your local repo) | |
git fetch <RemoteName> | |
# Pull specific branch from a named remote | |
git pull <RemoteName> <Branch> |
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
' Ok now pay attention because this is already confusing enough. | |
' Have you already had your coffee? | |
' No? Well go and get one. You're going to need it... |
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
public interface IMyComplete | |
{ | |
// generated gubbins | |
void DoWork(); | |
//manual gubbins | |
void DoWorkImpl(); | |
} | |
// generated class |
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
Public Interface ISomeInterface | |
Sub Method1() | |
Sub Method2() | |
Sub Method3() | |
End Interface | |
Public MustInherit Class GrandParentExplicit | |
Implements ISomeInterface | |
Public Sub Method1() Implements ISomeInterface.Method1 |
OlderNewer