As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/usr/bin/env python | |
| import sys | |
| # Lamson is an application, but also the best way to read email without | |
| # struggling with "battery include" libraries. | |
| from lamson.encoding import from_string as parse_mail | |
| from pyelasticsearch import ElasticSearch | |
| from pyelasticsearch.exceptions import ElasticHttpNotFoundError |
| ## David A Gutman dgutman _at_ emory.edu | |
| ## This script walks through install an XNAT Ubuntu Virtual Machine for a VMware Host | |
| ## Note: this script can not be run as a single bash script. | |
| # This is a fork/update of johnpaulett's guest setup script | |
| # https://gist.github.com/johnpaulett/206346 | |
| ## VMWARE Setup: I allocated 80GB for the main XNAT partition (using Thin Provisioning) | |
| ## Also I set up an additional disk as a standalone partition to actually store all my data | |
| ## Presumably you do not want to have your VM image with your database/XNAT/etc in the same VM as | |
| ## storage |
| class APIWrapper: | |
| #snippet... | |
| def poll_api(self, tries, initial_delay, delay, backoff, success_list, apifunction, *args): | |
| time.sleep(initial_delay) | |
| for n in range(tries): | |
| try: | |
| status = self.get_status() | |
| if status not in success_list: |
| This playbook has been removed as it is now very outdated. |
| --- | |
| #### | |
| #### THIS IS OLD AND OUTDATED | |
| #### LIKE, ANSIBLE 1.0 OLD. | |
| #### | |
| #### PROBABLY HIT UP https://docs.ansible.com MY DUDES | |
| #### | |
| #### IF IT BREAKS I'M JUST SOME GUY WITH | |
| #### A DOG, OK, SORRY | |
| #### |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| from oauth2 import Error | |
| from django.utils.translation import ugettext as _ | |
| from tastypie.authentication import Authentication | |
| from oauth_provider.utils import initialize_server_request, send_oauth_error, get_oauth_request | |
| from oauth_provider.consts import OAUTH_PARAMETERS_NAMES | |
| from oauth_provider.store import store, InvalidTokenError |