- Introduction to Linux namespaces - Part 1: UTS
- Introduction to Linux namespaces - Part 2: IPC
- Introduction to Linux namespaces - Part 3: PID
- Introduction to Linux namespaces - Part 4: NS (FS)
- Introduction to Linux namespaces – Part 5: NET
- Bê-á-bá dos cgroups, parte 1: escalonador e prioridades
- [Bê-á-bá dos cgroups, parte 2: montagem e "pinning" de CPU](https://www.ibm.com/developerworks/community/blo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws autoscaling describe-auto-scaling-groups --query 'AutoScalingGroups[*]' | |
aws autoscaling describe-auto-scaling-groups --query 'AutoScalingGroups[*].Tags[?Key==`Name`]' | |
aws autoscaling describe-auto-scaling-groups --query 'AutoScalingGroups[?Tags[?starts_with(Value, `registration`)]]' | |
aws autoscaling describe-auto-scaling-groups --query 'AutoScalingGroups[?Tags[?starts_with(Value, `email`)]]' | |
aws autoscaling describe-auto-scaling-groups --query 'AutoScalingGroups[] | [?contains(Tags[?Key==`Name`].Value, `email-01`)]' --output table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-StrictMode -Version Latest | |
$HOSTED_ZONE_ID = "ABCDEFGHIJKLM" | |
$changeRequest01 = New-Object -TypeName Amazon.Route53.Model.Change | |
$changeRequest01.Action = "UPSERT" | |
$changeRequest01.ResourceRecordSet = New-Object -TypeName Amazon.Route53.Model.ResourceRecordSet | |
$changeRequest01.ResourceRecordSet.Name = "record01.domain.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdLetBinding()] | |
Param( | |
[Parameter(Mandatory=$true,ValueFromPipeLine=$false,ValueFromPipeLineByPropertyName=$true)] | |
[String] $HostedZoneId, | |
[Parameter(Mandatory=$true,ValueFromPipeLine=$false,ValueFromPipeLineByPropertyName=$true)] | |
[ValidateSet("CNAME","A","AAAA","MX","TXT","PTR","SRV","SPF","NS","SOA")] | |
[String] $Type, | |
[Parameter(Mandatory=$true,ValueFromPipeLine=$false,ValueFromPipeLineByPropertyName=$true)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-Base64 { | |
param ( | |
$data | |
) | |
# if the $data is a string then ensure it is a byte array | |
if ($data.GetType().Name -eq "String") { | |
$data = [System.Text.Encoding]::UTF8.GetBytes($data) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# This script reads rabbitmq statistics and report them as CloudWatch metrics. | |
# Author: Richard Hayes - Forked from Mirek Svoboda | |
# Version: 0.5 | |
# TABSTOP=4 | |
# | |
# Changelog: | |
# 0.5 | |
# -- Added TotalMessages & TotalConsumers metrics | |
# 0.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -n "$SSH_AUTH_SOCK" ] && netstat -nlpx 2> /dev/null | awk '{print $NF}' | grep -qF "$SSH_AUTH_SOCK"; then | |
echo "export SSH_AUTH_SOCK=$SSH_AUTH_SOCK" > /tmp/ssh-agent$UID | |
if [ -n "$SSH_AGENT_PID" ]; then | |
echo "export SSH_AGENT_PID=$SSH_AGENT_PID" >> /tmp/ssh-agent$UID | |
elif [ -n "$GNOME_KEYRING_PID" ]; then | |
echo "export GNOME_KEYRING_SOCKET=$GNOME_KEYRING_SOCKET" >> /tmp/ssh-agent$UID | |
echo "export GNOME_KEYRING_PID=$GNOME_KEYRING_PID" >> /tmp/ssh-agent$UID | |
fi | |
else | |
SSH_AUTH_SOCK= |