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.Diagnostics; | |
using System.Linq; | |
using Castle.DynamicProxy; | |
namespace SignalInterceptor | |
{ | |
public class CallLogger : IInterceptor | |
{ | |
public void Intercept(IInvocation invocation) |
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
# Detects whether a specific package is already installed | |
function Test-PackageInstalled | |
{ | |
param([Parameter(Mandatory=$true)][string] $packageName) | |
$found = Get-ChildItem -Path "$env:ChocolateyInstall\lib" -Directory -Filter "$packageName.*" | Measure-Object | Select-Object -ExpandProperty Count | |
return $found -ne 0 | |
} | |
Test-PackageInstalled nuget.commandline |
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
# Base explorer features | |
$Boxstarter.RebootOk = $true | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-MicrosoftUpdate | |
Update-ExecutionPolicy -Policy RemoteSigned | |
# Base updates | |
Install-WindowsUpdate -GetUpdatesFromMS -AcceptEula | |
# Installation platforms |
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
# Run this as administrator | |
Import-Module ADSync | |
Start-ADSyncSyncCycle -PolicyType Delta |
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.Reflection; | |
using System.Runtime.InteropServices; | |
namespace ToolboxIntegration | |
{ | |
class InstallApp | |
{ | |
protected const string DTE_PROG_ID = "VisualStudio.DTE.7.1"; |
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
<%@ CodeTemplate Language="C#" TargetLanguage="C#" Description="Generates a strongly typed collection based on a generic KeyedCollection." %> | |
<%@ Property Name="Accessibility" Type="System.String" Optional="True" Default="public" Category="Options" Description="The accessibility of the collection class." %> | |
<%@ Property Name="ClassName" Type="System.String" Optional="True" Category="Context" Description="The name of the collection class." %> | |
<%@ Property Name="TargetNamespace" Type="System.String" Optional="True" Category="Namespaces" Description="The namespace of the collection class." %> | |
<%@ Property Name="KeyPropertyName" Type="System.String" Category="Context" Description="The name of the property on each collection member that returns the key value." %> | |
<%@ Property Name="KeyType" Type="System.String" Category="Context" Description="The key type of the collection." %> | |
<%@ Property Name="KeyNamespace" Type="System.String" Optional="True" Category="Namespaces" Description="The namespace of the key type." % |
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
<%@ Page Language="C#" Debug="true" EnableTheming="false" Title="Subtext Admin - Database Maintenance" MasterPageFile="~/aspx/Admin/WebUI/AdminPageTemplate.Master" AutoEventWireup="True" Inherits="Subtext.Web.Admin.Pages.AdminPage" %> | |
<%@ Import Namespace="System" %> | |
<%@ Import Namespace="System.Data" %> | |
<%@ Import Namespace="System.Data.SqlClient" %> | |
<%@ Import Namespace="System.Web" %> | |
<%@ Import Namespace="Microsoft.ApplicationBlocks.Data" %> | |
<%@ Import Namespace="Subtext.Framework.Providers" %> | |
<script runat="server"> | |
// Timeout has to be longer than the default because these ops can take a while. |
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
USE [TimeSnapperTaskDb] | |
GO | |
EXEC sys.sp_dropextendedproperty @name=N'MS_DiagramPaneCount' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'task_list' | |
GO | |
EXEC sys.sp_dropextendedproperty @name=N'MS_DiagramPane1' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'task_list' | |
GO | |
ALTER TABLE [dbo].[task] DROP CONSTRAINT [FK_task_project] | |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Office\15.0\Lync] | |
"EnableSIPHighSecurityMode"=dword:00000000 | |
"CustomStateURL"="file:///C:/Users/tillig/OneDrive/Settings/Lync/presence.xml" | |
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" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:template match="/"> | |
<table border="1"> | |
<tr> | |
<th>Track ID</th> | |
<th>Name</th> | |
<th>Artist</th> | |
<th>Album</th> |
OlderNewer