Skip to content

Instantly share code, notes, and snippets.

View amaurybsouza's full-sized avatar
:octocat:
Automating everything!

Amaury Borges Souza amaurybsouza

:octocat:
Automating everything!
View GitHub Profile
@amaurybsouza
amaurybsouza / ansible-ad-hoc
Created February 13, 2022 14:07
ansible-ad-hoc
$ ansible all -m ping -i inventory.yml
localhost | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python3"
},
"changed": false,
"ping": "pong"
}
@amaurybsouza
amaurybsouza / Package management (RHEL based)
Last active February 12, 2022 18:15
Package management (RHEL based)
rpm (é o equivalente ao dpkg do Debian, ele que faz a base de instalação e remoção dos pacotes)
MODOS (O rpm trabalha em modos, COM 3 MODOS PRINCIPAIS (modeo de consulta, instalacao e remocao)
rpm -qa (mostra todos os pacotes instalados no sistema)
rpm -qa bash (mostra informações do que tiver o nome "bash")
rpm -qi bash (a opção i mostra informações, detalhes do aplicativo mencionado, no caso o "bash")
rpm -ql bash (lista os arquivos que pertecem a essa instalação)
rpm -qc bash (mostra apenas os arquivos de configuração do pacote)
rpm -qd (mostra arquivos de documentação do pacote)
rpm -qf /etc/skel/.bashrc (mostra qual aplicação instalou esse pacote, esse arquivo)
rpm -qlp adobe-release-x86_64-1.0-1.noarch.rpm (lista os arquivos que estão dentro do pacote adobe)

Terraform Certification Revision

1 Understand Infrastructure as Code (IaC) concepts

Terraform by default provision concurrently 10 resources, to change use -parallelism=n on plan, apply and destroy commands.

Terraform is an immutable, declarative, Infraestructure as Code provisioning tool.

IaC provides benefits:

  • Can be versioned
@edsoncelio
edsoncelio / terraform-commands.md
Last active January 30, 2023 10:26
Terraform Associate Certification Commands Tips

Terraform Associate Certification Tips

Concepts

<block type> "<resource type>" "<local name/label>"
@aeciopires
aeciopires / updateGit.sh
Last active January 21, 2022 10:41
Shell Script for update git repositories local
#!/bin/bash
#------------------------
# Authors: Aecio Pires
# Date: 13 jan 2020
#
# Objective: Update git repositories local
#
#--------------------- REQUISITES --------------------#
# 1) Install packages: git
@diego3g
diego3g / settings.json
Last active September 28, 2024 04:36
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 15,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],
@numberwhun
numberwhun / 22 Hacking Sites To Practice Your Hacking Skills
Created July 14, 2016 00:36
22 Hacking Sites To Practice Your Hacking Skills
Taken from: https://hackerlists.com/hacking-sites/
22 Hacking Sites, CTFs and Wargames To Practice Your Hacking Skills
InfoSec skills are in such high demand right now. As the world continues to turn everything into an app and connect even the most basic devices to the internet, the demand is only going to grow, so it’s no surprise everyone wants to learn hacking these days.
However, almost every day I come across a forum post where someone is asking where they should begin to learn hacking or how to practice hacking. I’ve compiled this list of some of the best hacking sites to hopefully be a valuable resource for those wondering how they can build and practice their hacking skill set. I hope you find this list helpful, and if you know of any other quality hacking sites, please let me know in the comments, so I can add them to the list.
1. CTF365 https://ctf365.com/
@andreicristianpetcu
andreicristianpetcu / ansible-summary.md
Created May 30, 2016 19:25
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@garystafford
garystafford / helpful-docker-commands.sh
Last active August 9, 2024 16:14
My list of helpful docker commands
###############################################################################
# Helpful Docker commands and code snippets
###############################################################################
### CONTAINERS ###
docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter
# exec into container