$ git clone <repo>
$ cd <repo>
$ brew install git-filter-repo
$ git filter-repo --replace-text <(echo 'kezzap==>arkadasim')
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
# In 2019 | |
import os | |
import json | |
import sys | |
import time | |
import copy | |
# Import requirement python packages | |
file_path = os.path.dirname(__file__) | |
module_path = os.path.join(file_path, "env") |
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
# In 2019 | |
import os | |
import json | |
import time | |
import boto3 | |
TOPIC_NAME = os.getenv("TOPIC_NAME", "FatihMail") | |
SLEEP_TIME = os.getenv("SLEEP_TIME", 300) |
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
import json | |
from flask import Flask, request | |
from werkzeug.utils import secure_filename | |
import pytesseract | |
app = Flask(__name__) |
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
# Fork: https://pythonbasics.org/flask-upload-file/ | |
# Issues | |
# - Empty request file object | |
from flask import Flask, render_template, request | |
from werkzeug import secure_filename | |
app = Flask(__name__) | |
@app.route('/upload') | |
def upload_file(): |
I hereby claim:
- I am f9n on github.
- I am f9n (https://keybase.io/f9n) on keybase.
- I have a public key ASAUshBw7buKzWZg798cVwBIcYUcfkSVpdKbi6zh_EXdjwo
To claim this, I am signing this object:
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
apiVersion: config.gatekeeper.sh/v1alpha1 | |
kind: Config | |
metadata: | |
name: config | |
namespace: "gatekeeper-system" | |
spec: | |
match: | |
- excludedNamespaces: ["kube-system", "gatekeeper-system"] | |
processes: ["*"] |
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
apiVersion: constraints.gatekeeper.sh/v1beta1 | |
kind: K8sPSPPrivilegedContainer | |
metadata: | |
name: psp-privileged-container | |
spec: | |
match: | |
kinds: | |
- apiGroups: [""] | |
kinds: ["Pod"] |
Credits
- https://jpweber.io/blog/monitoring-external-etcd-cluster-with-prometheus-operator/
- https://github.com/xetys/rancher-prometheus/blob/master/docs/Monitoring%20external%20etcd.md
$ kubectl create secret generic etcd-certs \
-n monitoring \
NewerOlder