Azure blob storage: azcopy tips

Some utils commands for managing files on Azure Blob Storage. copy a single file azcopy cp --put-md5 '[source_file]' 'https://[storage_account_name].blob.core.windows.net/[container_name]/[sas_token]' copy recursive files azcopy cp --put-md5 --recursive '[source_dir]'…

Keep reading

k8s: Switch faster between clusters and namespaces in kubectl

Managing cluster and namespace in k8s sometime is quite complicated especially when you have to deal with multiples resources. There is a great project called kubectx that makes your life easy. kubectx helps you switch between clusters back and forth and kubens helps you switch…

Keep reading

MariaDB useful commands

Checking current max connections. show status where `variable_name` = 'Max_used_connections'; Checking threads connect show status where `variable_name` = 'Threads_connected'; Checking current process show full processlist;…

Keep reading

Ansible: Azure Resource Manager inventory plugin (part 2)

Continuing the ARM inventory plugin post. Follow below some useful settings to help you to generate a good dynamic inventory. Working with group conditionalconditional_groups: # since this will be true for every host, every host sourced from this inventory plugin config will be in the…

Keep reading

Ansible: string vault

Ansible Vault is a feature of ansible that allows you to keep sensitive data such as passwords or keys in encrypted files, rather than as plaintext in playbooks or roles. These vault files can then be distributed or placed in source control. The ansible-vault encrypt_…

Keep reading