Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@julianoborba
julianoborba / export-trivy-json-as-csv.txt
Created February 9, 2022 15:10
Export Aquasec Trivy JSON report as flat CSV
trivy image --no-progress --light --vuln-type os -f json -o "trivy-report.json" --severity "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL" "foo/bar:latest"
cat trivy-report.json
# OUTPUT:
# {
# "DockerImage": "foo/bar:latest",
# "Results": [
# {
# "Target": "foo/bar:latest (foobar 3.12.1)",
#### git-xargs.sh
#!/bin/sh
## https://github.com/gruntwork-io/git-xargs
git-xargs \
--loglevel DEBUG \
--max-concurrent-repos 4 \
--branch-name "some-wish" \
https://avisi.nl/blog/2012/09/12/quick-way-to-retrieve-a-chain-of-ssl-certificates-from-a-server/
openssl s_client -host google.com -port 443 -prexit -showcerts
keytool -import -alias gca -file googleca.pem -keystore trust.jks
----
Verificar informações de hardware ------------------------------------------------------
# lspci -vv
https://www.linuxquestions.org/questions/linux-software-2/use-linux-to-determine-hardware-specs-427710/
----------------------------------------------------------------------------------------
Using Gnome's embedded screencast tool -------------------------------------------------
@julianoborba
julianoborba / MinhasAventurasNoUbuntu
Created July 29, 2014 02:26
Minhas Aventuras no Ubuntu
Instalando------------------------------------------------------------------
Particionamento:
Primária , Início, ext4 , / , 30 GB
Lógica , Início, swap , , 12 GB
Lógica , Início, ext4 , /boot , 8 GB (opcional)
Lógica , Início, ext4 , /home , O que sobrar
I'd always recommend a separate /home partition: 8-10GB for /, whatever you
want for swap depending on your RAM size and hibernation, then allocate the rest to /home.
@julianoborba
julianoborba / MinhasAventurasNoLinuxQubes
Last active August 29, 2015 14:04
Minhas Aventuras no Linux Qubes
Creating an HVM domain - Sample
# qvm-create win7 --hvm --label green
# qvm-start win7 --cdrom=/usr/local/iso/win7_en.iso
Or
# qvm-start win7 --cdrom=/dev/cdrom
==================================================================================================