Skip to content

Instantly share code, notes, and snippets.

View fedekau's full-sized avatar

Federico Kauffman fedekau

View GitHub Profile
@fedekau
fedekau / parser.js
Created April 23, 2019 17:40
"Parser" for meetup.com question answers
// meetup.com answer "parser"
const answers = Array.from(
document.querySelectorAll(".attendee-item-answers.padding--bottom-half")
);
const almostUniqueAnswers = [
...new Set(answers.map(e => e.textContent).map(s => s.toLowerCase()))
];
@fedekau
fedekau / self_destruct.sh
Created May 14, 2018 02:21
Self destructing AWS EC2 instances
function self_destruct_command() {
cat <<-EOF
ec2-terminate-instances \
--aws-access-key $AWS_ACCESS_KEY \
--aws-secret-key $AWS_SECRET_KEY \
$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
EOF
}
self_destruct_command | at now + 30 minutes

Keybase proof

I hereby claim:

  • I am fedekau on github.
  • I am fedekau (https://keybase.io/fedekau) on keybase.
  • I have a public key whose fingerprint is 911C C9FD B6E6 90CD 75D2 31C9 F98B 7CC4 A303 7D59

To claim this, I am signing this object: