remove unused files

This commit is contained in:
Son NK 2019-12-18 18:37:44 +02:00
parent 207b58ac67
commit 47923f3c62
4 changed files with 1 additions and 36 deletions

View File

@ -1,5 +1,5 @@
jobs:
- name: downgrade_expired_plan
- name: SimpleLogin cronjob
command: python /code/cron.py
shell: /bin/bash
schedule: "0 0 * * *"

View File

View File

@ -1,17 +0,0 @@
"""
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
"""
from jwcrypto import jwk, jws, jwt
with open("jwtRS256.key", "rb") as f:
key = jwk.JWK.from_pem(f.read())
Token = jwt.JWT(header={"alg": "RS256"}, claims={"info": "I'm a signed token"})
Token.make_signed_token(key)
print(Token.serialize())
# verify
jwt.JWT(key=key, jwt=Token.serialize())

View File

@ -1,18 +0,0 @@
[tool.black]
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| migrations # migrations/ is generated by alembic
)/
)
'''