I hereby claim:
- I am danriti on github.
- I am danriti (https://keybase.io/danriti) on keybase.
- I have a public key whose fingerprint is 9194 075E F796 62A4 B932 F80D 8334 5A61 B4F5 74A2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
run on ubuntu 12.04
/etc/pcp/pmwebd/pmwebd.options
sudo service pmwebd restart
proc
pmda as root (add -A
flag): /etc/pcp/pmcd/pmcd.conf
sudo service pcp restart
hotproc.conf
in /var/lib/pcp/pmdas/proc
location / { | |
proxy_pass http://localhost:3000/; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
from datetime import datetime | |
import matplotlib.pyplot as plt | |
import traceview | |
API_KEY = 'API KEY HERE' | |
def main(): | |
tv = traceview.TraceView(API_KEY) | |
results = tv.server.latency_by_layer('Default', time_window='week') |
#!/usr/bin/env python | |
import sys | |
import subprocess | |
def print_wiki_options(file) : | |
subprocess.call("clear") | |
with open(file, 'r') as f : | |
for line in f: | |
sys.stdout.write(line) |
Install the line_profiler
module:
[driti@ubuntu ]$ pip install line_profiler
Add the @profile
decorator and run:
[driti@ubuntu ]$ kernprof.py -l -v example.py
git log -S"validate=True" -- boto/s3/connection.py |
source "https://rubygems.org" | |
ruby "2.0.0" | |
gem 'sinatra' | |
group :production, :staging do | |
gem 'oboe-heroku', '~> 0.9.10.0' | |
end |