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/sh | |
| get_instance_region() { | |
| echo $(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | awk -F '"' '/\"region\"/ { print $4 }') | |
| } | |
| get_instance_id() { | |
| curl -s http://169.254.169.254/latest/meta-data/instance-id | |
| return $? | |
| } |
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
| 1. Executar os comandos: | |
| /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 | |
| mkswap /var/swap.1 | |
| chmod 600 /var/swap.1 | |
| swapon /var/swap.1 | |
| 2. Editar o /etc/fstab adicionando a linha: | |
| /var/swap.1 none swap sw 0 0 | |
| 3. Comandos p/ verificar: |
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
| package kikaha.mojo; | |
| import java.io.*; | |
| import java.net.URL; | |
| import java.security.CodeSource; | |
| import java.util.HashSet; | |
| import java.util.Set; | |
| import com.amazonaws.auth.*; | |
| import com.amazonaws.regions.Regions; | |
| import com.amazonaws.services.codedeploy.*; |
OlderNewer