Skip to content

Instantly share code, notes, and snippets.

View almoraes's full-sized avatar
⚖️
I may be slow to respond.

Aldren Moraes almoraes

⚖️
I may be slow to respond.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am almoraes on github.
  • I am amoraes (https://keybase.io/amoraes) on keybase.
  • I have a public key ASBLJwjJ9Gwju5UTKmO9JeiuLNZ2p4emnR2PG48zlPQMzAo

To claim this, I am signing this object:

@almoraes
almoraes / 0x-ebrotate.config
Created January 2, 2018 17:34
EB AWS rotate docker logs
files:
"/etc/logrotate.elasticbeanstalk.hourly/logrotate.elasticbeanstalk.dockerlogs.conf":
mode: "000644"
owner: root
group: root
content: |
/var/lib/docker/containers/*/*.log {
size 100M
rotate 14
missingok
@almoraes
almoraes / rc.local
Created November 10, 2017 19:33
aws work around for hosts resolver
hosts() {
/bin/cp /etc/hosts-template /etc/hosts
echo "`curl -s http://169.254.169.254/latest/meta-data/local-ipv4` `hostname`" >> /etc/hosts
}
if [ ! -f /etc/hosts-template ]; then /bin/cp /etc/hosts /etc/hosts-template; hosts; else
hosts
fi
@almoraes
almoraes / AWS.EC2.Windows.CloudWatch.json
Created September 28, 2017 04:00
Cloud Watch Windows
{
"EngineConfiguration": {
"PollInterval": "00:00:15",
"Components": [
{
"Id": "ApplicationEventLog",
"FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch",
"Parameters": {
"LogName": "Application",
"Levels": "7"