Skip to content

Instantly share code, notes, and snippets.

View felipeamarante's full-sized avatar
👀

Felipe Amarante felipeamarante

👀
View GitHub Profile
@felipeamarante
felipeamarante / gist:4f9a9454be6a5f472108429740232534
Created March 22, 2018 12:54
Ship EC2 Linux user-data logs to console
#!/bin/bash -xe
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
# Your wonder code below
echo "hello flat earth believers"