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
@garystafford
garystafford / helpful-docker-commands.sh
Last active April 20, 2025 11:08
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
@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

@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/
@diego3g
diego3g / NODE.md
Last active April 29, 2025 16:13
VSCode Settings (Updated)

⚠️ Note!

With VSCode version 1.94, the APC extension broke and there is no fix yet.

So, for those having issues with APC after the VSCode update, I recommend downloading the previous version of VSCode for now (https://code.visualstudio.com/updates/v1_93) and setting updates to manual by adding this to the editor's configuration:

"update.mode": "manual",
@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
@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>"

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
@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)
@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"
}