Removing Terminal Escape characters from file

Read more

RSA Padding Schemes

/ Intro Padding scheme is with RSA encrypt operations to prepend or append plaintext payloads in order to disable certain attacks which weaken the security of key. This is needed wen plaintext size is less then key size (modulus). From... Read more

Ansible Tasks

Loop Types https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#with-list Read more

AWS Policies

Policy structure EC2 Actions Actions can be seen in the following link: link To each action name prepend “ec2:” and then attach it to policy For action StartInstances, a permission action would be “ec2:StartInstances“ Read more

SSH Local Config setup

Tips/tricks for local SSH config Including config Let’s assume that we wish to split one big ~/.ssh/config to multiple files, split the existing config file and include it with Include keyword. Define host within config Read more

Bashims

Useful bash scripts / tricks Reading CSV Local Variables By default, when a variable is introduced within bash function, that variable has a global scope, meaning that the caller will also see change of value. To prevent that use local... Read more

Hiera

Hiera is a Puppet subsystem for fetching fetching facts. Lookup The puppet lookup command The puppet lookup command is the command line interface for Puppet’s lookup function.This function let’s you do Hiera lookups from the command line. You must run... Read more

Puppet Modules

Module Structure Within the project root directory we place modules in path ./modules/<name> and the structure of module directory is as follows: data -> Contains data files specifying parameter defaults examples -> contains examples showing how to declare the module’s... Read more

AWS CLI – useful commands

AMI images Cost explorer AWS CLI Query Language (–query) It is either similar or the same as https://jmespath.org/specification.html Metrics Read more

Datadog querying

Common query operators Read more