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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD51xmKoZUs7kgI6VDaWAs+Y3Yui/pPQR56fj0AKTtLhrNZI7hk+aA40UA+va6vkjZ+HE1bv/69voStKV4aQGCTRJPVBxWb4ep/OOrkMhHcY9sJ65cyarSkJfs0tX70AjQazXQzEgbfGCzeNd6wUcfAAlHAq63N1OPnX1hOymvbXk2ucoRV08CzoDXCWoFiwPyZ6kf9CPdFZ8u6xsmPRO/qUXKovwZKJmHRhQ/FYxNWMoOfgNYuB+j3t2n755Fq/kon4o6sPH+cWCN/sYzhmPA57C05hwDikayOYVRIjE6dpEMBAi2nypUKq3WtONW0NEAsAuoSuqakSYXdL7u/oB5V2AVhzZx9LQf4zDXm0pmopS9sUX3oB2O9dMtPZygzQp/2fy2BOTCiapLbGi1ZEwuKRTsnRM8inUWDpIEaXYY3Q7JBn43Dfm10zrordRbH23HQP31ixY1g3RrtlshburD0jadnhNLzPLgrc7p0GX1IzSTL7/Z8XDeehXCXOcOij6M= cd@local |
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
#cloud-config | |
runcmd: | |
- sudo sed -i 's/Port 22/Port 443/g' /etc/ssh/sshd_config | |
- sudo echo "Port 443" >> /etc/ssh/sshd_config | |
- sudo semanage port -m -t ssh_port_t -p tcp 443 | |
- sudo firewall-cmd --permanent --add-port=443/tcp | |
# - sudo systemctl stop firewalld.service | |
- sudo systemctl restart sshd.service |
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
#!.venv/bin/python | |
import jinja2, sys | |
import configparser | |
from collections import defaultdict | |
def ini_to_dict(ini_path): | |
config = configparser.ConfigParser() | |
config.read(ini_path) | |
ini_dict = defaultdict(dict) |
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: v1 | |
kind: Pod | |
metadata: | |
name: test | |
labels: | |
app: ubuntu | |
spec: | |
containers: | |
- image: ubuntu:20.04 | |
command: |
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
# Get's the FIRST Cluster on list-clusters. Assuming you only have 1 EKS | |
EKS_CLUSTER_NAME=$(aws eks list-clusters --region=eu-central-1 | jq -r .clusters[0]) | |
echo $EKS_CLUSTER_NAME | |
# First NodeGroup from the list. | |
NG=$(aws eks list-nodegroups --cluster-name $EKS_CLUSTER_NAME | jq -r '.nodegroups[0]') | |
echo $NG | |
# First Autoscaling Group Name | |
ASG_NAME=$(aws eks describe-nodegroup --cluster-name $EKS_CLUSTER_NAME --nodegroup-name $NG | jq -r '.nodegroup.resources.autoScalingGroups[0].name') | |
# Enable Autoscaling Group Metrics |
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
/// | |
// Generated code. Do not modify. | |
// source: helloworld.proto | |
// | |
// @dart = 2.3 | |
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type | |
import 'dart:core' as $core; | |
import 'package:protobuf/protobuf.dart' as $pb; |
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
cd@Cemals-MacBook-Pro ~/realnetapi> dotnet test | |
Build started, please wait... | |
Build started, please wait... | |
Build started, please wait... | |
Build started, please wait... | |
Build started, please wait... | |
Build started, please wait... | |
Build completed. | |
Test run for /Users/cd/realnetapi/RealNetApi.Core/bin/Debug/netcoreapp2.0/RealNetApi.Core.dll(.NETCoreApp,Version=v2.0) |