Follow these steps to install graphite on OS X Lion.
- Python 2.7
- Brew
- Git
Follow these steps to install Graphite on a fresh Ubuntu 12.04 instance. Make sure you read and understand the commands because by the time you read this, things could be outdated.
# apt-get install libpq-dev
# apt-get install python-dev python-pip python-cairo python-psycopg2
# apt-get install python-django python-django-tagging
Access remote port from local machine:
ssh -f -L <local_port>:localhost:<remote_port> <remote_host> -N
Execute command on file/dir change:
watchmedo shell-command --patterns="*.rmd" --command="Rscript compile.rscript"
https://github.com/BrightcoveOS/Diamond
From their wiki:
Diamond is a python daemon that collects system metrics and publishes them to Graphite. It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
apt-get install build-essentials
apt-get install python-dev
To get htaccess like user authentication on Nginx, add the following to your site config:
auth_basic "Restricted";
auth_basic_user_file <password_file_location>;
If you want the authentication to be applied on all locations, place it in the top scope of the config. If you want it specific to a location, just add it in the scope of that location.
// Taken from http://upshots.org/javascript/jquery-copy-style-copycss | |
(function($) { | |
$.fn.getStyleObject = function() { | |
var dom = this.get(0); | |
var style; | |
var returns = {}; |
from django.core.management import setup_environ | |
import settings | |
setup_environ(settings) | |
###################################################################################### | |
from django.contrib.auth.models import User | |
from django.core.validators import email_re | |
from emailusernames.utils import _email_to_username as create_username_hash_from_email | |
。◕‿◕。 | |
ヽ(゜∇゜)ノ | |
(ノಠ益ಠ)ノ彡┻━┻ | |
(づ。◕‿‿◕。)づ | |
(´・ω・`) | |
٩(͡๏̯͡๏)۶ | |
(▮◡▮)❤ | |
(⊛ี௮⊛ี) | |
(☺♭☺) | |
⋙(≗ิ⊽≗ิ)⋘ |
function decorator(fn) { | |
function wrapper() { | |
console.log('Before function.'); | |
var ret = fn.apply(this, arguments); | |
console.log('After function.'); | |
return ret; | |
} | |
return wrapper; |
#!/bin/sh | |
LIBS_DIR="./src/scripts/libs" | |
COLOR_RED="\033[0;31m" | |
COLOR_PURPLE="\033[0;35m" | |
COLOR_BRIGHT_PURPLE="\033[1;35m" | |
COLOR_GREEN="\033[0;32m" | |
COLOR_RESET="\033[0m" |