Skip to content

Instantly share code, notes, and snippets.

View jaredsampson's full-sized avatar

Jared Sampson jaredsampson

View GitHub Profile
@jaredsampson
jaredsampson / # libxt - 2019-01-16_15-20-57.txt
Created January 16, 2019 20:45
libxt (linuxbrew/xorg/libxt) on "Red Hat Enterprise Linux Server release 6.4 (Santiago)" - Homebrew build logs
Homebrew build logs for linuxbrew/xorg/libxt on "Red Hat Enterprise Linux Server release 6.4 (Santiago)"
Build date: 2019-01-16 15:20:57
@jaredsampson
jaredsampson / README.md
Created January 8, 2019 02:03
TLA+ Mac App

Installing TLA+ via homebrew (brew cask install tla-plus-toolbox) resulted for me in a binary that couldn't launch from a double click in Finder.

Starting from the command line gave the following error:

$ /Applications/TLA+\ Toolbox.app/Contents/MacOS/toolbox
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.se.ee not found
$ grep -o '[a-z0-9-]*proto' .linuxbrew/Cellar/*/*/INSTALL_RECEIPT.json
.linuxbrew/Cellar/cairo/1.14.12_3/INSTALL_RECEIPT.json:xproto
.linuxbrew/Cellar/cairo/1.14.12_3/INSTALL_RECEIPT.json:kbproto
.linuxbrew/Cellar/cairo/1.14.12_3/INSTALL_RECEIPT.json:renderproto
.linuxbrew/Cellar/cairo/1.14.12_3/INSTALL_RECEIPT.json:xcb-proto
.linuxbrew/Cellar/cairo/1.14.12_3/INSTALL_RECEIPT.json:xextproto
.linuxbrew/Cellar/cairo/1.16.0/INSTALL_RECEIPT.json:xorgproto
.linuxbrew/Cellar/et/5.1.8_1/INSTALL_RECEIPT.json:proto
.linuxbrew/Cellar/libdmx/1.1.4/INSTALL_RECEIPT.json:xorgproto
.linuxbrew/Cellar/libx11/1.6.6/INSTALL_RECEIPT.json:xorgproto
import Bio
print(Bio.__version__)
from Bio.Seq import Seq
def degenerate_codon(codon):
try:
#translate codon
seq = Seq(codon)
aa = str(seq.translate())
@jaredsampson
jaredsampson / ubuntu-server-django-guide.rst
Created June 22, 2012 21:16 — forked from epicserve/ubuntu-server-django-guide.rst
Ubuntu Server Setup Guide for Django Websites

Ubuntu Server Setup Guide for Django Websites

This guide is a walk-through on how to setup Ubuntu Server for hosting Django websites. The Django stack that will be used in this guide is Ubuntu_, Nginx_, Gunicorn_ and Postgres_. This stack was chosen solely from the reading I've done and talking to other Django developers in order to get their recommendations. This stack seems to be one of the latest "standard" stacks for Django deployment. This guide also assumes that you're familiar with Ubuntu server administration and Django. I needed an example site for this guide so I chose to use my Django Base Site which is available on Github.

I would also like to thank Ben Claar, Adam Fast, Jeff Triplett and Frank Wiles for their suggestions and input on this guide.