This file contains hidden or 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
{% if obj.authors %} | |
{% for author in obj.authors %} | |
{{ author.somevalue }} | |
{% endfor %} | |
{% endif %} |
This file contains hidden or 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
{% 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 %} |
This file contains hidden or 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
# 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" |
This file contains hidden or 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
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)) |
This file contains hidden or 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
{% 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 %} |
This file contains hidden or 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 time | |
import requests | |
class Transaction(object): | |
def __init__(self): | |
self.custom_timers = {} | |
self.base_url = 'http://www.treehugger.com' | |
self.headers = {} |
This file contains hidden or 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
# 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" |
This file contains hidden or 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
# 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" |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
<?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> |