- Increasing the File Limits
/etc/security/limits.conf
* - nofile 32768
* - nproc 65536
| #!/bin/env bash | |
| SERVER="xxxxxxxxxx:8080" | |
| AMBARI_ADMIN_USER="admin" | |
| AMBARI_ADMIN_PASSWORD="************" | |
| CLUSTER_NAME="xxxxx" | |
| STATE="STARTED" | |
| generate_post_data() | |
| { | |
| cat <<EOF |
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "errors" | |
| mail "net/mail" | |
| smtp "net/smtp" | |
| ) |
| REM Delete eval folder with licence key and options.xml which contains a reference to it | |
| for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm") do ( | |
| for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
| rd /s /q "%%a/config/eval" | |
| del /q "%%a\config\options\other.xml" | |
| ) | |
| ) | |
| REM Delete registry key and jetbrains folder (not sure if needet but however) | |
| rmdir /s /q "%APPDATA%\JetBrains" |
| HOST=google.com | |
| PORT=443 | |
| KEYSTOREFILE="/etc/pki/java/cacerts" | |
| KEYSTOREPASS=changeit | |
| # get the SSL certificate | |
| openssl s_client -connect ${HOST}:${PORT} </dev/null \ | |
| | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ${HOST}.cert | |
| # create a keystore and import certificate |
| #ERROR: | |
| #"type": "repository_verification_exception", | |
| # "reason": "[my_fs_backup] [[nQ6lBzfdQR6_Rkzv8x8mQA, 'RemoteTransportException[[qa2s1.c360i.com][10.73.40.91:9300][internal:admin/repository/verify]]; nested: RepositoryMissingException[[my_fs_backup] missing];']]" | |
| # } | |
| sudo setfacl -m d:u:elasticsearch:rwx /data/elk_back |
| --- | |
| #ref: https://raw.githubusercontent.com/cncf/curriculum/master/CKA_Curriculum_V1.18.pdf | |
| CKA Curriculum: | |
| - Core Concepts: 19% | |
| Topics: | |
| - Understand the Kubernetes API primitives. | |
| - Understand the Kubernetes cluster architecture. | |
| - Understand Services and other network primitives. | |
| - Scheduling: 6% | |
| Topics: |
| #/usr/bin/env python3 | |
| ''' | |
| Author: Double Sine | |
| License: GPLv3 | |
| ''' | |
| import os, sys, zipfile | |
| VariantBase64Table = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' | |
| VariantBase64Dict = { i : VariantBase64Table[i] for i in range(len(VariantBase64Table)) } | |
| VariantBase64ReverseDict = { VariantBase64Table[i] : i for i in range(len(VariantBase64Table)) } |
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
deb https://mirror.karneval.cz/pub/linux/kali kali-rolling main non-free contrib
deb https://ftp.acc.umu.se/mirror/kali.org/kali kali-rolling main non-free contrib
deb https://mirrors.dotsrc.org/kali kali-rolling main non-free contrib
deb https://mirror.pyratelan.org/kali kali-rolling main non-free contrib
deb https://ftp.halifax.rwth-aachen.de/kali kali-rolling main non-free contrib
deb https://ftp2.nluug.nl/os/Linux/distr/kali kali-rolling main non-free contrib
deb https://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling main non-free contrib
deb https://mirror.neostrada.nl/kali kali-rolling main non-free contrib