This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import pytz | |
from datetime import datetime | |
import dateparser | |
import pytest | |
def expected_tz_conversion(datetime_obj, pytz_tzinfo_offset): | |
# keep the day and time, just give it tzinfo | |
return pytz_tzinfo_offset.localize(datetime_obj) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
class ProcessorMake(models.Model): | |
name = models.CharField(max_length=20) | |
def __unicode__(self): | |
return self.name | |
class ProcessorLine(models.Model): | |
processormake = models.ForeignKey(ProcessorMake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"camera": { | |
"index": "analyzed", | |
"term_vector": "with_positions_offsets", | |
"type": "string", | |
"analyzer": "keyword", | |
"boost": 1.0, | |
"store": "yes" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stardate: 308f5e30-2def-11e3-8c72-68a86d0df4b0 | |
created: 2013-10-05 18:56:00.605395 | |
title: Second Test Post Update | |
I'm a lumberjack and I'm okay... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
person: | |
user.present: | |
- uid: 1003 | |
- gid: 1003 | |
- require: | |
- group: person | |
group.present: | |
- gid: 1003 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rubyppa: | |
pkgrepo.managed: | |
- name: deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu precise main | |
- ppa: brightbox/ruby-ng | |
- file: /etc/apt/sources.list.d/ruby-ng-precise.list | |
ruby1.9.3: | |
pkg.installed: | |
- require: | |
- pkgrepo: rubyppa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apache2: | |
pkg: | |
- installed | |
service: | |
- running | |
- reload: True | |
- watch: | |
- file: /etc/apache2/apache2.conf | |
- file: /etc/apache2/sites-available/phabricator.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rubyppa: | |
pkgrepo.managed: | |
- name: deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu precise main | |
- ppa: brightbox/ruby-ng | |
- file: /etc/apt/sources.list.d/ruby-ng-precise.list | |
ruby1.9.3: | |
pkg.installed | |
ruby_alternative: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rbenv-deps: | |
pkg.installed: | |
- pkgs: | |
- git | |
ruby-1.9.3-p429: | |
rbenv.installed: | |
- default: True | |
- require: | |
- pkg: rbenv-deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@precise64:~$ sudo service syslog-ng restart | |
* Stopping system logging syslog-ng [ OK ] | |
* Starting system logging syslog-ng Multiple internal() sources were detected, this is not possible; | |
Error initializing source driver; source='s_all', id='s_all#0' | |
Error initializing message pipeline; |