Skip to content

Instantly share code, notes, and snippets.

View hhcordero's full-sized avatar

Hector Cordero hhcordero

View GitHub Profile
@hhcordero
hhcordero / 1_Dockerised_JMeter.md
Last active March 30, 2022 13:44
Dockerized JMeter - A Distributed Load Testing Workflow
@hhcordero
hhcordero / Intro_to_Docker.txt
Last active September 7, 2016 04:24
Introduction to Docker by Hector Cordero
<section data-markdown>
# INTRO TO DOCKER
Hector Cordero
September 30, 2015
</section>
<section data-markdown>
## AGENDA
- What is Docker?
@hhcordero
hhcordero / README.txt
Last active November 6, 2015 07:58
Docker Cheat Sheet
# Remove dangling images without warning if no image found
docker images -qf dangling=true | xargs docker rmi
# Remove exited container
docker rm -v $(docker ps -a -q -f status=exited)
<section>
<h1>Modernising Presentation</h1>
<h3 class="fragment fade-in">using Reveal.JS</h3>
</section>
<section data-markdown>
## What is Reveal.JS?
kubectl get pod -l app=app -o json | \
jq -r '.items[] | \
select (.status.containerStatuses != null) | \
{container_status: .status.containerStatuses[], name: .metadata.name} | \
select (.container_status.restartCount > <X number of restart>) | \
.name'
aws logs describe-log-groups | \
jq -r '"log_group\tstored_bytes",
"---------\t------------",
( .logGroups[] | "\(.logGroupName)\t\(.storedBytes)" )' |\
column -t -s $'\t'
[<1000000000]0.00,," MB";[<1000000000000]0.00,,," GB";0.00,,,," TB"
[<1000000]0.00," KB";[<1000000000]0.00,," MB";[<1000000000000]0.00,,," GB";