Skip to content

Instantly share code, notes, and snippets.

@nkrumm
nkrumm / codesample.rst
Last active August 10, 2022 22:25 — forked from nhoffman/codesample.rst
Python code sample

Web app code sample

We're looking for a full-stack web/applications developer who can build solutions for our laboratories and bioinformatics teams. One useful way for us to get a sense for your skill in these areas is in the form of a working code sample. Here's what should be a fairly straightforward exercise:

  • Build a simple web page that performs a web BLAST query against nt
# On EC2, /mnt is usually already on
mounted=$(mount | grep /mnt | wc -l)
if [ $mounted -eq 1 ]; then
umount -l /mnt
fi
# Install mdadm unattended
DEBIAN_FRONTEND=noninteractive apt-get -y install mdadm
# Create a RAID0 volume, don't ask for permission (--run)
@nkrumm
nkrumm / hack.sh
Created June 6, 2013 04:34 — forked from erikh/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#