$ yum install -y unbound
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
| VM_BOX = "ubuntu/noble64" | |
| K8S_MASTER_CPUS = 2 | |
| K8S_MASTER_MEMORY = 4096 | |
| K8S_WORKER_NODES = 2 | |
| K8S_WORKER_CPUS = 2 | |
| K8S_WORKER_MEMORY = 2048 | |
| IP_PREFIX = "10.61.0" | |
| Vagrant.configure("2") do |config| | |
| config.ssh.insert_key = false |
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
| function tsh-x() { | |
| # 1. List local profiles by looking at the keys directory and select via fzf | |
| local selected_profile=$(ls -d ~/.tsh/keys/*/ 2>/dev/null | xargs -n 1 basename | fzf --height 15% --reverse --header="📡 Select Teleport Cluster") | |
| # Exit if no selection is made (e.g., if ESC is pressed) | |
| if [ -z "$selected_profile" ]; then | |
| echo "No cluster selected." | |
| return | |
| fi |
$ 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__) |
NewerOlder