Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
############################################################################### | |
# 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 |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
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/ |
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",
#!/bin/bash | |
#------------------------ | |
# Authors: Aecio Pires | |
# Date: 13 jan 2020 | |
# | |
# Objective: Update git repositories local | |
# | |
#--------------------- REQUISITES --------------------# | |
# 1) Install packages: git |
<block type> "<resource type>" "<local name/label>"
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:
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) |
$ ansible all -m ping -i inventory.yml | |
localhost | SUCCESS => { | |
"ansible_facts": { | |
"discovered_interpreter_python": "/usr/bin/python3" | |
}, | |
"changed": false, | |
"ping": "pong" | |
} |