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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
var request = require('request') | |
, path = require('path') | |
, fs = require('fs') | |
, url = "https://api.github.com/users/diegopacheco/gists" | |
, savepath = 'D:/tmp/gists'; | |
String.prototype.replaceAll = function(search, replace, ignoreCase) { | |
if (ignoreCase) { | |
var result = []; | |
var _string = this.toLowerCase(); |
sudo yum install -y git gcc perl-CPAN bison flex byacc libmicrohttpd-devel gcc-c++ nodejs npm --enablerepo=epel
git clone git://git.pcp.io/pcp
cd pcp/
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-webapi
sudo groupadd -r pcp
sudo useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp
make
sudo make install
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer