$ yum install -y unbound$ sudo pacman -S qemu # For Arch LinuxDownload Win10 "manually" - https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewadvanced
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
| #!/bin/sh | |
| # Credits: | |
| # https://www.jamf.com/jamf-nation/discussions/28033/uninstall-trend-micro-security-script | |
| # Copyright: EVRY | |
| # Filename: UninstallTrend.sh | |
| # Requires: - | |
| # Purpose: Removes Trend Micro Security | |
| # Contact: Anders Holmdahl <anders.holmdahl@evry.com> | |
| # Mod history: 2018-01-31 |
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
| #!/bin/sh | |
| LIMIT=$1 | |
| redis-cli keys "*" | head -n $LIMIT > keys.txt | |
| cat keys.txt | xargs -n 1 -L 1 redis-cli ttl > ttl.txt | |
| paste -d " " keys.txt ttl.txt | grep .*-1$ | cut -d " " -f 1 | xargs redis-cli del |
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
| # 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 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
| # 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 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 json | |
| from flask import Flask, request | |
| from werkzeug.utils import secure_filename | |
| import pytesseract | |
| app = Flask(__name__) |
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
| # 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(): |
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
| #!/usr/bin/env bash | |
| # export CONSUL_HTTP_ADDR=http://127.0.0.1:8500 | |
| # export CONSUL_HTTP_TOKEN=... | |
| service=$1 | |
| filter_expression=$2 | |
| mode=${3:-'health'} | |
| if [ -z $CONSUL_HTTP_ADDR ]; then |
NewerOlder