Skip to content

Instantly share code, notes, and snippets.

Avatar

Bill Wilder codingoutloud

View GitHub Profile
@codingoutloud
codingoutloud / rewrite-to-https.web.config
Created Sep 6, 2013
A rewrite rule for ASP.NET that will redirect HTTP requests to be HTTPS requests. Credit: Maarten Balliauw ( this guy: http://blog.maartenballiauw.be ) showed me how to do it.
View rewrite-to-https.web.config
<system.webServer>
<rewrite>
<rules>
<rule name="Force HTTPS" enabled="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
@KitWallace
KitWallace / ssml.py
Created Aug 17, 2012
ssml functions
View ssml.py
def escape_XML(str) :
str.replace('"',"\042")
str.replace('&',"\046")
str.replace("'","\047")
str.replace('<',"\074")
str.replace('>',"\076")
return str
def ssml_break(msec):
return '<break time="'+str(msec)+'"msec/>'
@codingoutloud
codingoutloud / .gitignore
Last active Oct 9, 2016
Git Ignore for ASP.NET MVC / Windows Azure development
View .gitignore
# .gitignore for ASP.NET MVC / Windows Azure development
# Original file: https://gist.github.com/3318347 by @codingoutloud
## Github doc on ignoring files: https://help.github.com/articles/ignoring-files
## The man page for .gitignore (referenced by github): http://man.cx/gitignore
## Of possible interest (can be complex): https://github.com/github/gitignore
# Troubleshooting
# 1. If you add a .gitignore file to an existing repo (or significantly change one), you may want
# to force it to act as though the new/updated .gitignore was in force the whole time.
## http://stackoverflow.com/questions/1139762/gitignore-file-not-ignoring
You can’t perform that action at this time.