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
[Unit] | |
Description=High-performance, schema-free document-oriented database | |
After=network.target | |
[Service] | |
User=mongodb | |
TasksAccounting=false | |
TasksMax=infinity | |
LimitFSIZE=infinity | |
LimitCPU=infinity |
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
<?php | |
//Usage: php tracethread.php <pid> <tid> | |
//Get the <tid> from a jstack call | |
$pid = intval($_SERVER['argv'][1]); | |
$tid = $_SERVER['argv'][2]; | |
echo "Tracing thread: $pid : $tid\n"; | |
while(true) { | |
$dump = shell_exec("jstack $pid"); |
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
<?php | |
/** | |
* @author Henrik Hofmeister | |
* @license MIT | |
* @version 1.0 | |
* | |
* XmlRPC using SimpleXML and CURL | |
* | |
* Usage: | |
* |
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
#!/bin/bash | |
#install dependencies | |
sudo apt-get build-dep couchdb | |
sudo apt-get install xulrunner-1.9.2-dev libicu-dev libcurl4-gnutls-dev libtool | |
#configure xulrunner | |
sudo echo "/usr/lib/xulrunner-1.9.2.17 | |
/usr/lib/xulrunner-devel-1.9.2.17" > /etc/ld.so.conf.d/xulrunner.conf | |
# get couchdb | |
wget "http://apache.mirrors.webname.dk//couchdb/1.1.1/apache-couchdb-1.1.1.tar.gz" -O couchdb.tar.gz | |
tar -xzvf couchdb.tar.gz |
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
#!/bin/bash | |
#install dependencies | |
sudo apt-get build-dep couchdb | |
sudo apt-get install xulrunner-1.9.2-dev libicu-dev libcurl4-gnutls-dev libtool | |
#configure xulrunner | |
sudo echo "/usr/lib/xulrunner-1.9.2.17 | |
/usr/lib/xulrunner-devel-1.9.2.17" > /etc/ld.so.conf.d/xulrunner.conf | |
# get couchdb 1.0.2 | |
wget "http://mirrors.rackhosting.com/apache//couchdb/1.0.2/apache-couchdb-1.0.2.tar.gz" | |
tar -xzvf apache-couchdb-1.0.2.tar.gz |