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
| # Make sure to create folder /www and grant write access to nginx and yourself | |
| $DOMAIN="your domain" | |
| # Create file structure to serve static file with challenge | |
| sudo mkdir /www | |
| sudo mkdir /www/.well-known/ | |
| sudo mkdir /www/.well-known/acme-challenge | |
| sudo chown nginx /www/.well-known/acme-challenge | |
| #As example grant group write permission (e.g. you want www to belong to nginx user and anyone in nginx group) do: |
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
| import urllib.request | |
| import concurrent.futures | |
| lowerBound = -1 | |
| upperBound = -1 | |
| lowerBound = int(input("von :?")) | |
| upperBound = int(input("bis :?")) | |
| # Retrieve a single page and report the url and contents |
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
| import urllib.request | |
| def getSolutionFor(i): | |
| f = urllib.request.urlopen('http://www.entwickler-ecke.de/files/eeags2012paranuss.php?q=' + str(i)) | |
| s = str(f.read()) | |
| return s.split('\'')[1] | |
| def saveSolutionsToFile(lowerBound, upperBound, fileName): | |
| pass |
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
| import urllib.request | |
| def getSolutionFor(i): | |
| f = urllib.request.urlopen('http://www.entwickler-ecke.de/files/eeags2012paranuss.php?q=' + str(i)) | |
| s = str(f.read()) | |
| return s.split('\'')[1] | |
| def saveSolutionsToFile(lowerBound, upperBound, fileName): | |
| pass |