This file contains 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
private string GetDocumentContents(System.Web.HttpRequestBase Request) | |
{ | |
string documentContents; | |
using (Stream receiveStream = Request.InputStream) | |
{ | |
using (StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8)) | |
{ | |
documentContents = readStream.ReadToEnd(); | |
} | |
} |
This file contains 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
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
This file contains 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
# The general framwork of my script is based on fragments from all over the Internet, including | |
# the following website. Since there is no clear owner of this information and it was contributed | |
# by many people, I am assuming that an MIT license is appropriate. | |
# https://fluentbytes.com/deploying-asp-net-4-5-to-docker-on-windows/ | |
# docker run -p 8088:80 --restart always --name aspnetdocker -dit abitofhelp/aspnetdocker | |
# Now we can browse to the website. Be aware that you can only reach the container from the outside, | |
# so if you would browse to localhost, which results in the #127.0.0.0 you will not see any results. | |
# You need to address your machine on its actual hostname or outside IP address. |