This file contains 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
namespace Powerscribe.Client | |
{ | |
public enum PowerscribeStatus | |
{ | |
/// <summary> | |
/// Specifies that a report was created and then discarded. | |
/// </summary> | |
Discarded = -1, | |
/// <summary> |
This file contains 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 static void KillProcesses(string processName, bool currentUserOnly, Process excludeMe = null) | |
{ | |
var processes = new ManagementObjectSearcher(string.Format("SELECT * FROM Win32_Process WHERE Name='{0}'", processName)).Get(); | |
foreach (var o in processes) | |
{ | |
var process = (ManagementObject)o; | |
var processId = int.Parse(process["ProcessId"].ToString()); | |
if (process["ExecutablePath"] == null) continue; | |
if (excludeMe != null && processId == excludeMe.Id) continue; | |
var ownerInfo = new object[2]; |
This file contains 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; | |
using System.Linq; | |
using DicomObjects; | |
using DicomObjects.Enums; | |
namespace Dicom | |
{ | |
public class DicomQueryManager : IDicomQueryManager | |
{ | |
public string CurrentServer { get; set; } |
This file contains 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
Write "Installing NServiceBus License" | |
$content = [xml]"<?xml version=`"1.0`" encoding=`"utf-8`"?> | |
<license id=`"MyId`" expiration=`"2114-06-11T04:13:03.9080905`" type=`"Standard`" ProductName=`"Royalty Free Platform License`" WorkerThreads=`"Max`" LicenseVersion=`"5.0`" MaxMessageThroughputPerSecond=`"Max`" AllowedNumberOfWorkerNodes=`"Max`" UpgradeProtectionExpiration=`"2015-06-11`" Applications=`"ServiceInsight;NServiceBus;ServicePulse;ServiceMatrix;ServiceControl;`" LicenseType=`"Royalty Free Platform License`" Edition=`"Enterprise `" Quantity=`"2`" Perpetual=`"`"> | |
<name>MyName</name> | |
<Signature xmlns=`"http://www.w3.org/2000/09/xmldsig#`"> | |
<SignedInfo> | |
<CanonicalizationMethod Algorithm=`"http://www.w3.org/TR/2001/REC-xml-c14n-20010315`" /> | |
<SignatureMethod Algorithm=`"http://www.w3.org/2000/09/xmldsig#rsa-sha1`" /> | |
<Reference URI=`"`"> |
This file contains 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 ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
SET NOCOUNT ON | |
GO | |
IF (OBJECT_ID('RebuildIndexes') IS NOT NULL) | |
DROP PROCEDURE RebuildIndexes | |
GO |
This file contains 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
3_website push | |
Deploying _site/* to blog.rangerrom.com | |
Calculating diff //Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/openssl/buffering.rb:174:in `sysread_nonblock': end of file reached (EOFError) | |
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/openssl/buffering.rb:174:in `read_nonblock' | |
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill' | |
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil' | |
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/protocol.rb:132:in `readline' | |
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:2563:in `read_status_line' | |
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:2552:in `read_new' | |
from /Users/romikoderbynew/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:1320:in `block in transport_request' |
This file contains 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.Security.Permissions; | |
using System.Web.Mvc; | |
using MyStory.Logic.Security; | |
using MyStory.Web.Models; | |
using MyStory.Web.Models.Clients; | |
namespace MyStory.Web.Areas.Agency.Controllers | |
{ | |
public partial class ClientController | |
{ |
This file contains 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
private void DeleteLatestDuplicateReferrals(IList<Node<Referral>> duplicateReferrals) | |
{ | |
var theReferralsToDelete = from r in duplicateReferrals | |
group r by r.Data.UniqueId | |
into g | |
where g.Count() > 1 | |
select new | |
{ | |
UniqueId = g.Key, | |
DateIntiated = (from r in g select r.Data.DateInitiatedUtc).Max(), |
This file contains 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"?> | |
<sd:ServiceDefinition name="Neo4j.Azure.Server" | |
xmlns:sd="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" | |
xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | |
<sd:WebRole name="Web" xdt:Locator="Match(name)"> | |
<sd:Startup> | |
<sd:Task commandLine="Startup.cmd" xdt:Locator="Match(commandLine)"> | |
<sd:Environment> | |
<sd:Variable xdt:Transform="Replace" xdt:Locator="Match(name)" name="MYSTORYENV" value="PERF"/> | |
</sd:Environment> |
This file contains 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
<WebRole name="Web" vmsize="Medium"> | |
<Runtime executionContext="elevated" /> | |
<Startup> | |
<Task commandLine="Startup.cmd" executionContext="elevated" taskType="background"> | |
<Environment> | |
<Variable name="EMULATED"> | |
<RoleInstanceValue xpath="/RoleEnvironment/Deployment/@emulated" /> | |
</Variable> | |
</Environment> | |
</Task> |