Skip to content

Instantly share code, notes, and snippets.

View swithrow's full-sized avatar

Sam Withrow swithrow

  • Vendr
  • Brooklyn, NY
View GitHub Profile
@swithrow
swithrow / instance-name-tag.sh
Last active August 18, 2023 15:16
EC2 Instance Name Tag in the bash prompt.
#!/bin/bash
#
# copy this into /etc/profile.d/instance-name-tag.sh
#
# you will need:
# - curl, jq, and aws cli installed
# - an IAM role that gives the EC2 instance access to describe tags
#
@swithrow
swithrow / ruby-examples.md
Last active August 9, 2018 00:06
Hearken Interview Puzzlers

Hearken Interview Puzzlers

Overview

Hi there! We've prepared the following code samples to get an idea of how you think about writing and maintaining code. Please take a look at the following code, and answer the corresponding questions. If you have suggestions about how the code could be improved, feel free to share those as well.

We're interested in how you communicate with team members of varying technical background, so stick to plain English whenever possible, but if you feel it's necessary to get technical, please do. Do your best, but don't spend more than one hour on this. All code samples here are written in Rails-idiomatic Ruby.

Good luck! Email your responses to tech at wearehearken dot com.