Skip to content

Instantly share code, notes, and snippets.

$MyPwd = ConvertTo-SecureString -String "your password here" -Force –AsPlainText
$AzureCert = Get-ChildItem -Path Cert:\CurrentUser\My | where {$_.Subject -match "your certificate’s name here”}
Export-PfxCertificate -FilePath C:\your certificate’s name here.pfx -Password $MyPwd -Cert $AzureCert
@AliceWaddicor
AliceWaddicor / makecertcommand
Created April 1, 2015 08:01
MakeCert command
"C:\Program Files (x86)\Windows Kits\8.1\bin\x86\makecert.exe" -sky exchange -r -n "CN=your certificate's name" -pe -a sha256 -len 2048 -ss My "your certificate's name.cer"
git config --global merge.tool semanticmerge
git config --global mergetool.semanticmerge.cmd "C:/Users/Alice/AppData/Local/PlasticSCM4/semanticmerge/semanticmergetool.exe -d \"$LOCAL\" -s \"$REMOTE\" -b \"$BASE\" -r \"$MERGED\""
git config --global mergetool.semanticmerge.trustExitCode true
git config --global mergetool.prompt false
git config --global mergetool.keepBackup false
[merge]
tool = semanticmerge
[mergetool]
prompt = false
keepBackup = false
[mergetool "semanticmerge"]
cmd = C:/Users/Alice/AppData/Local/PlasticSCM4/semanticmerge/semanticmergetool.exe -d \"$LOCAL\" -s \"$REMOTE\" -b \"$BASE\" -r \"$MERGED\"
trustExitCode = true
[mergetool]
prompt = false
keepBackup = false
[mergetool "semanticmerge"]
cmd = C:/Users/Alice/AppData/Local/PlasticSCM4/semanticmerge/semanticmergetool.exe -d \"$LOCAL\" -s \"$REMOTE\" -b \"$BASE\" -r \"$MERGED\"
trustExitCode = true
[merge]
tool = semanticmerge
-s ${rightFile} -d ${leftFile} -b ${baseFile} -r ${mergedFile}
@AliceWaddicor
AliceWaddicor / UpdateLight
Created July 21, 2014 08:56
Jack's update light method
private void UpdateLight()
{
var buildids = teamcitydataservice.GetBuildIds("BuildConfigIds.txt");
var lastBuilds = teamcitydataservice.GetTeamCityBuilds(buildids);
if (lastBuilds.All(build => build.Status == BuildStatus.SUCCESS.ToString()))
{
lightController.Light(BusylightColor.Green);
}
@AliceWaddicor
AliceWaddicor / BooleanTest
Last active August 29, 2015 14:04
Jack's boolean test
Boolean a = false;
Boolean b = true;
if (!a)
{
Console.WriteLine("a is false");
}
if (!b)
{
Console.WriteLine("b is false");