Close

AWS Cost Explorer CLI demo – filtering costs by cost allocation tags

Here’s a quick example: $ cat filter.json { “Tags”: { “Key”: “role”, “Values”: [“webserver”] } } $ aws ce get-cost-and-usage –time-period Start=$(date +”%Y-%m-%d” –date=”-24 hours”),End=$(date +”%Y-%m-%d”) –granularity=DAILY –metrics BlendedCost –filter file://filter.json RESULTSBYTIME True TIMEPERIOD 2018-08-09 2018-08-08 BLENDEDCOST 22.30 USD References: http://blog.xi-group.com/2015/01/small-tip-how-to-use-aws-cli-filter-parameter/ https://medium.com/@nachomillangarcia/prometheus-alerts-for-aws-daily-costs-3374137d1371

Read More

RHCE – rough notes

page 4: systemctl –type=service list all running services: systemctl –list-units –type=service list all services, running and not running: systemctl –list-units –type=service page 6: lists the units that this unit depends on: systemctl list-dependencies UNIT shows what other services depends on the following unit: systemctl list-dependencies UNIT –reverse this forcefully disables a unit, so that it […]

Read More

The screen command

useful for: collaboration: 1. share screens with colleages 2. long running jobs. e.g. cp 100GB to an NFS. You can monitor progress by going back the screen. https://www.lynda.com/Linux-tutorials/Manage-terminal-sessions-screen/618702/729627-4.html

Read More

What are the advantages of using Hashicorp Consul?

Consul is actually a 4 services combined seamless into a single service. that have been combined into one. These individual services are: Service Discovery: All boxes (mysql servers, apache servers, ntp server, api servers…etc) will have the consul agent deamon running on them which will notify the consul server of it’s existence and the type […]

Read More

RHCE Quiz

Take the RHCE Quiz This article is part of our RHCE Study guide (click on the yellow tab on the far left). By the end of this article you should be able to answer the following questions:

Read More

Samba – Set up private group folders RHEL/CentOS 7

A common scenario is to provide a samba share to a particular group of people, where each group member has full read+write access to all the content stored in the Samba share. You can follow along this article using our Samba group collaboration vagrant project on github. There’s a few ways to set up group […]

Read More