Skip to content

Instantly share code, notes, and snippets.

@lhk
lhk / acme.sh
Created October 29, 2024 15:27 — forked from DoumanAsh/acme.sh
Simple nginx config to hide redis behind TLS proxy (includes minimal configuration to run acme.sh)
# 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:
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
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
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