Skip to content

Instantly share code, notes, and snippets.

View dustinchilson's full-sized avatar

Dustin Chilson dustinchilson

View GitHub Profile
@dustinchilson
dustinchilson / UpdateIISExpressSSLForChome.ps1
Created April 11, 2018 19:48 — forked from blowdart/UpdateIISExpressSSLForChome.ps1
IIS Express certs (for now) don't contain SAN strings. This makes Chrome unhappy. Make Chrome happy again with a new organic, artisanal, gluten free HTTPS certificate.
# Create a new self signed HTTPS Certificate for IIS Express
# Crafted with all organic, GMO, gluten free ingreditations
# with an artisinal SAN to make Chrome 58 onwards happy.
#
# See https://bugs.chromium.org/p/chromium/issues/detail?id=308330
#
# Run this at an administrative PowerShell prompt.
#
# You will be prompted to trust a new certificate via a windows dialog.
# Click yes otherwise Visual Studio will not be able to determine your
PS> time { ping -n 1 google.com } -Samples 10 -Silent
..........
Avg: 62.1674ms
Min: 56.9945ms
Max: 87.9602ms
PS> time { ping -n 1 google.com } -Samples 10 -Silent -Long
..........
Avg: 00:00:00.0612480
Min: 00:00:00.0572167
@dustinchilson
dustinchilson / git-tfs-branch.sh
Created September 26, 2012 16:10 — forked from pmiossec/git-tfs-branch.sh
Create a branch with git-tfs
#script to create a branch in git-tfs
if [ $# -ne 3 ] ; then
echo "parameters : ServerUrl Repository localBranch"
echo 'ex : "http://myTfsServer:8080/tfs/Repository" "$/MyProject/MyTFSBranch" "myBranch"'
exit -1
fi
#find TFS first commit of the branch
let first_commit=`tf history $2 | grep "^[0-9]" | awk '{print $1}'`
#Take the parent to have the root commit
@dustinchilson
dustinchilson / .rebase.sh and .finishrebase.sh
Created January 19, 2012 19:45 — forked from jmeridth/.rebase.sh and .finishrebase.sh
Modified bash scripts to speed up rebasing for use with git-tfs
# REBASE
#!/bin/bash
if [ $# -eq 1 ]
then
git checkout master && git tfs fetch && git rebase HEAD && git checkout $1 && git rebase -i master
else
echo 'Please provide a feature branch: ./rebase.sh feature1324'
fi