Skip to content

Instantly share code, notes, and snippets.

@takus
takus / fluent.conf
Created Jun 1, 2016
Configuration for monitoring Fluentd by Datadog
View fluent.conf
<match smartnews.user_activity>
type copy
<store>
type flowcounter
count_keys *
unit second
aggregate all
tag fluentd.flowcounter.smartnews.user_activity
@label @dogstatsd
</store>
@massenz
massenz / venv.sh
Created Mar 28, 2013
Derived from: https://gist.github.com/codysoyland/2198913 Enables automatic activation of a virtualenv once one navigates to a directory with a .venv file whose contents are the path to a virtual environment
View venv.sh
#!/bin/bash
# venv.sh
#
# Installation:
# Add this line to your .bashrc or .bash-profile:
#
# source /path/to/venv.sh
#
# Whenever a directory has a file called `.venv` its contents
# will be interpreted as the path to a base directory of