Skip to content

Instantly share code, notes, and snippets.

{% if obj.authors %}
{% for author in obj.authors %}
{{ author.somevalue }}
{% endfor %}
{% endif %}
{% load compress %}<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{% block browser_title %}{{ current_page.browser_title }}{% endblock %}</title>
<meta name="description" content="{% block meta_description %}{{ current_page.meta_description }}{% endblock %}">
<meta name="keywords" content="{% block meta_keywords %}{{ current_page.meta_keywords }}{% endblock %}">
<meta name="robots" content="{% block meta_robots %}{{ current_page.meta_robots }}{% endblock %}">
<link rel="shortcut icon" href="{{ STATIC_URL }}favicon.ico">
{% compress css %}
# basic unix operations
alias ll="ls -l"
alias ls="ls -G"
# git aliases
alias gb="git branch"
alias gba="git branch -a"
alias gc="git commit -v"
alias gd="git difftool"
alias gl="git pull"
def add_hosts(destination, host_list):
for key, val in env.roledefs.items():
if key == destination and host_list not in env.roledefs[key]:
env.roledefs[key] = list(set(env.roledefs[key] + host_list))
{% extends "base_site.html" %}
{% load content_tags %}
{% block browser_title %}{{ current_page.browser_title }}{% endblock %}
{% block meta_description %}{{ current_page.meta_description }}{% endblock %}
{% block meta_keywords %}{{ current_page.meta_keywords }}{% endblock %}
{% block meta_robots %}{{ current_page.meta_robots }}{% endblock %}
{% block content %}
import time
import requests
class Transaction(object):
def __init__(self):
self.custom_timers = {}
self.base_url = 'http://www.treehugger.com'
self.headers = {}
# ADD THE CONTENTS OF THIS FILE TO ~/.bashrc OR COPY IT TO YOUR HOME FOLDER
# AND ADD THE FOLLOWING LINE TO ~/.bashrc:
# source ~/bash_dds
# AFTERWARDS EITHER RESTART TERMINAL OR RUN "source ~/.bashrc"
# add homebrew and homebrew-installed python to PATH
export PATH="/usr/local/sbin:/usr/local/bin:/usr/local/share/python:$PATH"
# ADD THE CONTENTS OF THIS FILE TO ~/.bashrc OR COPY IT TO YOUR HOME FOLDER
# AND ADD THE FOLLOWING LINE TO ~/.bashrc:
# source ~/bash_dds
# AFTERWARDS EITHER RESTART TERMINAL OR RUN "source ~/.bashrc"
# add homebrew and homebrew-installed python to PATH
export PATH="/usr/local/sbin:/usr/local/bin:/usr/local/share/python:$PATH"
#!/usr/bin/env python
#
# Copyright (c) 2010-2012 Corey Goldberg ([email protected])
# License: GNU LGPLv3
#
# This file is part of Multi-Mechanize | Performance Test Framework
#
import os
@richleland
richleland / S3403response.xml
Created January 12, 2012 13:56
aws s3 skew issue
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>RequestTimeTooSkewed</Code>
<Message>The difference between the request time and the current time is too large.</Message>
<MaxAllowedSkewMilliseconds>900000</MaxAllowedSkewMilliseconds>
<RequestId>4D203AE76BD47906</RequestId>
<HostId>lr/NVYrAkjOca2XXgr9SJJFht9kKV7ySQ7+1sqXyeF11xM1Ypn4SBsaiP1JJKUNV</HostId>
<RequestTime>Wed, 11 Jan 2012 21:45:56 GMT</RequestTime>
<ServerTime>2012-01-11T22:01:30Z</ServerTime></Error>