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
:: Name: MsDepSvc.Port.cmd | |
:: Purpose: Modifies the TCP/IP port that the Web Deployment Agent Service | |
:: (MsDepSvc) listens on. Tested on Win7 Enterprise 32-bit. | |
:: Author: [email protected] | |
:: Revision: January 2013 | |
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS | |
SETLOCAL ENABLEDELAYEDEXPANSION |
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
#!/bin/bash | |
# query the root of the repo because git status prints | |
# relative paths within the repo | |
if ! pushd "`git rev-parse --show-toplevel`" >/dev/null | |
then | |
echo "git rev-parse --show-toplevel failed to return the root dir of the repo" | |
exit 1 | |
else | |
gitroot=`pwd` |
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
#!/bin/bash | |
stash() { | |
# check if we have uncommited changes to stash | |
git status --porcelain | grep "^." >/dev/null; | |
if [ $? -eq 0 ] | |
then | |
if git stash save -u "git-update on `date`"; | |
then |
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
:: Name: Windows Startup.cmd | |
:: Purpose: A logon script to SUBST drive letters, wipe %TEMP%, and run defrag | |
:: Author: [email protected] | |
:: Revision: April 2012 | |
@ECHO OFF | |
SETLOCAL | |
:: map local folders to drive letters | |
CALL :MAPDRIVE P: "%USERPROFILE%\Documents\Visual Studio 2010\Projects" |
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
:: Name: Startup.Cmd.cmd | |
:: Purpose: Initializes a Windows command prompt shell | |
:: Author: [email protected] | |
:: Revision: April 2012 | |
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS | |
:: self-install this script, but, don't force an overwrite if an auto run script is already configured | |
IF /I "%~1"=="/install" ( |
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
:: Name: TestData.cmd | |
:: Purpose: Convenience script to use SQL Server bcp.exe to import or export | |
:: sample data as binary files in ~/src/Database/TestData | |
:: Author: Steve Jansen | |
:: Revision: December 2012 | |
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS | |
:: default values |
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
:: Name: yeoman.cmd | |
:: Purpose: Convenience script to run yeoman on windows | |
:: Author: Steve Jansen | |
:: Revision: January 2013 | |
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION | |
SET /A ERR=0 | |
PUSHD %~dps0\.. > NUL |
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
<Script language="C#" runat="server"> | |
void Application_EndRequest() { | |
// rewrite HTTP 401s to HTTP 403s if the user is authenticated using | |
// integrated Windows auth with impersonation, but, | |
// the user lacks permissions to the requested URL | |
if (Context.User != null && | |
Context.User.Identity != null && | |
Context.User.Identity.IsAuthenticated && | |
Context.User is System.Security.Principal.WindowsPrincipal && | |
Context.Response.StatusCode == 401) |
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
' Excel macro to export all VBA source code in this project to text files for proper source control versioning | |
' Requires enabling the Excel setting in Options/Trust Center/Trust Center Settings/Macro Settings/Trust access to the VBA project object model | |
Public Sub ExportVisualBasicCode() | |
Const Module = 1 | |
Const ClassModule = 2 | |
Const Form = 3 | |
Const Document = 100 | |
Const Padding = 24 | |
Dim VBComponent As Object |
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
using System; | |
using System.IO; | |
using System.Reflection; | |
using Awesomium.Core; | |
namespace MyApp | |
{ | |
/// <summary> | |
/// A custom implementation of the `Awesomium.Windows.Forms.ResourceDataSourceProvider` functionality. | |
/// This interceptor supports using the standard `http://` protocol scheme instead of Awesomium's use of the |
OlderNewer