This file contains 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
root@andrew-desktop:/var/lib/jenkins/jobs/manta/workspace# git submodule update | |
fatal: reference is not a tree: 7c25db19e674b4b7d43a7a14526444c0d5a6bb64 | |
Unable to checkout '7c25db19e674b4b7d43a7a14526444c0d5a6bb64' in submodule path 'library/Everlution' | |
root@andrew-desktop:/var/lib/jenkins/jobs/manta/workspace# git reset | |
Unstaged changes after reset: | |
M library/Everlution | |
root@andrew-desktop:/var/lib/jenkins/jobs/manta/workspace# git commit -m"Update" library/Everlution | |
[detached HEAD b56b876] Update | |
1 files changed, 1 insertions(+), 1 deletions(-) |
This file contains 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
#!/bin/bash | |
DEBUG=1; | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
GREP="`which grep`"; |
This file contains 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
<?php | |
$nodes = array_filter(explode(' ',$_SERVER['argv'][1])); | |
$memcache = new Memcached; | |
//$memcache->setOption ( Memcached::OPT_DISTRIBUTION , Memcached::DISTRIBUTION_MODULA ); | |
$memcache->setOption ( Memcached::OPT_DISTRIBUTION , Memcached::DISTRIBUTION_CONSISTENT ); | |
foreach($nodes AS $node) { |
This file contains 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
config.vm.provision :chef_solo do |chef| | |
#chef.recipe_url = "http://files.vagrantup.com/getting_started/cookbooks.tar.gz" | |
chef.cookbooks_path = "cookbooks" | |
#chef.add_recipe "mysql" | |
#chef.add_role "web" | |
#chef.add_role "apache2" | |
chef.add_recipe("vagrant_main") | |
# You may also specify custom JSON attributes: | |
chef.json = { :mysql_password => "foo" } |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
nodes = { | |
'http' => [3, 10], | |
'db' => [2, 20], | |
} | |
Vagrant::Config.run do |config| | |
config.vm.box = "base" |
This file contains 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
andrew@andrew-OptiPlex-7010:/var/www/logs/bin$ ./apache-log-stat $(ls ../logs/b2f*_ApacheAccess.2011-12-05.gz) | |
Processing | |
==================== | |
../logs/b2f01_ApacheAccess.2011-12-05.gz - avg_requests_per_second: 5.92 variance_requests_per_second: 25.93 total_requests: 413603 stddev_requests_per_second: 5.09 max_requests_per_second: 57 | |
../logs/b2f02_ApacheAccess.2011-12-05.gz - avg_requests_per_second: 6.05 variance_requests_per_second: 26.55 total_requests: 417711 stddev_requests_per_second: 5.15 max_requests_per_second: 45 | |
../logs/b2f03_ApacheAccess.2011-12-05.gz - avg_requests_per_second: 6.09 variance_requests_per_second: 26.64 total_requests: 419073 stddev_requests_per_second: 5.16 max_requests_per_second: 48 | |
../logs/b2f04_ApacheAccess.2011-12-05.gz - avg_requests_per_second: 5.07 variance_requests_per_second: 12.82 total_requests: 325374 stddev_requests_per_second: 3.58 max_requests_per_second: 29 | |
../logs/b2f05_ApacheAccess.2011-12-05.gz - avg_requests_per_ |
This file contains 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
$params = array( | |
'filterfields'=>array('member_id'), | |
'filtervalues'=> range(1,10000), | |
'count'=>100, | |
'object_property_filter' => array( | |
'Community.Member' => array( | |
'first_name' => 'r', | |
'last_name' => 'r', | |
), | |
), |
This file contains 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
Index | |
andrew@andrew-OptiPlex-7010:~$ curl -s http://localhost:9200/pbx_members/Member/_mapping?pretty=true | |
{ | |
"Member" : { | |
"properties" : { | |
"first_name" : { | |
"type" : "multi_field", | |
"fields" : { | |
"first_name" : { |
This file contains 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
root@icinga:/etc/icinga# dpkg -l | grep icinga | |
ii icinga 1.7.1-1~ppa2~precise1 host and network monitoring system - metapackage | |
ii icinga-cgi 1.7.1-1~ppa2~precise1 host and network monitoring system - CGI scripts | |
ii icinga-common 1.7.1-1~ppa2~precise1 host and network monitoring system - support files | |
ii icinga-core 1.7.1-1~ppa2~precise1 host and network monitoring system - core files | |
ii icinga-doc 1.7.1-1~ppa2~precise1 host and network monitoring system - documentation | |
ii icinga-idoutils 1.7.1-1~ppa2~precise1 host and network monitoring system - icinga-dataobjects support | |
ii icinga-web 1.7.1-1~ppa1 host and network monitoring system - modern web interface | |
ii icinga-web-pnp 1.7.1-1~ppa1 host and networ |
This file contains 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
mysql> SELECT * FROM icinga_commands WHERE command_line LIKE '%check_ntp_time%'; | |
+------------+-------------+-------------+-----------+-----------------------------------------+ | |
| command_id | instance_id | config_type | object_id | command_line | | |
+------------+-------------+-------------+-----------+-----------------------------------------+ | |
| 95 | 1 | 0 | 95 | $USER1$/check_ntp_time -H $HOSTADDRESS$ | | |
| 301 | 1 | 1 | 95 | $USER1$/check_ntp_time -H $HOSTADDRESS$ | | |
+------------+-------------+-------------+-----------+-----------------------------------------+ | |
2 rows in set (0.02 sec) |
OlderNewer