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
# initially compiled by joff | |
sudo perl -MCPAN -e 'install Danga::Socket' | |
sudo perl -MCPAN -e 'install Gearman::Client' | |
sudo perl -MCPAN -e 'install Gearman::Server' | |
sudo perl -MCPAN -e 'install Gearman::Client::Async' | |
sudo perl -MCPAN -e 'install Net::Netmask' | |
sudo perl -MCPAN -e 'install IO::WrapTie' | |
sudo perl -MCPAN -e 'install IO::AIO' | |
sudo perl -MCPAN -e 'install List::MoreUtils' |
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 ruby | |
# encoding: utf-8 | |
# By Uğur Özyılmazel, @vigobronx | @ugurozyilmazel | |
# http://vigodome.com | http://ugur.ozyilmazel.com | http://github.com/vigo | |
def get_paged_memory_usage(match_string, paging=4096) | |
mvar = 3 | |
if match_string.split(/[^\w]/).length > 1 | |
mvar = 4 |
NewerOlder