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
<rewrite> | |
<rules> | |
<rule name="Remove .asp Extension" stopProcessing="true"> | |
<match url="^(.*?)(\.asp)$" /> | |
<action type="Redirect" url="{ToLower:{R:1}}" appendQueryString="true" redirectType="Permanent" /> | |
</rule> | |
<rule name="Rewrite to .asp" stopProcessing="true"> | |
<match url="^(.*)$" /> | |
<conditions logicalGrouping="MatchAll"> |
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
VS2012+ have these featured built in | |
msbuild ProjectFile.csproj /p:Configuration=Release ^ | |
/p:Platform=AnyCPU ^ | |
/t:WebPublish ^ | |
/p:WebPublishMethod=FileSystem ^ | |
/p:DeleteExistingFiles=True ^ | |
/p:publishUrl=c:\output | |
Or if you are building the solution file: |
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
<!-- outbound rules to modify HTML --> | |
<outboundRules> | |
<rule name="Remove protocol under HTTPS" enabled="true"> | |
<match filterByTags="A, Img, Link" pattern="http://(.*)" /> | |
<action type="Rewrite" value="//{R:1}" /> | |
</rule> | |
</outboundRules> |
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
#!/usr/bin/python | |
import os | |
import urllib.request | |
import feedparser | |
import math | |
import sys | |
def tofile(title): |
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
#!/usr/bin/python | |
import os, urllib, feedparser, math, sys | |
def handleunicode(title): | |
return title.encode(encoding='ascii',errors='replace') | |
def tofile(title): | |
title = title.replace("?", "-").replace("$", "-").replace("/", "-").replace(":", "-").replace(",", "-").replace("<", "").replace(">","") |
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
#!/usr/bin/python | |
import os, urllib, feedparser, math, sys | |
def tofile(title): | |
title = title.replace("?", "-").replace("$", "-").replace("/", "-").replace(":", "-").replace(",", "-").replace("<", "").replace(">","") | |
return title + ".mp4" | |
def getsessions(): |