Skip to content

Instantly share code, notes, and snippets.

What a mess I've made

Stephen Jennings jennings

What a mess I've made
View GitHub Profile
jennings / web.config
Created Mar 11, 2014
Enable WCF message logging
View web.config
<source name="System.ServiceModel"
<add name="messages"
initializeData="c:\inetpub\logs\messages.svclog" />
View Boxstarter.ps1
Run this automatically via this URL:
Set-WindowsExplorerOptions -EnableShowFileExtensions
Update-ExecutionPolicy RemoteSigned
# General Utilities
jennings /
Created Jun 4, 2014
How to use a real certificate with IIS Express

Generate a certificate and store it in the local computer's certificate store.

Then, use netsh to assign the certificate to a port and application.

netsh http delete sslcert ipport=<hostname>:<port>
netsh http add sslcert ipport=<hostname>:<port> certhash=<certificate-thumbprint> appid=<appid>

For example:

netsh http delete sslcert ipport=
View gist:f4b367b8f8cc3ce7eabf
public interface IService2
void setSalesItems(setSalesItems obj);
void setSalesItemsV3(setSalesItemsV3 obj);
[DataContract(Namespace = "")]
jennings /
Last active Sep 27, 2015
Miscellaneous Git commands

Rebase the changes branch-base..branch-head onto the master branch

git rebase --onto master branch-base branch-head

Cherry-pick the changes in B since it diverged from A onto the current branch

git checkout base-branch
git cherry-pick A..B
jennings / UpdateQuery.sql
Created Jul 31, 2012
Composing an update query
View UpdateQuery.sql
--- While composing an update query, it's useful to use
--- a SELECT statement first to make sure you're going to
--- update the correct rows. Formatting the query in
--- this manner lets you alternate between SELECT and UPDATE
--- without commenting and uncommenting parts of the query.
-- UPDATE TableToUpdate --- Use ALT + Drag to highlight this update
jennings / Program.cs
Last active Dec 5, 2015
A sample program for Stack Overflow question 34111695 (
View Program.cs
// See:
namespace StackOverflow34111695
using System;
using System.IO;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
jennings /
Last active Dec 9, 2015
Various OS X setup commands
# Lots of these are from
# Allow key repeat instead of pop-up accent selector in OS X 10.8
defaults write -g ApplePressAndHoldEnabled -bool false
# Always show scrollbars
defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
# Show the ~/Library folder
chflags nohidden ~/Library
jennings / UpdateSysinternals.cmd
Created Jan 12, 2013
Automatically update a folder full of Sysinternals tools
View UpdateSysinternals.cmd
@echo off
pushd \\\tools
xcopy * %~dp0 /Y /D
You can’t perform that action at this time.