Slides: https://prezi.com/g9jymcct-h9_/programming-merit-badge/
Extra stuff:
- Intellectual Property
- Four types
- Difference between owning and licensing
- Open vs. Shareware vs. commercial vs. Freeware
- 3 Careers
peridot_config: &peridot_src | |
base_url: https://mtnrepo.ciq.dev | |
use_hashed_repo: false | |
credentials: | |
username: depot-sync | |
password: arglebarglemarglefargle | |
pulp_config: | |
remote_defaults: &pulp_remote_defaults | |
# These settings are used as default values for the remotes that are created using it. |
import cherrypy | |
from cStringIO import StringIO | |
import logging | |
import os | |
import pytest | |
import json | |
from mock import Mock | |
URL_PREFIX = "/api" |
Slides: https://prezi.com/g9jymcct-h9_/programming-merit-badge/
Extra stuff:
- name: ubuntu ssh keys | |
include: ssh.yml ssh_user=ubuntu | |
#locale needed as of 2013/12/17 | |
- name: Install python-software-properties and locale | |
apt: state=present pkg=python-software-properties,language-pack-en update_cache=yes | |
tags: deploy | |
- name: Enable crunch.io ppa | |
apt_repository: state={{'present' if ansible_distribution_release=='precise' else 'absent'}} repo="ppa:crunch.io/public-{{ppa_repo}}" |
FROM ubuntu/precise | |
MAINTAINER Crunch.io <[email protected]> | |
# This is a starting point. We may want to build these images using ansible instead of | |
# Dockerfile | |
RUN apt-get install -y libatlas3gf-base liblz4-tool python-software-properties language-pack-en | |
RUN easy_install -U -i http://<pypicreds>@pypi.crunch.io/pypi/stable/ -Z zz9d zz9lib numpy |
#Web role handlers | |
- name: start nginx | |
service: state=started name=nginx | |
- name: restart nginx | |
service: state=restarted name=nginx | |
- name: check webapp | |
wait_for_cmd: shell='curl -s -o /dev/null -k -w "%{http_code}" {{local_webapp_url}} | grep 401' delay=15 timeout=60 repeat_delay=3 |
import datetime | |
import calendar | |
def simple_age(birthdate, today=None): | |
if today is None: | |
today = datetime.date.today() | |
#what's this year's birthdate? | |
try: | |
bd = datetime.date(today.year, birthdate.month, birthdate.day) | |
except ValueError: |