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
kind: Deployment | |
apiVersion: extensions/v1beta1 | |
metadata: | |
name: es-kopf | |
namespace: default | |
labels: | |
yp-app: es-cerebro | |
spec: | |
replicas: 1 | |
selector: |
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 base64 | |
import uuid | |
__author__ = '[email protected]' | |
def enc_uuid(uid): | |
uuid_uid = uuid.UUID(uid) | |
uuid_uid_bytes = uuid_uid.bytes | |
uuid_uid_bytes_64 = base64.urlsafe_b64encode(uuid_uid_bytes) |
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
from requests.packages.urllib3.util import parse_url | |
import hashlib | |
import hmac | |
import base64 | |
""" Sign a URL using the client_secret """ | |
__author__ = '[email protected]' | |
def sign_url(input_url=None, client_id=None, client_secret=None): | |
""" Sign a request URL with a Crypto Key. |
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
### Keybase proof | |
I hereby claim: | |
* I am christ0pher on github. | |
* I am pelzmorph (https://keybase.io/pelzmorph) on keybase. | |
* I have a public key whose fingerprint is E4FF 0C3E 8306 AB87 2B11 D309 33E7 C5C3 C440 23CA | |
To claim this, I am signing this object: |
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
### Keybase proof | |
I hereby claim: | |
* I am christ0pher on github. | |
* I am pelzmorph (https://keybase.io/pelzmorph) on keybase. | |
* I have a public key whose fingerprint is B2D5 B9DF 824D 8887 9645 9E0E 1B61 AC99 D11A 725E | |
To claim this, I am signing this object: |