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
#!/bin/bash | |
# node.js using PPA (for statsd) | |
sudo apt-get install python-software-properties | |
sudo apt-add-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs npm | |
# Install git to get statsd | |
sudo apt-get install git |
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
# -*- encoding: utf-8 -*- | |
require File.expand_path('../lib/example/version', __FILE__) | |
Gem::Specification.new do |gem| | |
gem.authors = ["John Doe"] | |
gem.email = ["[email protected]"] | |
gem.description = %q{Write a gem description} | |
gem.summary = %q{Write a gem summary} | |
gem.homepage = "" |
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
---------- | |
State: - rvm | |
Name: sassgemset | |
Function: gemset_present | |
Result: False | |
Comment: An exception occured in this state: Traceback (most recent call last): | |
File "/usr/lib/pymodules/python2.7/salt/state.py", line 823, in call | |
ret = self.states[cdata['full']](*cdata['args']) | |
File "/usr/lib/pymodules/python2.7/salt/states/rvm.py", line 221, in gemset_present | |
if name in __salt__['rvm.gemset_list'](ruby, runas=runas): |
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
## Get OS/build dependancies | |
$ sudo apt-get install python2.7-dev build-essential libtool autoconf automake swig uuid-dev python-m2crypto python-setuptools | |
## Download 0MQ | |
$ wget http://download.zeromq.org/zeromq-2.2.0.tar.gz | |
## Unpack | |
$ tar -xvzf zeromq-2.2.0.tar.gz | |
## CD into dir |
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
## Get OS/build dependancies | |
$ sudo apt-get install python2.7-dev build-essential libtool autoconf automake swig uuid-dev python-m2crypto python-setuptools | |
## Download 0MQ | |
$ wget http://download.zeromq.org/zeromq-2.2.0.tar.gz | |
## Unpack | |
$ tar -xvzf zeromq-2.2.0.tar.gz | |
## CD into dir |
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
sudo su - | |
# stuff we need to build from source | |
apt-get install libpcre3-dev build-essential libssl-dev | |
# get the nginx source | |
cd /opt/ | |
wget http://nginx.org/download/nginx-0.8.54.tar.gz | |
tar -zxvf nginx* | |
# we'll put the source for nginx modules in here |