Skip to content

Instantly share code, notes, and snippets.

@anderson-pids
anderson-pids / datadog-values
Created May 18, 2022 21:52
Datadog helm value
datadog:
apiKey: ${datadog_api_key}
appKey: ${datadog_app_key}
clusterName: ${cluster_name}
apm:
portEnabled: true
processAgent:
enabled: true
dogstatsd:
port: 8125
@anderson-pids
anderson-pids / getsize-top10-dh-org.sh
Created March 18, 2022 13:22
Get size of storage for dockerhub organization - Top 10 most updated tags
#!/bin/bash
#set your Organization and change top number if you want
ORG=ORGANIZATION
TOP=10
# using tool of dockerhub to list repos and get tags: https://github.com/docker/hub-tool#readme
PATH_HUBTOOL=./hub-tool
REPO_DATA_PATH=dockerhub-raw-repos.data
REPO_DATA_LIST=repos.data
@anderson-pids
anderson-pids / getsize-dh-org.sh
Last active March 18, 2022 13:23
Getting size of all repos and tags into dockerhub organization
#!/bin/bash
#set you organization
ORG=ORGANIZATION
# using tool of dockerhub to list repos and get tags: https://github.com/docker/hub-tool#readme
PATH_HUBTOOL=./hub-tool
REPO_DATA_PATH=dockerhub-raw-repos.data
REPO_DATA_LIST=repos.data
@anderson-pids
anderson-pids / dockerhub-v2-api-organization.sh
Created March 4, 2022 15:11 — forked from kizbitz/dockerhub-v2-api-organization.sh
Get the list of images and tags for a Docker Hub organization account
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
UNAME=""
UPASS=""
ORG=""
@anderson-pids
anderson-pids / remove accentuation
Last active February 5, 2021 02:45
normalizer
#include "normalizer.h"
Normalizer::Normalizer()
{
InitHash();
}
Normalizer::~Normalizer()
{
}
@anderson-pids
anderson-pids / .bashrc
Created October 26, 2017 20:16
Para colorir e identificar o branch atual para terminais
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
NO_COLOR="\[\033[0m\]"
# [Standard] Terminal with colors, path and git branch