Skip to content

Instantly share code, notes, and snippets.

Avatar

Federico Kauffman fedekau

View GitHub Profile
@fedekau
fedekau / parser.js
Created Apr 23, 2019
"Parser" for meetup.com question answers
View parser.js
// 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
Self destructing AWS EC2 instances
View self_destruct.sh
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
View keybase.md

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: