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
| #===================================================================== | |
| services: # Define the services (containers) in this Compose file | |
| nagios: # Service name: nagios | |
| image: nagios459-debian12:latest # Use the pre-built Nagios Debian 12 image | |
| container_name: nagios # Assign a custom container name for easier reference | |
| restart: unless-stopped # Restart policy: restart container unless explicitly stopped | |
| environment: # Define environment variables for the container | |
| NAGIOS_FQDN: nagios.example.com # Fully Qualified Domain Name for Nagios | |
| NAGIOSADMIN_USER: nagiosadmin # Admin username for Nagios web interface |
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
| -------------------------------------------------------------------------------------------------- | |
| $ openssl version | |
| $ openssl version -a | |
| -------------------------------------------------------------------------------------------------- | |
| #find out which versions of TLS are configured on a web server | |
| Firefox - click the padlock icon (on the left of the URL) - More Information - Technical Details | |
| Chrome - More Tools - Developer Tools - Security | |
| Edge - More Tools - Developer Tools - Security | |
| https://www.ssllabs.com/ssltest/ #public websites |
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
| $ pdsh -l vagrant -w ssh:compute02 ls -lai | |
| $ pdsh -l vagrant -w ssh:compute01 uptime | |
| $ wwsh file print network | |
| $ wwsh provision print | |
| $ wwsh node print compute01 | |
| $ wwsh vnfs list | |
| $ pbsnodes -a |
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
| # Ubuntu 18.04 | |
| sudo apt install linux-tools-$(uname -r) linux-tools-generic -y | |
| $ perf --version | |
| perf version 4.18.12 | |
| # stat: runs a command and gathers performance counter statistics from it, command -> tree -a | |
| sudo perf stat tree -a | |
| # top: generates and displays a performance counter profile in real time | |
| sudo perf top |
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
| ===================================================server====================================================== | |
| $ hostnamectl | |
| Static hostname: control-machine | |
| Icon name: computer-vm | |
| Chassis: vm | |
| Machine ID: 4f8ea72f17144f5a86367a4aeeb5c3e4 | |
| Boot ID: b846f130028d48cb960e5498b75d11ef | |
| Virtualization: oracle | |
| Operating System: Ubuntu 18.04.1 LTS | |
| Kernel: Linux 4.15.0-29-generic |
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
| Operating System: Ubuntu 16.04.5 LTS | |
| Kernel: Linux 4.4.0-116-generic | |
| Architecture: x86-64 | |
| dpkg -l | grep mysql | grep ii | |
| sudo service mysql status | |
| sudo service mysql stop | |
| sudo service mysql start | |
| mysql -u root -p |
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
| # Ubuntu 16.04.5 LTS | |
| sudo apt-get update && sudo apt-get install build-essential | |
| sudo apt-get install cmake | |
| cmake -version | |
| cat<<EOF>helloworld.cpp | |
| #include<iostream> | |
| int main(int argc, char *argv[]){ | |
| std::cout << "Hola CMake" << std::endl; |
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
| ============================================================================ | |
| molecule --debug test | |
| molecule --debug lint | |
| # Creating a new role | |
| molecule init role -r new-role -d docker | |
| molecule init --driver vagrant | |
| molecule init role --driver-name vagrant --role-name docker --verifier-name testinfra | |
| ============================================================================ | |
| #https://molecule.readthedocs.io/en/latest/configuration.html |
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
| --------------------------------------------------------------------------------------------- | |
| #Installing in silent mode | |
| wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh | |
| bash ~/miniconda.sh -b -p $HOME/miniconda | |
| --------------------------------------------------------------------------------------------- | |
| #anaconda cloud | |
| >anaconda login | |
| git clone https://github.com/Anaconda-Platform/anaconda-client | |
| cd anaconda-client/example-packages/conda/ |
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
| Create first a CentOS virtualbox VM then convert to a vagrant box | |
| #Create a new virtual machine with the following settings: | |
| Name: centos74minimal | |
| Type: Linux | |
| Version: Redhat 64 | |
| Memory Size: 1024MB (to taste) | |
| New Virtual Disk: [Type: VMDK, Size: 40 GB] | |
| Disable floppy | |
| Disable audio |