[ Launch: Tributary inlet ] 9356938 by chriseyre2000
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
# Need to Run As Admin | |
# Set locations | |
$WinSATFile = "MyWinSATScore.xml" | |
$WinSATFolder = "$ENV:windir\performance\winsat\datastore" | |
# Change to Location | |
push-location $WinSATFolder | |
# If WinSATFile exists Delete it. | |
If (Test-Path $WinSATFile) |
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
// Packages: | |
//<?xml version="1.0" encoding="utf-8"?> | |
//<packages> | |
// <package id="Newtonsoft.Json" version="6.0.3" targetFramework="net45" /> | |
// <package id="StackExchange.Redis" version="1.0.371" targetFramework="net45" /> | |
//</packages> | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; |
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.Linq; | |
//install-package TweetinviAPI | |
using Tweetinvi; | |
using Tweetinvi.Core.Enum; | |
namespace ClassLibrary1 | |
{ | |
public class Class1 | |
{ |
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
### check-code.ps1 ### | |
# Run this in the Package Manager Console first - a solution must be open. | |
#Install-Package StudioShell.Provider | |
#The following should be run in the Package Manager Console in the form . \path\to\file\check-code.ps1 | out-gridview | |
#This is a great way of finding code entities where the filename does not match the elements name. | |
dir dte:/solution/codemodel -recurse | where Kind -Match 'vs.*(Class|Enum|Interface)' |select PSPath, Fullname, Name, Kind | % { |
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
Select-String 'shard number (?<num>\d{1,3})' outputlog.txt | %{$_.matches[0].Groups['num'].value} | sort -Unique | measure |
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 StackExchange.Profiling; | |
using System; | |
using System.Threading; | |
namespace ProfilerTest | |
{ | |
public class Class1 | |
{ | |
static void Main() | |
{ |
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
$pk = "0" + [DateTime]::UtcNow.AddHours(-1).Ticks | |
"PartitionKey gt '$pk' and Level lt 4" #This is the last hours warnings and errors |
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
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
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
$day = [DateTime]::Today.AddDays(1) | |
1..50 | % { $day.AddDays(7 * $_)} |